@code0-tech/sagittarius-graphql-types 0.0.0-6dff4363750d2fd791eeeb1c03332895dfebcdcc → 0.0.0-755f9382e6589ede0182dace55452703bcd6e85b

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 +216 -12
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -168,6 +168,16 @@ export interface DataTypeIdentifier {
168
168
  updatedAt?: Maybe<Scalars['Time']['output']>;
169
169
  }
170
170
 
171
+ /** Input type for data type identifier */
172
+ export interface DataTypeIdentifierInput {
173
+ /** Data type ID */
174
+ dataTypeId?: InputMaybe<Scalars['DataTypeID']['input']>;
175
+ /** Generic key value */
176
+ genericKey?: InputMaybe<Scalars['String']['input']>;
177
+ /** Generic type information */
178
+ genericType?: InputMaybe<GenericTypeInput>;
179
+ }
180
+
171
181
  /** Represents a rule that can be applied to a data type. */
172
182
  export interface DataTypeRule {
173
183
  __typename?: 'DataTypeRule';
@@ -317,6 +327,9 @@ export const enum DataTypeVariant {
317
327
  Type = 'TYPE'
318
328
  }
319
329
 
330
+ /** Represents a detailed error with either a message or an active model error */
331
+ export type DetailedError = ActiveModelError | FlowValidationError | MessageError;
332
+
320
333
  /** Autogenerated input type of Echo */
321
334
  export interface EchoInput {
322
335
  /** A unique identifier for the client performing the mutation. */
@@ -337,12 +350,11 @@ export interface EchoPayload {
337
350
  }
338
351
 
339
352
  /** Objects that can present an error */
340
- export type Error = ActiveModelError | ErrorCode | MessageError;
341
-
342
- /** Represents an error code */
343
- export interface ErrorCode {
344
- __typename?: 'ErrorCode';
345
- /** The error code */
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 */
346
358
  errorCode?: Maybe<ErrorCodeEnum>;
347
359
  }
348
360
 
@@ -350,50 +362,118 @@ export interface ErrorCode {
350
362
  export const enum ErrorCodeEnum {
351
363
  /** This action would remove the last administrative role */
352
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',
353
369
  /** This action would remove the last administrator */
354
370
  CannotRemoveLastAdministrator = 'CANNOT_REMOVE_LAST_ADMINISTRATOR',
355
371
  /** This action would remove the last administrative ability */
356
372
  CannotRemoveLastAdminAbility = 'CANNOT_REMOVE_LAST_ADMIN_ABILITY',
373
+ /** Failed to send the email verification */
374
+ EmailVerificationSendFailed = 'EMAIL_VERIFICATION_SEND_FAILED',
357
375
  /** This external identity does not exist */
358
376
  ExternalIdentityDoesNotExist = 'EXTERNAL_IDENTITY_DOES_NOT_EXIST',
359
377
  /** The old backup codes could not be deleted */
360
378
  FailedToInvalidateOldBackupCodes = 'FAILED_TO_INVALIDATE_OLD_BACKUP_CODES',
379
+ /** Failed to reset the user password */
380
+ FailedToResetPassword = 'FAILED_TO_RESET_PASSWORD',
361
381
  /** The new backup codes could not be saved */
362
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',
363
389
  /** The given key was not found in the data type */
364
390
  GenericKeyNotFound = 'GENERIC_KEY_NOT_FOUND',
391
+ /** The external identity with the given identifier was not found */
392
+ IdentityNotFound = 'IDENTITY_NOT_FOUND',
365
393
  /** Failed to validate the external identity */
366
394
  IdentityValidationFailed = 'IDENTITY_VALIDATION_FAILED',
367
395
  /** Resources are from different namespaces */
368
396
  InconsistentNamespace = 'INCONSISTENT_NAMESPACE',
397
+ /** The attachment is invalid because of active model errors */
398
+ InvalidAttachment = 'INVALID_ATTACHMENT',
369
399
  /** This external identity is invalid */
370
400
  InvalidExternalIdentity = 'INVALID_EXTERNAL_IDENTITY',
401
+ /** The flow is invalid because of active model errors */
402
+ InvalidFlow = 'INVALID_FLOW',
403
+ /** The flow setting is invalid because of active model errors */
404
+ InvalidFlowSetting = 'INVALID_FLOW_SETTING',
371
405
  /** Invalid login data provided */
372
406
  InvalidLoginData = 'INVALID_LOGIN_DATA',
407
+ /** The namespace license is invalid because of active model errors */
408
+ InvalidNamespaceLicense = 'INVALID_NAMESPACE_LICENSE',
409
+ /** The namespace member is invalid because of active model errors */
410
+ InvalidNamespaceMember = 'INVALID_NAMESPACE_MEMBER',
411
+ /** The namespace project is invalid because of active model errors */
412
+ InvalidNamespaceProject = 'INVALID_NAMESPACE_PROJECT',
413
+ /** The namespace role is invalid because of active model errors */
414
+ InvalidNamespaceRole = 'INVALID_NAMESPACE_ROLE',
415
+ /** The organization is invalid because of active model errors */
416
+ InvalidOrganization = 'INVALID_ORGANIZATION',
417
+ /** The provided password repeat does not match the password */
418
+ InvalidPasswordRepeat = 'INVALID_PASSWORD_REPEAT',
419
+ /** The runtime is invalid because of active model errors */
420
+ InvalidRuntime = 'INVALID_RUNTIME',
373
421
  /** Invalid setting provided */
374
422
  InvalidSetting = 'INVALID_SETTING',
423
+ /** The TOTP secret is invalid or cannot be verified */
424
+ InvalidTotpSecret = 'INVALID_TOTP_SECRET',
425
+ /** The user is invalid because of active model errors */
426
+ InvalidUser = 'INVALID_USER',
427
+ /** The user identity is invalid because of active model errors */
428
+ InvalidUserIdentity = 'INVALID_USER_IDENTITY',
429
+ /** The user session is invalid because of active model errors */
430
+ InvalidUserSession = 'INVALID_USER_SESSION',
375
431
  /** Invalid verification code provided */
376
432
  InvalidVerificationCode = 'INVALID_VERIFICATION_CODE',
433
+ /** The namespace license with the given identifier was not found */
434
+ LicenseNotFound = 'LICENSE_NOT_FOUND',
435
+ /** Failed to load user identity from external provider */
436
+ LoadingIdentityFailed = 'LOADING_IDENTITY_FAILED',
377
437
  /** Invalid MFA data provided */
378
438
  MfaFailed = 'MFA_FAILED',
379
439
  /** MFA is required */
380
440
  MfaRequired = 'MFA_REQUIRED',
441
+ /** The primary runtime has more definitions than this one */
442
+ MissingDefinition = 'MISSING_DEFINITION',
381
443
  /** This external identity is missing data */
382
444
  MissingIdentityData = 'MISSING_IDENTITY_DATA',
383
445
  /** Not all required parameters are present */
384
446
  MissingParameter = 'MISSING_PARAMETER',
385
447
  /** The user is not permitted to perform this operation */
386
448
  MissingPermission = 'MISSING_PERMISSION',
449
+ /** The project is missing a primary runtime */
450
+ MissingPrimaryRuntime = 'MISSING_PRIMARY_RUNTIME',
451
+ /** The namespace member with the given identifier was not found */
452
+ NamespaceMemberNotFound = 'NAMESPACE_MEMBER_NOT_FOUND',
453
+ /** The namespace with the given identifier was not found */
454
+ NamespaceNotFound = 'NAMESPACE_NOT_FOUND',
455
+ /** The namespace project with the given identifier was not found */
456
+ NamespaceProjectNotFound = 'NAMESPACE_PROJECT_NOT_FOUND',
457
+ /** The namespace role with the given identifier was not found */
458
+ NamespaceRoleNotFound = 'NAMESPACE_ROLE_NOT_FOUND',
387
459
  /** There are no free license seats to complete this operation */
388
460
  NoFreeLicenseSeats = 'NO_FREE_LICENSE_SEATS',
389
461
  /** The project does not have a primary runtime */
390
462
  NoPrimaryRuntime = 'NO_PRIMARY_RUNTIME',
463
+ /** The organization with the given identifier was not found */
464
+ OrganizationNotFound = 'ORGANIZATION_NOT_FOUND',
465
+ /** The primary runtime has a newer definition than this one */
466
+ OutdatedDefinition = 'OUTDATED_DEFINITION',
391
467
  /** @deprecated Outdated concept */
392
468
  PrimaryLevelNotFound = 'PRIMARY_LEVEL_NOT_FOUND',
469
+ /** The namespace project with the given identifier was not found */
470
+ ProjectNotFound = 'PROJECT_NOT_FOUND',
393
471
  /** Self-registration is disabled */
394
472
  RegistrationDisabled = 'REGISTRATION_DISABLED',
395
473
  /** Resources are from different runtimes */
396
474
  RuntimeMismatch = 'RUNTIME_MISMATCH',
475
+ /** The runtime with the given identifier was not found */
476
+ RuntimeNotFound = 'RUNTIME_NOT_FOUND',
397
477
  /** @deprecated Outdated concept */
398
478
  SecondaryLevelNotFound = 'SECONDARY_LEVEL_NOT_FOUND',
399
479
  /** @deprecated Outdated concept */
@@ -402,6 +482,10 @@ export const enum ErrorCodeEnum {
402
482
  TotpSecretAlreadySet = 'TOTP_SECRET_ALREADY_SET',
403
483
  /** The user is not permitted to modify this field */
404
484
  UnmodifiableField = 'UNMODIFIABLE_FIELD',
485
+ /** The user with the given identifier was not found */
486
+ UserNotFound = 'USER_NOT_FOUND',
487
+ /** The user session with the given identifier was not found */
488
+ UserSessionNotFound = 'USER_SESSION_NOT_FOUND',
405
489
  /** Invalid TOTP code provided */
406
490
  WrongTotp = 'WRONG_TOTP'
407
491
  }
@@ -477,10 +561,12 @@ export interface FlowEdge {
477
561
  export interface FlowInput {
478
562
  /** The name of the flow */
479
563
  name: Scalars['String']['input'];
564
+ /** The node functions of the flow */
565
+ nodes: Array<NodeFunctionInput>;
480
566
  /** The settings of the flow */
481
567
  settings?: InputMaybe<Array<FlowSettingInput>>;
482
568
  /** The starting node of the flow */
483
- startingNode: NodeFunctionInput;
569
+ startingNodeId: Scalars['NodeFunctionID']['input'];
484
570
  /** The identifier of the flow type */
485
571
  type: Scalars['FlowTypeID']['input'];
486
572
  }
@@ -525,9 +611,9 @@ export interface FlowSettingEdge {
525
611
  /** Input type for flow settings */
526
612
  export interface FlowSettingInput {
527
613
  /** The identifier (not database id) of the flow setting */
528
- flowSettingId: Scalars['String']['input'];
614
+ flowSettingIdentifier: Scalars['String']['input'];
529
615
  /** The value of the flow setting */
530
- object: Scalars['JSON']['input'];
616
+ value: Scalars['JSON']['input'];
531
617
  }
532
618
 
533
619
  /** Represents a flow type */
@@ -643,6 +729,49 @@ export interface FlowUserAbilities {
643
729
  deleteFlow?: Maybe<Scalars['Boolean']['output']>;
644
730
  }
645
731
 
732
+ /** Represents a flow validation error */
733
+ export interface FlowValidationError {
734
+ __typename?: 'FlowValidationError';
735
+ /** Additional details about the validation error */
736
+ details?: Maybe<ActiveModelError>;
737
+ /** The code representing the validation error type */
738
+ errorCode?: Maybe<FlowValidationErrorCodeEnum>;
739
+ /** The severity of the validation error */
740
+ severity?: Maybe<FlowValidationSeverityEnum>;
741
+ }
742
+
743
+ /** Represents the available error responses */
744
+ export const enum FlowValidationErrorCodeEnum {
745
+ /** The generic key for the data type identifier was not found. */
746
+ DataTypeIdentifierGenericKeyNotFound = 'DATA_TYPE_IDENTIFIER_GENERIC_KEY_NOT_FOUND',
747
+ /** The data type identifier runtime does not match the flow type runtime. */
748
+ DataTypeIdentifierRuntimeMismatch = 'DATA_TYPE_IDENTIFIER_RUNTIME_MISMATCH',
749
+ /** The data type rule model is invalid. */
750
+ DataTypeRuleModelInvalid = 'DATA_TYPE_RULE_MODEL_INVALID',
751
+ /** The data type runtime does not match the flow type runtime. */
752
+ DataTypeRuntimeMismatch = 'DATA_TYPE_RUNTIME_MISMATCH',
753
+ /** The flow setting model is invalid. */
754
+ FlowSettingModelInvalid = 'FLOW_SETTING_MODEL_INVALID',
755
+ /** The flow type runtime does not match the project primary runtime. */
756
+ FlowTypeRuntimeMismatch = 'FLOW_TYPE_RUNTIME_MISMATCH',
757
+ /** The node function runtime does not match the project primary runtime. */
758
+ NodeFunctionRuntimeMismatch = 'NODE_FUNCTION_RUNTIME_MISMATCH',
759
+ /** The project does not have a primary runtime set. */
760
+ NoPrimaryRuntime = 'NO_PRIMARY_RUNTIME'
761
+ }
762
+
763
+ /** Represents the severity of a flow validation error */
764
+ export const enum FlowValidationSeverityEnum {
765
+ /** A blocking validation error */
766
+ Error = 'ERROR',
767
+ /** A minor typographical issue can also be blocking */
768
+ Typo = 'TYPO',
769
+ /** A non-blocking validation warning */
770
+ Warning = 'WARNING',
771
+ /** A weak validation issue that may not need to be addressed */
772
+ Weak = 'WEAK'
773
+ }
774
+
646
775
  /** Represents a function definition */
647
776
  export interface FunctionDefinition {
648
777
  __typename?: 'FunctionDefinition';
@@ -781,6 +910,14 @@ export interface GenericMapper {
781
910
  updatedAt?: Maybe<Scalars['Time']['output']>;
782
911
  }
783
912
 
913
+ /** Input type for generic mappers */
914
+ export interface GenericMapperInput {
915
+ /** The source data type identifier for the mapper */
916
+ sourceDataTypeIdentifiers: Array<DataTypeIdentifierInput>;
917
+ /** The target data type identifier for the mapper */
918
+ target: Scalars['String']['input'];
919
+ }
920
+
784
921
  /** Represents a generic type that can be used in various contexts. */
785
922
  export interface GenericType {
786
923
  __typename?: 'GenericType';
@@ -796,6 +933,14 @@ export interface GenericType {
796
933
  updatedAt?: Maybe<Scalars['Time']['output']>;
797
934
  }
798
935
 
936
+ /** Input type for generic type operations. */
937
+ export interface GenericTypeInput {
938
+ /** The data type associated with this generic type. */
939
+ dataTypeId: Scalars['DataTypeID']['input'];
940
+ /** The mappers associated with this generic type. */
941
+ genericMappers: Array<GenericMapperInput>;
942
+ }
943
+
799
944
  /** Represents the input for external user identity validation */
800
945
  export interface IdentityInput {
801
946
  /** This validation code will be used for the oAuth validation process */
@@ -837,6 +982,15 @@ export interface MessageError {
837
982
  message?: Maybe<Scalars['String']['output']>;
838
983
  }
839
984
 
985
+ /** Application metadata */
986
+ export interface Metadata {
987
+ __typename?: 'Metadata';
988
+ /** List of loaded extensions */
989
+ extensions?: Maybe<Array<Scalars['String']['output']>>;
990
+ /** Application version */
991
+ version?: Maybe<Scalars['String']['output']>;
992
+ }
993
+
840
994
  /** Represents the input for mfa authentication */
841
995
  export interface MfaInput {
842
996
  /** The type of the mfa authentication */
@@ -1427,6 +1581,8 @@ export interface NamespaceProject {
1427
1581
  namespace?: Maybe<Namespace>;
1428
1582
  /** The primary runtime for the project */
1429
1583
  primaryRuntime?: Maybe<Runtime>;
1584
+ /** Roles assigned to this project */
1585
+ roles?: Maybe<NamespaceRoleConnection>;
1430
1586
  /** Runtimes assigned to this project */
1431
1587
  runtimes?: Maybe<RuntimeConnection>;
1432
1588
  /** Time when this NamespaceProject was last updated */
@@ -1451,6 +1607,15 @@ export interface NamespaceProjectFlowsArgs {
1451
1607
  }
1452
1608
 
1453
1609
 
1610
+ /** Represents a namespace project */
1611
+ export interface NamespaceProjectRolesArgs {
1612
+ after?: InputMaybe<Scalars['String']['input']>;
1613
+ before?: InputMaybe<Scalars['String']['input']>;
1614
+ first?: InputMaybe<Scalars['Int']['input']>;
1615
+ last?: InputMaybe<Scalars['Int']['input']>;
1616
+ }
1617
+
1618
+
1454
1619
  /** Represents a namespace project */
1455
1620
  export interface NamespaceProjectRuntimesArgs {
1456
1621
  after?: InputMaybe<Scalars['String']['input']>;
@@ -1505,6 +1670,8 @@ export interface NamespaceRole {
1505
1670
  createdAt?: Maybe<Scalars['Time']['output']>;
1506
1671
  /** Global ID of this NamespaceRole */
1507
1672
  id?: Maybe<Scalars['NamespaceRoleID']['output']>;
1673
+ /** The members this role is assigned to */
1674
+ members?: Maybe<NamespaceMemberConnection>;
1508
1675
  /** The name of this role */
1509
1676
  name?: Maybe<Scalars['String']['output']>;
1510
1677
  /** The namespace where this role belongs to */
@@ -1524,6 +1691,15 @@ export interface NamespaceRoleAssignedProjectsArgs {
1524
1691
  last?: InputMaybe<Scalars['Int']['input']>;
1525
1692
  }
1526
1693
 
1694
+
1695
+ /** Represents a namespace role. */
1696
+ export interface NamespaceRoleMembersArgs {
1697
+ after?: InputMaybe<Scalars['String']['input']>;
1698
+ before?: InputMaybe<Scalars['String']['input']>;
1699
+ first?: InputMaybe<Scalars['Int']['input']>;
1700
+ last?: InputMaybe<Scalars['Int']['input']>;
1701
+ }
1702
+
1527
1703
  /** Represents abilities that can be granted to roles in namespaces. */
1528
1704
  export const enum NamespaceRoleAbility {
1529
1705
  /** Allows to change the roles of a namespace member */
@@ -2018,8 +2194,10 @@ export interface NodeFunctionEdge {
2018
2194
 
2019
2195
  /** Input type for a Node Function */
2020
2196
  export interface NodeFunctionInput {
2197
+ /** The identifier of the Node Function used to create/update the flow */
2198
+ id: Scalars['NodeFunctionID']['input'];
2021
2199
  /** The next Node Function in the flow */
2022
- nextNode?: InputMaybe<NodeFunctionInput>;
2200
+ nextNodeId?: InputMaybe<Scalars['NodeFunctionID']['input']>;
2023
2201
  /** The parameters of the Node Function */
2024
2202
  parameters: Array<NodeParameterInput>;
2025
2203
  /** The identifier of the Runtime Function Definition */
@@ -2287,6 +2465,8 @@ export interface Query {
2287
2465
  echo?: Maybe<Scalars['String']['output']>;
2288
2466
  /** Find runtimes */
2289
2467
  globalRuntimes?: Maybe<RuntimeConnection>;
2468
+ /** Get application metadata */
2469
+ metadata?: Maybe<Metadata>;
2290
2470
  /** Find a namespace */
2291
2471
  namespace?: Maybe<Namespace>;
2292
2472
  /** Fetches an object given its ID */
@@ -2297,6 +2477,8 @@ export interface Query {
2297
2477
  organization?: Maybe<Organization>;
2298
2478
  /** Find organizations */
2299
2479
  organizations?: Maybe<OrganizationConnection>;
2480
+ /** Find a user */
2481
+ user?: Maybe<User>;
2300
2482
  /** Abilities for the current user on this Instance */
2301
2483
  userAbilities?: Maybe<InstanceUserAbilities>;
2302
2484
  /** Find users */
@@ -2353,6 +2535,12 @@ export interface QueryOrganizationsArgs {
2353
2535
  }
2354
2536
 
2355
2537
 
2538
+ /** Root Query type */
2539
+ export interface QueryUserArgs {
2540
+ id: Scalars['UserID']['input'];
2541
+ }
2542
+
2543
+
2356
2544
  /** Root Query type */
2357
2545
  export interface QueryUsersArgs {
2358
2546
  after?: InputMaybe<Scalars['String']['input']>;
@@ -2389,22 +2577,38 @@ export interface ReferenceValue {
2389
2577
  __typename?: 'ReferenceValue';
2390
2578
  /** Time when this ReferenceValue was created */
2391
2579
  createdAt?: Maybe<Scalars['Time']['output']>;
2580
+ /** The identifier of the data type this reference value belongs to. */
2581
+ dataTypeIdentifier?: Maybe<DataTypeIdentifier>;
2582
+ /** The depth of the reference value. */
2583
+ depth?: Maybe<Scalars['Int']['output']>;
2392
2584
  /** Global ID of this ReferenceValue */
2393
2585
  id?: Maybe<Scalars['ReferenceValueID']['output']>;
2586
+ /** The node of the reference value. */
2587
+ node?: Maybe<Scalars['Int']['output']>;
2394
2588
  /** The referenced value. */
2395
- nodeFunction?: Maybe<NodeFunction>;
2589
+ nodeFunctionId?: Maybe<Scalars['NodeFunctionID']['output']>;
2396
2590
  /** The paths associated with this reference value. */
2397
2591
  referencePath?: Maybe<Array<ReferencePath>>;
2592
+ /** The scope of the reference value. */
2593
+ scope?: Maybe<Array<Scalars['Int']['output']>>;
2398
2594
  /** Time when this ReferenceValue was last updated */
2399
2595
  updatedAt?: Maybe<Scalars['Time']['output']>;
2400
2596
  }
2401
2597
 
2402
2598
  /** Input type for reference value */
2403
2599
  export interface ReferenceValueInput {
2600
+ /** The identifier of the data type this reference value belongs to */
2601
+ dataTypeIdentifier: DataTypeIdentifierInput;
2602
+ /** The depth of the reference value */
2603
+ depth: Scalars['Int']['input'];
2604
+ /** The node of the reference */
2605
+ node: Scalars['Int']['input'];
2404
2606
  /** The referenced value */
2405
- nodeFunction: Scalars['NodeFunctionID']['input'];
2607
+ nodeFunctionId: Scalars['NodeFunctionID']['input'];
2406
2608
  /** The paths associated with this reference value */
2407
2609
  referencePath: Array<ReferencePathInput>;
2610
+ /** The scope of the reference value */
2611
+ scope: Array<Scalars['Int']['input']>;
2408
2612
  }
2409
2613
 
2410
2614
  /** Represents a runtime */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code0-tech/sagittarius-graphql-types",
3
- "version": "0.0.0-6dff4363750d2fd791eeeb1c03332895dfebcdcc",
3
+ "version": "0.0.0-755f9382e6589ede0182dace55452703bcd6e85b",
4
4
  "description": "",
5
5
  "main": "index.d.ts",
6
6
  "types": "index.d.ts",