Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/ci/module-graph.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@
"file",
"organization",
"permission",
"secret-manager"
"secret-manager",
"spectre"
]
},
"pubsub": {
Expand Down
234 changes: 234 additions & 0 deletions controlplane-api/ent.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2600,6 +2600,11 @@ input ApprovalRequestWhereInput {
"""
hasAgenticSubscription: Boolean
hasAgenticSubscriptionWith: [AgenticSubscriptionWhereInput!]
"""
listener edge predicates
"""
hasListener: Boolean
hasListenerWith: [ListenerWhereInput!]
}
"""
ApprovalState is enum for the field state
Expand Down Expand Up @@ -2826,6 +2831,16 @@ input ApprovalWhereInput {
"""
hasAgenticSubscription: Boolean
hasAgenticSubscriptionWith: [AgenticSubscriptionWhereInput!]
"""
listener edge predicates
"""
hasListener: Boolean
hasListenerWith: [ListenerWhereInput!]
"""
consumer_listener edge predicates
"""
hasConsumerListener: Boolean
hasConsumerListenerWith: [ListenerWhereInput!]
}
"""
Define a Relay Cursor type:
Expand Down Expand Up @@ -4543,6 +4558,194 @@ input GroupWhereInput {
hasTeams: Boolean
hasTeamsWith: [TeamWhereInput!]
}
type Listener implements Node {
id: ID!
createdAt: Time!
lastModifiedAt: Time!
statusPhase: ListenerStatusPhase
statusMessage: String
environment: String
namespace: String!
name: String!
}
"""
A connection to a list of items.
"""
type ListenerConnection {
"""
A list of edges.
"""
edges: [ListenerEdge]
"""
Information to aid in pagination.
"""
pageInfo: PageInfo!
"""
Identifies the total count of items in the connection.
"""
totalCount: Int!
}
"""
An edge in a connection.
"""
type ListenerEdge {
"""
The item at the end of the edge.
"""
node: Listener
"""
A cursor for use in pagination.
"""
cursor: Cursor!
}
"""
Ordering options for Listener connections
"""
input ListenerOrder {
"""
The ordering direction.
"""
direction: OrderDirection! = ASC
"""
The field by which to order Listeners.
"""
field: ListenerOrderField!
}
"""
Properties by which Listener connections can be ordered.
"""
enum ListenerOrderField {
CREATED_AT
LAST_MODIFIED_AT
}
"""
ListenerStatusPhase is enum for the field status_phase
"""
enum ListenerStatusPhase @goModel(model: "github.com/telekom/controlplane/controlplane-api/ent/listener.StatusPhase") {
READY
PENDING
ERROR
UNKNOWN
}
"""
ListenerWhereInput is used for filtering Listener objects.
Input was generated by ent.
"""
input ListenerWhereInput {
not: ListenerWhereInput
and: [ListenerWhereInput!]
or: [ListenerWhereInput!]
"""
id field predicates
"""
id: ID
idNEQ: ID
idIn: [ID!]
idNotIn: [ID!]
idGT: ID
idGTE: ID
idLT: ID
idLTE: ID
"""
created_at field predicates
"""
createdAt: Time
createdAtNEQ: Time
createdAtIn: [Time!]
createdAtNotIn: [Time!]
createdAtGT: Time
createdAtGTE: Time
createdAtLT: Time
createdAtLTE: Time
"""
last_modified_at field predicates
"""
lastModifiedAt: Time
lastModifiedAtNEQ: Time
lastModifiedAtIn: [Time!]
lastModifiedAtNotIn: [Time!]
lastModifiedAtGT: Time
lastModifiedAtGTE: Time
lastModifiedAtLT: Time
lastModifiedAtLTE: Time
"""
status_phase field predicates
"""
statusPhase: ListenerStatusPhase
statusPhaseNEQ: ListenerStatusPhase
statusPhaseIn: [ListenerStatusPhase!]
statusPhaseNotIn: [ListenerStatusPhase!]
statusPhaseIsNil: Boolean
statusPhaseNotNil: Boolean
"""
status_message field predicates
"""
statusMessage: String
statusMessageNEQ: String
statusMessageIn: [String!]
statusMessageNotIn: [String!]
statusMessageGT: String
statusMessageGTE: String
statusMessageLT: String
statusMessageLTE: String
statusMessageContains: String
statusMessageHasPrefix: String
statusMessageHasSuffix: String
statusMessageIsNil: Boolean
statusMessageNotNil: Boolean
statusMessageEqualFold: String
statusMessageContainsFold: String
"""
environment field predicates
"""
environment: String
environmentNEQ: String
environmentIn: [String!]
environmentNotIn: [String!]
environmentGT: String
environmentGTE: String
environmentLT: String
environmentLTE: String
environmentContains: String
environmentHasPrefix: String
environmentHasSuffix: String
environmentIsNil: Boolean
environmentNotNil: Boolean
environmentEqualFold: String
environmentContainsFold: String
"""
namespace field predicates
"""
namespace: String
namespaceNEQ: String
namespaceIn: [String!]
namespaceNotIn: [String!]
namespaceGT: String
namespaceGTE: String
namespaceLT: String
namespaceLTE: String
namespaceContains: String
namespaceHasPrefix: String
namespaceHasSuffix: String
namespaceEqualFold: String
namespaceContainsFold: String
"""
name field predicates
"""
name: String
nameNEQ: String
nameIn: [String!]
nameNotIn: [String!]
nameGT: String
nameGTE: String
nameLT: String
nameLTE: String
nameContains: String
nameHasPrefix: String
nameHasSuffix: String
nameEqualFold: String
nameContainsFold: String
}
type McpServer implements Node {
id: ID!
createdAt: Time!
Expand Down Expand Up @@ -5637,6 +5840,37 @@ type Query {
"""
where: FileTypeWhereInput
): FileTypeConnection!
listeners(
"""
Returns the elements in the list that come after the specified cursor.
"""
after: Cursor

"""
Returns the first _n_ elements from the list.
"""
first: Int

"""
Returns the elements in the list that come before the specified cursor.
"""
before: Cursor

"""
Returns the last _n_ elements from the list.
"""
last: Int

"""
Ordering options for Listeners returned from the connection.
"""
orderBy: [ListenerOrder!]

"""
Filtering options for Listeners returned from the connection.
"""
where: ListenerWhereInput
): ListenerConnection!
mcpServers(
"""
Returns the elements in the list that come after the specified cursor.
Expand Down
16 changes: 15 additions & 1 deletion controlplane-api/ent/api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions controlplane-api/ent/api/api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading