@code0-tech/sagittarius-graphql-types 0.0.0-3dbc1d7dffaa541501b2cb0954dabc06a9288cf6 → 0.0.0-4e14e2ae65b66543ca2d02d685fa36e9e1b8b5ec

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 (3) hide show
  1. package/index.d.ts +491 -25
  2. package/package.json +2 -3
  3. package/index.js +0 -0
package/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  export type Maybe<T> = T | null;
2
2
  export type InputMaybe<T> = Maybe<T>;
3
- export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
4
- export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
5
- export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
6
- export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
7
- export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
3
+ export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }
4
+ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> }
5
+ export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> }
6
+ export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never }
7
+ export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }
8
8
  /** All built-in and custom scalars, mapped to their actual values */
9
9
  export interface Scalars {
10
10
  ID: { input: `gid://sagittarius//${number}`; output: `gid://sagittarius//${number}`; }
@@ -239,8 +239,8 @@ export interface DataTypeRulesInputTypeConfig {
239
239
  __typename?: 'DataTypeRulesInputTypeConfig';
240
240
  /** The identifier of the data type this input type belongs to */
241
241
  dataTypeIdentifier?: Maybe<DataTypeIdentifier>;
242
- /** The input data type that this configuration applies to */
243
- inputType?: Maybe<DataType>;
242
+ /** The input identifier that this configuration applies to */
243
+ inputIdentifier?: Maybe<Scalars['String']['output']>;
244
244
  }
245
245
 
246
246
  /** Represents a rule that can be applied to a data type. */
@@ -290,7 +290,7 @@ export interface DataTypeRulesReturnTypeConfig {
290
290
  }
291
291
 
292
292
  /** The type of rule that can be applied to a data type. */
293
- export enum DataTypeRulesVariant {
293
+ export const enum DataTypeRulesVariant {
294
294
  /** The rule checks if a key is present in the data type. */
295
295
  ContainsKey = 'CONTAINS_KEY',
296
296
  /** The rule checks if a specific type is present in the data type. */
@@ -310,7 +310,7 @@ export enum DataTypeRulesVariant {
310
310
  }
311
311
 
312
312
  /** Represent all available types of a datatype */
313
- export enum DataTypeVariant {
313
+ export const enum DataTypeVariant {
314
314
  /** Represents an array */
315
315
  Array = 'ARRAY',
316
316
  /** Represents an data type containing a data type */
@@ -327,6 +327,9 @@ export enum DataTypeVariant {
327
327
  Type = 'TYPE'
328
328
  }
329
329
 
330
+ /** Represents a detailed error with either a message or an active model error */
331
+ export type DetailedError = ActiveModelError | FlowValidationError | MessageError;
332
+
330
333
  /** Autogenerated input type of Echo */
331
334
  export interface EchoInput {
332
335
  /** A unique identifier for the client performing the mutation. */
@@ -347,7 +350,137 @@ export interface EchoPayload {
347
350
  }
348
351
 
349
352
  /** Objects that can present an error */
350
- export type Error = ActiveModelError | MessageError;
353
+ export interface Error {
354
+ __typename?: 'Error';
355
+ /** Detailed validation errors if applicable */
356
+ details?: Maybe<Array<DetailedError>>;
357
+ /** The code representing the error type */
358
+ errorCode?: Maybe<ErrorCodeEnum>;
359
+ }
360
+
361
+ /** Represents the available error responses */
362
+ export const enum ErrorCodeEnum {
363
+ /** This action would remove the last administrative role */
364
+ CannotDeleteLastAdminRole = 'CANNOT_DELETE_LAST_ADMIN_ROLE',
365
+ /** Only administrators can modify admin status of users */
366
+ CannotModifyAdmin = 'CANNOT_MODIFY_ADMIN',
367
+ /** Users cannot modify their own admin status */
368
+ CannotModifyOwnAdmin = 'CANNOT_MODIFY_OWN_ADMIN',
369
+ /** This action would remove the last administrator */
370
+ CannotRemoveLastAdministrator = 'CANNOT_REMOVE_LAST_ADMINISTRATOR',
371
+ /** This action would remove the last administrative ability */
372
+ CannotRemoveLastAdminAbility = 'CANNOT_REMOVE_LAST_ADMIN_ABILITY',
373
+ /** Failed to send the email verification */
374
+ EmailVerificationSendFailed = 'EMAIL_VERIFICATION_SEND_FAILED',
375
+ /** This external identity does not exist */
376
+ ExternalIdentityDoesNotExist = 'EXTERNAL_IDENTITY_DOES_NOT_EXIST',
377
+ /** The old backup codes could not be deleted */
378
+ FailedToInvalidateOldBackupCodes = 'FAILED_TO_INVALIDATE_OLD_BACKUP_CODES',
379
+ /** Failed to reset the user password */
380
+ FailedToResetPassword = 'FAILED_TO_RESET_PASSWORD',
381
+ /** The new backup codes could not be saved */
382
+ FailedToSaveValidBackupCode = 'FAILED_TO_SAVE_VALID_BACKUP_CODE',
383
+ /** The flow with the given identifier was not found */
384
+ FlowNotFound = 'FLOW_NOT_FOUND',
385
+ /** The flow type with the given identifier was not found */
386
+ FlowTypeNotFound = 'FLOW_TYPE_NOT_FOUND',
387
+ /** The flow validation has failed */
388
+ FlowValidationFailed = 'FLOW_VALIDATION_FAILED',
389
+ /** The given key was not found in the data type */
390
+ GenericKeyNotFound = 'GENERIC_KEY_NOT_FOUND',
391
+ /** The external identity with the given identifier was not found */
392
+ IdentityNotFound = 'IDENTITY_NOT_FOUND',
393
+ /** Failed to validate the external identity */
394
+ IdentityValidationFailed = 'IDENTITY_VALIDATION_FAILED',
395
+ /** Resources are from different namespaces */
396
+ InconsistentNamespace = 'INCONSISTENT_NAMESPACE',
397
+ /** The attachment is invalid because of active model errors */
398
+ InvalidAttachment = 'INVALID_ATTACHMENT',
399
+ /** This external identity is invalid */
400
+ InvalidExternalIdentity = 'INVALID_EXTERNAL_IDENTITY',
401
+ /** The flow setting is invalid because of active model errors */
402
+ InvalidFlowSetting = 'INVALID_FLOW_SETTING',
403
+ /** Invalid login data provided */
404
+ InvalidLoginData = 'INVALID_LOGIN_DATA',
405
+ /** The namespace license is invalid because of active model errors */
406
+ InvalidNamespaceLicense = 'INVALID_NAMESPACE_LICENSE',
407
+ /** The namespace member is invalid because of active model errors */
408
+ InvalidNamespaceMember = 'INVALID_NAMESPACE_MEMBER',
409
+ /** The namespace project is invalid because of active model errors */
410
+ InvalidNamespaceProject = 'INVALID_NAMESPACE_PROJECT',
411
+ /** The namespace role is invalid because of active model errors */
412
+ InvalidNamespaceRole = 'INVALID_NAMESPACE_ROLE',
413
+ /** The organization is invalid because of active model errors */
414
+ InvalidOrganization = 'INVALID_ORGANIZATION',
415
+ /** The provided password repeat does not match the password */
416
+ InvalidPasswordRepeat = 'INVALID_PASSWORD_REPEAT',
417
+ /** The runtime is invalid because of active model errors */
418
+ InvalidRuntime = 'INVALID_RUNTIME',
419
+ /** Invalid setting provided */
420
+ InvalidSetting = 'INVALID_SETTING',
421
+ /** The TOTP secret is invalid or cannot be verified */
422
+ InvalidTotpSecret = 'INVALID_TOTP_SECRET',
423
+ /** The user is invalid because of active model errors */
424
+ InvalidUser = 'INVALID_USER',
425
+ /** The user identity is invalid because of active model errors */
426
+ InvalidUserIdentity = 'INVALID_USER_IDENTITY',
427
+ /** The user session is invalid because of active model errors */
428
+ InvalidUserSession = 'INVALID_USER_SESSION',
429
+ /** Invalid verification code provided */
430
+ InvalidVerificationCode = 'INVALID_VERIFICATION_CODE',
431
+ /** The namespace license with the given identifier was not found */
432
+ LicenseNotFound = 'LICENSE_NOT_FOUND',
433
+ /** Failed to load user identity from external provider */
434
+ LoadingIdentityFailed = 'LOADING_IDENTITY_FAILED',
435
+ /** Invalid MFA data provided */
436
+ MfaFailed = 'MFA_FAILED',
437
+ /** MFA is required */
438
+ MfaRequired = 'MFA_REQUIRED',
439
+ /** This external identity is missing data */
440
+ MissingIdentityData = 'MISSING_IDENTITY_DATA',
441
+ /** Not all required parameters are present */
442
+ MissingParameter = 'MISSING_PARAMETER',
443
+ /** The user is not permitted to perform this operation */
444
+ MissingPermission = 'MISSING_PERMISSION',
445
+ /** The namespace member with the given identifier was not found */
446
+ NamespaceMemberNotFound = 'NAMESPACE_MEMBER_NOT_FOUND',
447
+ /** The namespace with the given identifier was not found */
448
+ NamespaceNotFound = 'NAMESPACE_NOT_FOUND',
449
+ /** The namespace project with the given identifier was not found */
450
+ NamespaceProjectNotFound = 'NAMESPACE_PROJECT_NOT_FOUND',
451
+ /** The namespace role with the given identifier was not found */
452
+ NamespaceRoleNotFound = 'NAMESPACE_ROLE_NOT_FOUND',
453
+ /** There are no free license seats to complete this operation */
454
+ NoFreeLicenseSeats = 'NO_FREE_LICENSE_SEATS',
455
+ /** The project does not have a primary runtime */
456
+ NoPrimaryRuntime = 'NO_PRIMARY_RUNTIME',
457
+ /** The organization with the given identifier was not found */
458
+ OrganizationNotFound = 'ORGANIZATION_NOT_FOUND',
459
+ /** @deprecated Outdated concept */
460
+ PrimaryLevelNotFound = 'PRIMARY_LEVEL_NOT_FOUND',
461
+ /** The namespace project with the given identifier was not found */
462
+ ProjectNotFound = 'PROJECT_NOT_FOUND',
463
+ /** Self-registration is disabled */
464
+ RegistrationDisabled = 'REGISTRATION_DISABLED',
465
+ /** Resources are from different runtimes */
466
+ RuntimeMismatch = 'RUNTIME_MISMATCH',
467
+ /** The runtime with the given identifier was not found */
468
+ RuntimeNotFound = 'RUNTIME_NOT_FOUND',
469
+ /** @deprecated Outdated concept */
470
+ SecondaryLevelNotFound = 'SECONDARY_LEVEL_NOT_FOUND',
471
+ /** @deprecated Outdated concept */
472
+ TertiaryLevelExceedsParameters = 'TERTIARY_LEVEL_EXCEEDS_PARAMETERS',
473
+ /** This user already has TOTP set up */
474
+ TotpSecretAlreadySet = 'TOTP_SECRET_ALREADY_SET',
475
+ /** The user is not permitted to modify this field */
476
+ UnmodifiableField = 'UNMODIFIABLE_FIELD',
477
+ /** The user with the given identifier was not found */
478
+ UserNotFound = 'USER_NOT_FOUND',
479
+ /** The user session with the given identifier was not found */
480
+ UserSessionNotFound = 'USER_SESSION_NOT_FOUND',
481
+ /** Invalid TOTP code provided */
482
+ WrongTotp = 'WRONG_TOTP'
483
+ }
351
484
 
352
485
  /** Represents a flow */
353
486
  export interface Flow {
@@ -358,6 +491,8 @@ export interface Flow {
358
491
  id?: Maybe<Scalars['FlowID']['output']>;
359
492
  /** The input data type of the flow */
360
493
  inputType?: Maybe<DataType>;
494
+ /** Name of the flow */
495
+ name?: Maybe<Scalars['String']['output']>;
361
496
  /** Nodes of the flow */
362
497
  nodes?: Maybe<NodeFunctionConnection>;
363
498
  /** The return data type of the flow */
@@ -370,6 +505,8 @@ export interface Flow {
370
505
  type?: Maybe<FlowType>;
371
506
  /** Time when this Flow was last updated */
372
507
  updatedAt?: Maybe<Scalars['Time']['output']>;
508
+ /** Abilities for the current user on this Flow */
509
+ userAbilities?: Maybe<FlowUserAbilities>;
373
510
  }
374
511
 
375
512
 
@@ -414,10 +551,14 @@ export interface FlowEdge {
414
551
 
415
552
  /** Input type for creating or updating a flow */
416
553
  export interface FlowInput {
554
+ /** The name of the flow */
555
+ name: Scalars['String']['input'];
556
+ /** The node functions of the flow */
557
+ nodes: Array<NodeFunctionInput>;
417
558
  /** The settings of the flow */
418
559
  settings?: InputMaybe<Array<FlowSettingInput>>;
419
560
  /** The starting node of the flow */
420
- startingNode: NodeFunctionInput;
561
+ startingNodeId: Scalars['NodeFunctionID']['input'];
421
562
  /** The identifier of the flow type */
422
563
  type: Scalars['FlowTypeID']['input'];
423
564
  }
@@ -573,6 +714,56 @@ export interface FlowTypeSettingNamesArgs {
573
714
  last?: InputMaybe<Scalars['Int']['input']>;
574
715
  }
575
716
 
717
+ /** Abilities for the current user on this Flow */
718
+ export interface FlowUserAbilities {
719
+ __typename?: 'FlowUserAbilities';
720
+ /** Shows if the current user has the `delete_flow` ability on this Flow */
721
+ deleteFlow?: Maybe<Scalars['Boolean']['output']>;
722
+ }
723
+
724
+ /** Represents a flow validation error */
725
+ export interface FlowValidationError {
726
+ __typename?: 'FlowValidationError';
727
+ /** Additional details about the validation error */
728
+ details?: Maybe<ActiveModelError>;
729
+ /** The code representing the validation error type */
730
+ errorCode?: Maybe<FlowValidationErrorCodeEnum>;
731
+ /** The severity of the validation error */
732
+ severity?: Maybe<FlowValidationSeverityEnum>;
733
+ }
734
+
735
+ /** Represents the available error responses */
736
+ export const enum FlowValidationErrorCodeEnum {
737
+ /** The generic key for the data type identifier was not found. */
738
+ DataTypeIdentifierGenericKeyNotFound = 'DATA_TYPE_IDENTIFIER_GENERIC_KEY_NOT_FOUND',
739
+ /** The data type identifier runtime does not match the flow type runtime. */
740
+ DataTypeIdentifierRuntimeMismatch = 'DATA_TYPE_IDENTIFIER_RUNTIME_MISMATCH',
741
+ /** The data type rule model is invalid. */
742
+ DataTypeRuleModelInvalid = 'DATA_TYPE_RULE_MODEL_INVALID',
743
+ /** The data type runtime does not match the flow type runtime. */
744
+ DataTypeRuntimeMismatch = 'DATA_TYPE_RUNTIME_MISMATCH',
745
+ /** The flow setting model is invalid. */
746
+ FlowSettingModelInvalid = 'FLOW_SETTING_MODEL_INVALID',
747
+ /** The flow type runtime does not match the project primary runtime. */
748
+ FlowTypeRuntimeMismatch = 'FLOW_TYPE_RUNTIME_MISMATCH',
749
+ /** The node function runtime does not match the project primary runtime. */
750
+ NodeFunctionRuntimeMismatch = 'NODE_FUNCTION_RUNTIME_MISMATCH',
751
+ /** The project does not have a primary runtime set. */
752
+ NoPrimaryRuntime = 'NO_PRIMARY_RUNTIME'
753
+ }
754
+
755
+ /** Represents the severity of a flow validation error */
756
+ export const enum FlowValidationSeverityEnum {
757
+ /** A blocking validation error */
758
+ Error = 'ERROR',
759
+ /** A minor typographical issue can also be blocking */
760
+ Typo = 'TYPO',
761
+ /** A non-blocking validation warning */
762
+ Warning = 'WARNING',
763
+ /** A weak validation issue that may not need to be addressed */
764
+ Weak = 'WEAK'
765
+ }
766
+
576
767
  /** Represents a function definition */
577
768
  export interface FunctionDefinition {
578
769
  __typename?: 'FunctionDefinition';
@@ -687,7 +878,7 @@ export interface GenericCombinationStrategy {
687
878
  }
688
879
 
689
880
  /** The available combination strategy types. */
690
- export enum GenericCombinationStrategyType {
881
+ export const enum GenericCombinationStrategyType {
691
882
  /** Represents a logical AND combination. */
692
883
  And = 'AND',
693
884
  /** Represents a logical OR combination. */
@@ -748,6 +939,23 @@ export interface IdentityInput {
748
939
  code?: InputMaybe<Scalars['String']['input']>;
749
940
  }
750
941
 
942
+ /** Abilities for the current user on this Instance */
943
+ export interface InstanceUserAbilities {
944
+ __typename?: 'InstanceUserAbilities';
945
+ /** Shows if the current user has the `create_organization` ability on this Instance */
946
+ createOrganization?: Maybe<Scalars['Boolean']['output']>;
947
+ /** Shows if the current user has the `create_runtime` ability on this Instance */
948
+ createRuntime?: Maybe<Scalars['Boolean']['output']>;
949
+ /** Shows if the current user has the `delete_runtime` ability on this Instance */
950
+ deleteRuntime?: Maybe<Scalars['Boolean']['output']>;
951
+ /** Shows if the current user has the `rotate_runtime_token` ability on this Instance */
952
+ rotateRuntimeToken?: Maybe<Scalars['Boolean']['output']>;
953
+ /** Shows if the current user has the `update_application_setting` ability on this Instance */
954
+ updateApplicationSetting?: Maybe<Scalars['Boolean']['output']>;
955
+ /** Shows if the current user has the `update_runtime` ability on this Instance */
956
+ updateRuntime?: Maybe<Scalars['Boolean']['output']>;
957
+ }
958
+
751
959
  /** Represents a literal value, such as a string or number. */
752
960
  export interface LiteralValue {
753
961
  __typename?: 'LiteralValue';
@@ -775,7 +983,7 @@ export interface MfaInput {
775
983
  }
776
984
 
777
985
  /** Represent all available types to authenticate with mfa */
778
- export enum MfaType {
986
+ export const enum MfaType {
779
987
  /** Single use backup code */
780
988
  BackupCode = 'BACKUP_CODE',
781
989
  /** Time based onetime password */
@@ -861,6 +1069,10 @@ export interface Mutation {
861
1069
  usersMfaTotpGenerateSecret?: Maybe<UsersMfaTotpGenerateSecretPayload>;
862
1070
  /** Validates a TOTP value for the given secret and enables TOTP MFA for the user */
863
1071
  usersMfaTotpValidateSecret?: Maybe<UsersMfaTotpValidateSecretPayload>;
1072
+ /** Reset the password using a reset token */
1073
+ usersPasswordReset?: Maybe<UsersPasswordResetPayload>;
1074
+ /** Request an password reset */
1075
+ usersPasswordResetRequest?: Maybe<UsersPasswordResetRequestPayload>;
864
1076
  /** Register a new user */
865
1077
  usersRegister?: Maybe<UsersRegisterPayload>;
866
1078
  /** Update an existing user. */
@@ -1078,6 +1290,18 @@ export interface MutationUsersMfaTotpValidateSecretArgs {
1078
1290
  }
1079
1291
 
1080
1292
 
1293
+ /** Root Mutation type */
1294
+ export interface MutationUsersPasswordResetArgs {
1295
+ input: UsersPasswordResetInput;
1296
+ }
1297
+
1298
+
1299
+ /** Root Mutation type */
1300
+ export interface MutationUsersPasswordResetRequestArgs {
1301
+ input: UsersPasswordResetRequestInput;
1302
+ }
1303
+
1304
+
1081
1305
  /** Root Mutation type */
1082
1306
  export interface MutationUsersRegisterArgs {
1083
1307
  input: UsersRegisterInput;
@@ -1094,6 +1318,8 @@ export interface Namespace {
1094
1318
  __typename?: 'Namespace';
1095
1319
  /** Time when this Namespace was created */
1096
1320
  createdAt?: Maybe<Scalars['Time']['output']>;
1321
+ /** (EE only) Currently active license of the namespace */
1322
+ currentNamespaceLicense?: Maybe<NamespaceLicense>;
1097
1323
  /** Global ID of this Namespace */
1098
1324
  id?: Maybe<Scalars['NamespaceID']['output']>;
1099
1325
  /** Members of the namespace */
@@ -1110,6 +1336,8 @@ export interface Namespace {
1110
1336
  runtimes?: Maybe<RuntimeConnection>;
1111
1337
  /** Time when this Namespace was last updated */
1112
1338
  updatedAt?: Maybe<Scalars['Time']['output']>;
1339
+ /** Abilities for the current user on this Namespace */
1340
+ userAbilities?: Maybe<NamespaceUserAbilities>;
1113
1341
  }
1114
1342
 
1115
1343
 
@@ -1174,6 +1402,8 @@ export interface NamespaceLicense {
1174
1402
  startDate?: Maybe<Scalars['Time']['output']>;
1175
1403
  /** Time when this NamespaceLicense was last updated */
1176
1404
  updatedAt?: Maybe<Scalars['Time']['output']>;
1405
+ /** Abilities for the current user on this NamespaceLicense */
1406
+ userAbilities?: Maybe<NamespaceLicenseUserAbilities>;
1177
1407
  }
1178
1408
 
1179
1409
  /** The connection type for NamespaceLicense. */
@@ -1198,6 +1428,13 @@ export interface NamespaceLicenseEdge {
1198
1428
  node?: Maybe<NamespaceLicense>;
1199
1429
  }
1200
1430
 
1431
+ /** Abilities for the current user on this NamespaceLicense */
1432
+ export interface NamespaceLicenseUserAbilities {
1433
+ __typename?: 'NamespaceLicenseUserAbilities';
1434
+ /** Shows if the current user has the `delete_namespace_license` ability on this NamespaceLicense */
1435
+ deleteNamespaceLicense?: Maybe<Scalars['Boolean']['output']>;
1436
+ }
1437
+
1201
1438
  /** Represents a namespace member */
1202
1439
  export interface NamespaceMember {
1203
1440
  __typename?: 'NamespaceMember';
@@ -1205,12 +1442,36 @@ export interface NamespaceMember {
1205
1442
  createdAt?: Maybe<Scalars['Time']['output']>;
1206
1443
  /** Global ID of this NamespaceMember */
1207
1444
  id?: Maybe<Scalars['NamespaceMemberID']['output']>;
1445
+ /** Memberroles of the member */
1446
+ memberRoles?: Maybe<NamespaceMemberRoleConnection>;
1208
1447
  /** Namespace this member belongs to */
1209
1448
  namespace?: Maybe<Namespace>;
1449
+ /** Roles of the member */
1450
+ roles?: Maybe<NamespaceRoleConnection>;
1210
1451
  /** Time when this NamespaceMember was last updated */
1211
1452
  updatedAt?: Maybe<Scalars['Time']['output']>;
1212
1453
  /** User this member belongs to */
1213
1454
  user?: Maybe<User>;
1455
+ /** Abilities for the current user on this NamespaceMember */
1456
+ userAbilities?: Maybe<NamespaceMemberUserAbilities>;
1457
+ }
1458
+
1459
+
1460
+ /** Represents a namespace member */
1461
+ export interface NamespaceMemberMemberRolesArgs {
1462
+ after?: InputMaybe<Scalars['String']['input']>;
1463
+ before?: InputMaybe<Scalars['String']['input']>;
1464
+ first?: InputMaybe<Scalars['Int']['input']>;
1465
+ last?: InputMaybe<Scalars['Int']['input']>;
1466
+ }
1467
+
1468
+
1469
+ /** Represents a namespace member */
1470
+ export interface NamespaceMemberRolesArgs {
1471
+ after?: InputMaybe<Scalars['String']['input']>;
1472
+ before?: InputMaybe<Scalars['String']['input']>;
1473
+ first?: InputMaybe<Scalars['Int']['input']>;
1474
+ last?: InputMaybe<Scalars['Int']['input']>;
1214
1475
  }
1215
1476
 
1216
1477
  /** The connection type for NamespaceMember. */
@@ -1250,6 +1511,37 @@ export interface NamespaceMemberRole {
1250
1511
  updatedAt?: Maybe<Scalars['Time']['output']>;
1251
1512
  }
1252
1513
 
1514
+ /** The connection type for NamespaceMemberRole. */
1515
+ export interface NamespaceMemberRoleConnection {
1516
+ __typename?: 'NamespaceMemberRoleConnection';
1517
+ /** Total count of collection. */
1518
+ count?: Maybe<Scalars['Int']['output']>;
1519
+ /** A list of edges. */
1520
+ edges?: Maybe<Array<Maybe<NamespaceMemberRoleEdge>>>;
1521
+ /** A list of nodes. */
1522
+ nodes?: Maybe<Array<Maybe<NamespaceMemberRole>>>;
1523
+ /** Information to aid in pagination. */
1524
+ pageInfo?: Maybe<PageInfo>;
1525
+ }
1526
+
1527
+ /** An edge in a connection. */
1528
+ export interface NamespaceMemberRoleEdge {
1529
+ __typename?: 'NamespaceMemberRoleEdge';
1530
+ /** A cursor for use in pagination. */
1531
+ cursor?: Maybe<Scalars['String']['output']>;
1532
+ /** The item at the end of the edge. */
1533
+ node?: Maybe<NamespaceMemberRole>;
1534
+ }
1535
+
1536
+ /** Abilities for the current user on this NamespaceMember */
1537
+ export interface NamespaceMemberUserAbilities {
1538
+ __typename?: 'NamespaceMemberUserAbilities';
1539
+ /** Shows if the current user has the `assign_member_roles` ability on this NamespaceMember */
1540
+ assignMemberRoles?: Maybe<Scalars['Boolean']['output']>;
1541
+ /** Shows if the current user has the `delete_member` ability on this NamespaceMember */
1542
+ deleteMember?: Maybe<Scalars['Boolean']['output']>;
1543
+ }
1544
+
1253
1545
  /** Objects that can present a namespace */
1254
1546
  export type NamespaceParent = Organization | User;
1255
1547
 
@@ -1276,6 +1568,8 @@ export interface NamespaceProject {
1276
1568
  runtimes?: Maybe<RuntimeConnection>;
1277
1569
  /** Time when this NamespaceProject was last updated */
1278
1570
  updatedAt?: Maybe<Scalars['Time']['output']>;
1571
+ /** Abilities for the current user on this NamespaceProject */
1572
+ userAbilities?: Maybe<NamespaceProjectUserAbilities>;
1279
1573
  }
1280
1574
 
1281
1575
 
@@ -1324,6 +1618,19 @@ export interface NamespaceProjectEdge {
1324
1618
  node?: Maybe<NamespaceProject>;
1325
1619
  }
1326
1620
 
1621
+ /** Abilities for the current user on this NamespaceProject */
1622
+ export interface NamespaceProjectUserAbilities {
1623
+ __typename?: 'NamespaceProjectUserAbilities';
1624
+ /** Shows if the current user has the `assign_project_runtimes` ability on this NamespaceProject */
1625
+ assignProjectRuntimes?: Maybe<Scalars['Boolean']['output']>;
1626
+ /** Shows if the current user has the `create_flow` ability on this NamespaceProject */
1627
+ createFlow?: Maybe<Scalars['Boolean']['output']>;
1628
+ /** Shows if the current user has the `delete_namespace_project` ability on this NamespaceProject */
1629
+ deleteNamespaceProject?: Maybe<Scalars['Boolean']['output']>;
1630
+ /** Shows if the current user has the `update_namespace_project` ability on this NamespaceProject */
1631
+ updateNamespaceProject?: Maybe<Scalars['Boolean']['output']>;
1632
+ }
1633
+
1327
1634
  /** Represents a namespace role. */
1328
1635
  export interface NamespaceRole {
1329
1636
  __typename?: 'NamespaceRole';
@@ -1341,6 +1648,8 @@ export interface NamespaceRole {
1341
1648
  namespace?: Maybe<Namespace>;
1342
1649
  /** Time when this NamespaceRole was last updated */
1343
1650
  updatedAt?: Maybe<Scalars['Time']['output']>;
1651
+ /** Abilities for the current user on this NamespaceRole */
1652
+ userAbilities?: Maybe<NamespaceRoleUserAbilities>;
1344
1653
  }
1345
1654
 
1346
1655
 
@@ -1353,7 +1662,7 @@ export interface NamespaceRoleAssignedProjectsArgs {
1353
1662
  }
1354
1663
 
1355
1664
  /** Represents abilities that can be granted to roles in namespaces. */
1356
- export enum NamespaceRoleAbility {
1665
+ export const enum NamespaceRoleAbility {
1357
1666
  /** Allows to change the roles of a namespace member */
1358
1667
  AssignMemberRoles = 'ASSIGN_MEMBER_ROLES',
1359
1668
  /** Allows to assign runtimes to a project in the namespace */
@@ -1363,7 +1672,7 @@ export enum NamespaceRoleAbility {
1363
1672
  /** Allows to change the assigned projects of a namespace role */
1364
1673
  AssignRoleProjects = 'ASSIGN_ROLE_PROJECTS',
1365
1674
  /** Allows to create flows in a namespace project */
1366
- CreateFlows = 'CREATE_FLOWS',
1675
+ CreateFlow = 'CREATE_FLOW',
1367
1676
  /** Allows to create a license for the namespace */
1368
1677
  CreateNamespaceLicense = 'CREATE_NAMESPACE_LICENSE',
1369
1678
  /** Allows to create a project in the namespace */
@@ -1373,7 +1682,7 @@ export enum NamespaceRoleAbility {
1373
1682
  /** Allows to create a runtime globally or for the namespace */
1374
1683
  CreateRuntime = 'CREATE_RUNTIME',
1375
1684
  /** Allows to delete flows in a namespace project */
1376
- DeleteFlows = 'DELETE_FLOWS',
1685
+ DeleteFlow = 'DELETE_FLOW',
1377
1686
  /** Allows to remove members of a namespace */
1378
1687
  DeleteMember = 'DELETE_MEMBER',
1379
1688
  /** Allows to delete the license of the namespace */
@@ -1397,7 +1706,7 @@ export enum NamespaceRoleAbility {
1397
1706
  /** Allows to regenerate a runtime token */
1398
1707
  RotateRuntimeToken = 'ROTATE_RUNTIME_TOKEN',
1399
1708
  /** Allows to update flows in the project */
1400
- UpdateFlows = 'UPDATE_FLOWS',
1709
+ UpdateFlow = 'UPDATE_FLOW',
1401
1710
  /** Allows to update the project of the namespace */
1402
1711
  UpdateNamespaceProject = 'UPDATE_NAMESPACE_PROJECT',
1403
1712
  /** Allows to update the namespace role */
@@ -1430,6 +1739,34 @@ export interface NamespaceRoleEdge {
1430
1739
  node?: Maybe<NamespaceRole>;
1431
1740
  }
1432
1741
 
1742
+ /** Abilities for the current user on this NamespaceRole */
1743
+ export interface NamespaceRoleUserAbilities {
1744
+ __typename?: 'NamespaceRoleUserAbilities';
1745
+ /** Shows if the current user has the `assign_role_abilities` ability on this NamespaceRole */
1746
+ assignRoleAbilities?: Maybe<Scalars['Boolean']['output']>;
1747
+ /** Shows if the current user has the `assign_role_projects` ability on this NamespaceRole */
1748
+ assignRoleProjects?: Maybe<Scalars['Boolean']['output']>;
1749
+ /** Shows if the current user has the `delete_namespace_role` ability on this NamespaceRole */
1750
+ deleteNamespaceRole?: Maybe<Scalars['Boolean']['output']>;
1751
+ /** Shows if the current user has the `update_namespace_role` ability on this NamespaceRole */
1752
+ updateNamespaceRole?: Maybe<Scalars['Boolean']['output']>;
1753
+ }
1754
+
1755
+ /** Abilities for the current user on this Namespace */
1756
+ export interface NamespaceUserAbilities {
1757
+ __typename?: 'NamespaceUserAbilities';
1758
+ /** Shows if the current user has the `create_namespace_license` ability on this Namespace */
1759
+ createNamespaceLicense?: Maybe<Scalars['Boolean']['output']>;
1760
+ /** Shows if the current user has the `create_namespace_project` ability on this Namespace */
1761
+ createNamespaceProject?: Maybe<Scalars['Boolean']['output']>;
1762
+ /** Shows if the current user has the `create_namespace_role` ability on this Namespace */
1763
+ createNamespaceRole?: Maybe<Scalars['Boolean']['output']>;
1764
+ /** Shows if the current user has the `create_runtime` ability on this Namespace */
1765
+ createRuntime?: Maybe<Scalars['Boolean']['output']>;
1766
+ /** Shows if the current user has the `invite_member` ability on this Namespace */
1767
+ inviteMember?: Maybe<Scalars['Boolean']['output']>;
1768
+ }
1769
+
1433
1770
  /** Autogenerated input type of NamespacesLicensesCreate */
1434
1771
  export interface NamespacesLicensesCreateInput {
1435
1772
  /** A unique identifier for the client performing the mutation. */
@@ -1818,8 +2155,10 @@ export interface NodeFunctionEdge {
1818
2155
 
1819
2156
  /** Input type for a Node Function */
1820
2157
  export interface NodeFunctionInput {
2158
+ /** The identifier of the Node Function used to create/update the flow */
2159
+ id: Scalars['NodeFunctionID']['input'];
1821
2160
  /** The next Node Function in the flow */
1822
- nextNode?: InputMaybe<NodeFunctionInput>;
2161
+ nextNodeId?: InputMaybe<Scalars['NodeFunctionID']['input']>;
1823
2162
  /** The parameters of the Node Function */
1824
2163
  parameters: Array<NodeParameterInput>;
1825
2164
  /** The identifier of the Runtime Function Definition */
@@ -1897,6 +2236,39 @@ export interface Organization {
1897
2236
  namespace?: Maybe<Namespace>;
1898
2237
  /** Time when this Organization was last updated */
1899
2238
  updatedAt?: Maybe<Scalars['Time']['output']>;
2239
+ /** Abilities for the current user on this Organization */
2240
+ userAbilities?: Maybe<OrganizationUserAbilities>;
2241
+ }
2242
+
2243
+ /** The connection type for Organization. */
2244
+ export interface OrganizationConnection {
2245
+ __typename?: 'OrganizationConnection';
2246
+ /** Total count of collection. */
2247
+ count?: Maybe<Scalars['Int']['output']>;
2248
+ /** A list of edges. */
2249
+ edges?: Maybe<Array<Maybe<OrganizationEdge>>>;
2250
+ /** A list of nodes. */
2251
+ nodes?: Maybe<Array<Maybe<Organization>>>;
2252
+ /** Information to aid in pagination. */
2253
+ pageInfo?: Maybe<PageInfo>;
2254
+ }
2255
+
2256
+ /** An edge in a connection. */
2257
+ export interface OrganizationEdge {
2258
+ __typename?: 'OrganizationEdge';
2259
+ /** A cursor for use in pagination. */
2260
+ cursor?: Maybe<Scalars['String']['output']>;
2261
+ /** The item at the end of the edge. */
2262
+ node?: Maybe<Organization>;
2263
+ }
2264
+
2265
+ /** Abilities for the current user on this Organization */
2266
+ export interface OrganizationUserAbilities {
2267
+ __typename?: 'OrganizationUserAbilities';
2268
+ /** Shows if the current user has the `delete_organization` ability on this Organization */
2269
+ deleteOrganization?: Maybe<Scalars['Boolean']['output']>;
2270
+ /** Shows if the current user has the `update_organization` ability on this Organization */
2271
+ updateOrganization?: Maybe<Scalars['Boolean']['output']>;
1900
2272
  }
1901
2273
 
1902
2274
  /** Autogenerated input type of OrganizationsCreate */
@@ -2062,6 +2434,10 @@ export interface Query {
2062
2434
  nodes?: Maybe<Array<Maybe<Node>>>;
2063
2435
  /** Find a organization */
2064
2436
  organization?: Maybe<Organization>;
2437
+ /** Find organizations */
2438
+ organizations?: Maybe<OrganizationConnection>;
2439
+ /** Abilities for the current user on this Instance */
2440
+ userAbilities?: Maybe<InstanceUserAbilities>;
2065
2441
  /** Find users */
2066
2442
  users?: Maybe<UserConnection>;
2067
2443
  }
@@ -2107,6 +2483,15 @@ export interface QueryOrganizationArgs {
2107
2483
  }
2108
2484
 
2109
2485
 
2486
+ /** Root Query type */
2487
+ export interface QueryOrganizationsArgs {
2488
+ after?: InputMaybe<Scalars['String']['input']>;
2489
+ before?: InputMaybe<Scalars['String']['input']>;
2490
+ first?: InputMaybe<Scalars['Int']['input']>;
2491
+ last?: InputMaybe<Scalars['Int']['input']>;
2492
+ }
2493
+
2494
+
2110
2495
  /** Root Query type */
2111
2496
  export interface QueryUsersArgs {
2112
2497
  after?: InputMaybe<Scalars['String']['input']>;
@@ -2151,6 +2536,8 @@ export interface ReferenceValue {
2151
2536
  id?: Maybe<Scalars['ReferenceValueID']['output']>;
2152
2537
  /** The node of the reference value. */
2153
2538
  node?: Maybe<Scalars['Int']['output']>;
2539
+ /** The referenced value. */
2540
+ nodeFunctionId?: Maybe<Scalars['NodeFunctionID']['output']>;
2154
2541
  /** The paths associated with this reference value. */
2155
2542
  referencePath?: Maybe<Array<ReferencePath>>;
2156
2543
  /** The scope of the reference value. */
@@ -2163,14 +2550,16 @@ export interface ReferenceValue {
2163
2550
  export interface ReferenceValueInput {
2164
2551
  /** The identifier of the data type this reference value belongs to */
2165
2552
  dataTypeIdentifier: DataTypeIdentifierInput;
2166
- /** The primary level of the reference value */
2167
- primaryLevel: Scalars['Int']['input'];
2553
+ /** The depth of the reference value */
2554
+ depth: Scalars['Int']['input'];
2555
+ /** The node of the reference */
2556
+ node: Scalars['Int']['input'];
2557
+ /** The referenced value */
2558
+ nodeFunctionId: Scalars['NodeFunctionID']['input'];
2168
2559
  /** The paths associated with this reference value */
2169
2560
  referencePath: Array<ReferencePathInput>;
2170
- /** The secondary level of the reference value */
2171
- secondaryLevel: Scalars['Int']['input'];
2172
- /** The tertiary level of the reference value */
2173
- tertiaryLevel?: InputMaybe<Scalars['Int']['input']>;
2561
+ /** The scope of the reference value */
2562
+ scope: Array<Scalars['Int']['input']>;
2174
2563
  }
2175
2564
 
2176
2565
  /** Represents a runtime */
@@ -2198,6 +2587,8 @@ export interface Runtime {
2198
2587
  token?: Maybe<Scalars['String']['output']>;
2199
2588
  /** Time when this Runtime was last updated */
2200
2589
  updatedAt?: Maybe<Scalars['Time']['output']>;
2590
+ /** Abilities for the current user on this Runtime */
2591
+ userAbilities?: Maybe<RuntimeUserAbilities>;
2201
2592
  }
2202
2593
 
2203
2594
 
@@ -2320,13 +2711,24 @@ export interface RuntimeParameterDefinitionEdge {
2320
2711
  }
2321
2712
 
2322
2713
  /** Represent all available types of statuses of a runtime */
2323
- export enum RuntimeStatusType {
2714
+ export const enum RuntimeStatusType {
2324
2715
  /** No problem with connection, everything works as expected */
2325
2716
  Connected = 'CONNECTED',
2326
2717
  /** The runtime is disconnected, cause unknown */
2327
2718
  Disconnected = 'DISCONNECTED'
2328
2719
  }
2329
2720
 
2721
+ /** Abilities for the current user on this Runtime */
2722
+ export interface RuntimeUserAbilities {
2723
+ __typename?: 'RuntimeUserAbilities';
2724
+ /** Shows if the current user has the `delete_runtime` ability on this Runtime */
2725
+ deleteRuntime?: Maybe<Scalars['Boolean']['output']>;
2726
+ /** Shows if the current user has the `rotate_runtime_token` ability on this Runtime */
2727
+ rotateRuntimeToken?: Maybe<Scalars['Boolean']['output']>;
2728
+ /** Shows if the current user has the `update_runtime` ability on this Runtime */
2729
+ updateRuntime?: Maybe<Scalars['Boolean']['output']>;
2730
+ }
2731
+
2330
2732
  /** Autogenerated input type of RuntimesCreate */
2331
2733
  export interface RuntimesCreateInput {
2332
2734
  /** A unique identifier for the client performing the mutation. */
@@ -2453,6 +2855,8 @@ export interface User {
2453
2855
  createdAt?: Maybe<Scalars['Time']['output']>;
2454
2856
  /** Email of the user */
2455
2857
  email?: Maybe<Scalars['String']['output']>;
2858
+ /** Email verification date of the user if present */
2859
+ emailVerifiedAt?: Maybe<Scalars['Time']['output']>;
2456
2860
  /** Firstname of the user */
2457
2861
  firstname?: Maybe<Scalars['String']['output']>;
2458
2862
  /** Global ID of this User */
@@ -2469,6 +2873,8 @@ export interface User {
2469
2873
  sessions?: Maybe<UserSessionConnection>;
2470
2874
  /** Time when this User was last updated */
2471
2875
  updatedAt?: Maybe<Scalars['Time']['output']>;
2876
+ /** Abilities for the current user on this User */
2877
+ userAbilities?: Maybe<UserUserAbilities>;
2472
2878
  /** Username of the user */
2473
2879
  username?: Maybe<Scalars['String']['output']>;
2474
2880
  }
@@ -2576,6 +2982,8 @@ export interface UserSession {
2576
2982
  updatedAt?: Maybe<Scalars['Time']['output']>;
2577
2983
  /** User that belongs to the session */
2578
2984
  user?: Maybe<User>;
2985
+ /** Abilities for the current user on this UserSession */
2986
+ userAbilities?: Maybe<UserSessionUserAbilities>;
2579
2987
  }
2580
2988
 
2581
2989
  /** The connection type for UserSession. */
@@ -2600,6 +3008,22 @@ export interface UserSessionEdge {
2600
3008
  node?: Maybe<UserSession>;
2601
3009
  }
2602
3010
 
3011
+ /** Abilities for the current user on this UserSession */
3012
+ export interface UserSessionUserAbilities {
3013
+ __typename?: 'UserSessionUserAbilities';
3014
+ /** Shows if the current user has the `logout_session` ability on this UserSession */
3015
+ logoutSession?: Maybe<Scalars['Boolean']['output']>;
3016
+ }
3017
+
3018
+ /** Abilities for the current user on this User */
3019
+ export interface UserUserAbilities {
3020
+ __typename?: 'UserUserAbilities';
3021
+ /** Shows if the current user has the `manage_mfa` ability on this User */
3022
+ manageMfa?: Maybe<Scalars['Boolean']['output']>;
3023
+ /** Shows if the current user has the `update_user` ability on this User */
3024
+ updateUser?: Maybe<Scalars['Boolean']['output']>;
3025
+ }
3026
+
2603
3027
  /** Autogenerated input type of UsersEmailVerification */
2604
3028
  export interface UsersEmailVerificationInput {
2605
3029
  /** A unique identifier for the client performing the mutation. */
@@ -2803,6 +3227,48 @@ export interface UsersMfaTotpValidateSecretPayload {
2803
3227
  user?: Maybe<User>;
2804
3228
  }
2805
3229
 
3230
+ /** Autogenerated input type of UsersPasswordReset */
3231
+ export interface UsersPasswordResetInput {
3232
+ /** A unique identifier for the client performing the mutation. */
3233
+ clientMutationId?: InputMaybe<Scalars['String']['input']>;
3234
+ /** The new password to set for the user */
3235
+ newPassword: Scalars['String']['input'];
3236
+ /** The confirmation of the new password to set for the user needs to be the same as the new password */
3237
+ newPasswordConfirmation: Scalars['String']['input'];
3238
+ /** The password reset token sent to the user email */
3239
+ resetToken: Scalars['String']['input'];
3240
+ }
3241
+
3242
+ /** Autogenerated return type of UsersPasswordReset. */
3243
+ export interface UsersPasswordResetPayload {
3244
+ __typename?: 'UsersPasswordResetPayload';
3245
+ /** A unique identifier for the client performing the mutation. */
3246
+ clientMutationId?: Maybe<Scalars['String']['output']>;
3247
+ /** Errors encountered during execution of the mutation. */
3248
+ errors?: Maybe<Array<Error>>;
3249
+ /** A message indicating the result of the password reset request */
3250
+ message?: Maybe<Scalars['String']['output']>;
3251
+ }
3252
+
3253
+ /** Autogenerated input type of UsersPasswordResetRequest */
3254
+ export interface UsersPasswordResetRequestInput {
3255
+ /** A unique identifier for the client performing the mutation. */
3256
+ clientMutationId?: InputMaybe<Scalars['String']['input']>;
3257
+ /** Email of the user to reset the password */
3258
+ email: Scalars['String']['input'];
3259
+ }
3260
+
3261
+ /** Autogenerated return type of UsersPasswordResetRequest. */
3262
+ export interface UsersPasswordResetRequestPayload {
3263
+ __typename?: 'UsersPasswordResetRequestPayload';
3264
+ /** A unique identifier for the client performing the mutation. */
3265
+ clientMutationId?: Maybe<Scalars['String']['output']>;
3266
+ /** Errors encountered during execution of the mutation. */
3267
+ errors?: Maybe<Array<Error>>;
3268
+ /** A message indicating the result of the password reset request */
3269
+ message?: Maybe<Scalars['String']['output']>;
3270
+ }
3271
+
2806
3272
  /** Autogenerated input type of UsersRegister */
2807
3273
  export interface UsersRegisterInput {
2808
3274
  /** A unique identifier for the client performing the mutation. */
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@code0-tech/sagittarius-graphql-types",
3
- "version": "0.0.0-3dbc1d7dffaa541501b2cb0954dabc06a9288cf6",
3
+ "version": "0.0.0-4e14e2ae65b66543ca2d02d685fa36e9e1b8b5ec",
4
4
  "description": "",
5
- "main": "index.js",
5
+ "main": "index.d.ts",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
8
8
  "generate": "graphql-codegen --config codegen.ts"
@@ -23,7 +23,6 @@
23
23
  },
24
24
  "files": [
25
25
  "index.d.ts",
26
- "index.js",
27
26
  "package.json"
28
27
  ],
29
28
  "publishConfig": {
package/index.js DELETED
File without changes