Skip to content

Commit b596ba3

Browse files
committed
chore: update api schema dump
1 parent cc418f6 commit b596ba3

3 files changed

Lines changed: 265 additions & 3 deletions

File tree

docs/manager/graphql-reference/supergraph.graphql

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,55 @@ type AllowedResourceGroupsPayload
895895
items: [String!]!
896896
}
897897

898+
"""Added in UNRELEASED. Scoped app-config policy (BEP-1052 §1)."""
899+
type AppConfigPolicy
900+
@join__type(graph: STRAWBERRY)
901+
{
902+
"""Policy row ID"""
903+
id: UUID!
904+
905+
"""Unique, immutable policy name."""
906+
configName: String!
907+
908+
"""Ordered scope chain (low → high merge priority)."""
909+
scopeSources: [String!]!
910+
911+
"""Creation timestamp"""
912+
createdAt: DateTime!
913+
914+
"""Last update timestamp"""
915+
updatedAt: DateTime
916+
}
917+
918+
"""Added in UNRELEASED. Filter input for querying app-config policies."""
919+
input AppConfigPolicyFilter
920+
@join__type(graph: STRAWBERRY)
921+
{
922+
"""Filter by config_name."""
923+
configName: StringFilter = null
924+
}
925+
926+
"""Added in UNRELEASED. Specifies ordering for app-config policy results."""
927+
input AppConfigPolicyOrderBy
928+
@join__type(graph: STRAWBERRY)
929+
{
930+
"""The field to order by."""
931+
field: AppConfigPolicyOrderField!
932+
933+
"""Sort direction."""
934+
direction: OrderDirection! = DESC
935+
}
936+
937+
"""
938+
Added in UNRELEASED. Fields available for ordering app-config policies.
939+
"""
940+
enum AppConfigPolicyOrderField
941+
@join__type(graph: STRAWBERRY)
942+
{
943+
CONFIG_NAME @join__enumValue(graph: STRAWBERRY)
944+
CREATED_AT @join__enumValue(graph: STRAWBERRY)
945+
}
946+
898947
"""
899948
Added in 24.09.0. Input for approving an artifact revision.
900949

@@ -2887,6 +2936,29 @@ type CreateAccessTokenPayload
28872936
accessToken: AccessToken!
28882937
}
28892938

2939+
"""
2940+
Added in UNRELEASED. Input for creating a new app-config policy (admin only).
2941+
"""
2942+
input CreateAppConfigPolicyInput
2943+
@join__type(graph: STRAWBERRY)
2944+
{
2945+
"""Unique, immutable policy name."""
2946+
configName: String!
2947+
2948+
"""Ordered scope chain (low → high merge priority)."""
2949+
scopeSources: [String!]!
2950+
}
2951+
2952+
"""
2953+
Added in UNRELEASED. Payload returned after creating an app-config policy.
2954+
"""
2955+
type CreateAppConfigPolicyPayload
2956+
@join__type(graph: STRAWBERRY)
2957+
{
2958+
"""Created policy."""
2959+
policy: AppConfigPolicy!
2960+
}
2961+
28902962
"""Added in 25.19.0. Input for creating an auto-scaling rule."""
28912963
input CreateAutoScalingRuleInput
28922964
@join__type(graph: STRAWBERRY)
@@ -10867,6 +10939,19 @@ type Mutation
1086710939
"""
1086810940
updateMyAllowedClientIp(input: UpdateMyAllowedClientIPInput!): UpdateMyAllowedClientIPPayload! @join__field(graph: STRAWBERRY)
1086910941

10942+
"""Added in UNRELEASED. Create a new app-config policy (admin only)."""
10943+
adminCreateAppConfigPolicy(input: CreateAppConfigPolicyInput!): CreateAppConfigPolicyPayload! @join__field(graph: STRAWBERRY)
10944+
10945+
"""
10946+
Added in UNRELEASED. Update an app-config policy (admin only). `config_name` is immutable.
10947+
"""
10948+
adminUpdateAppConfigPolicy(input: UpdateAppConfigPolicyInput!): UpdateAppConfigPolicyPayload! @join__field(graph: STRAWBERRY)
10949+
10950+
"""
10951+
Added in UNRELEASED. Purge (hard-delete) an app-config policy (admin only).
10952+
"""
10953+
adminPurgeAppConfigPolicy(input: PurgeAppConfigPolicyInput!): PurgeAppConfigPolicyPayload! @join__field(graph: STRAWBERRY)
10954+
1087010955
"""Added in 26.3.0. Create a new query definition (admin only)"""
1087110956
adminCreatePrometheusQueryPreset(input: CreateQueryDefinitionInput!): CreateQueryDefinitionPayload! @join__field(graph: STRAWBERRY)
1087210957

@@ -12590,6 +12675,29 @@ input ProjectWeightInputItem
1259012675
weight: Decimal = null
1259112676
}
1259212677

12678+
"""
12679+
Added in UNRELEASED. Input for purging an app-config policy (admin only).
12680+
"""
12681+
input PurgeAppConfigPolicyInput
12682+
@join__type(graph: STRAWBERRY)
12683+
{
12684+
"""`config_name` of the policy to purge."""
12685+
configName: String!
12686+
}
12687+
12688+
"""
12689+
Added in UNRELEASED. Payload returned after purging an app-config policy.
12690+
"""
12691+
type PurgeAppConfigPolicyPayload
12692+
@join__type(graph: STRAWBERRY)
12693+
{
12694+
"""`config_name` of the purged policy."""
12695+
configName: String!
12696+
12697+
"""Whether a row was actually removed."""
12698+
purged: Boolean!
12699+
}
12700+
1259312701
"""
1259412702
Completely delete domain from DB.
1259512703

@@ -13384,6 +13492,16 @@ type Query
1338413492
"""
1338513493
adminImageAliases(filter: ImageV2AliasFilter = null, orderBy: [ImageV2AliasOrderByGQL!] = null, before: String = null, after: String = null, first: Int = null, last: Int = null, limit: Int = null, offset: Int = null): ImageV2AliasConnection @join__field(graph: STRAWBERRY)
1338613494

13495+
"""
13496+
Added in UNRELEASED. Get a single app-config policy by `config_name`. Available to any authenticated user.
13497+
"""
13498+
appConfigPolicy(configName: String!): AppConfigPolicy @join__field(graph: STRAWBERRY)
13499+
13500+
"""
13501+
Added in UNRELEASED. List app-config policies with filtering and pagination. Available to any authenticated user.
13502+
"""
13503+
appConfigPolicies(filter: AppConfigPolicyFilter = null, orderBy: [AppConfigPolicyOrderBy!] = null, first: Int = null, after: String = null, last: Int = null, before: String = null, limit: Int = null, offset: Int = null): [AppConfigPolicy!]! @join__field(graph: STRAWBERRY)
13504+
1338713505
"""
1338813506
Added in 26.4.2. Get a single prometheus query preset by ID. Available to any authenticated user since presets are a shared catalog of metric query templates.
1338913507
"""
@@ -17453,6 +17571,29 @@ input UpdateAllowedResourceGroupsForProjectInput
1745317571
remove: [String!] = null
1745417572
}
1745517573

17574+
"""
17575+
Added in UNRELEASED. Input for updating an app-config policy (admin only).
17576+
"""
17577+
input UpdateAppConfigPolicyInput
17578+
@join__type(graph: STRAWBERRY)
17579+
{
17580+
"""Target policy's `config_name` (immutable)."""
17581+
configName: String!
17582+
17583+
"""Replacement scope chain."""
17584+
scopeSources: [String!]!
17585+
}
17586+
17587+
"""
17588+
Added in UNRELEASED. Payload returned after updating an app-config policy.
17589+
"""
17590+
type UpdateAppConfigPolicyPayload
17591+
@join__type(graph: STRAWBERRY)
17592+
{
17593+
"""Updated policy."""
17594+
policy: AppConfigPolicy!
17595+
}
17596+
1745617597
"""
1745717598
Added in 24.09.0. Input for updating artifact metadata properties.
1745817599

docs/manager/graphql-reference/v2-schema.graphql

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,47 @@ type AllowedResourceGroupsPayload {
609609
items: [String!]!
610610
}
611611

612+
"""Added in UNRELEASED. Scoped app-config policy (BEP-1052 §1)."""
613+
type AppConfigPolicy {
614+
"""Policy row ID"""
615+
id: UUID!
616+
617+
"""Unique, immutable policy name."""
618+
configName: String!
619+
620+
"""Ordered scope chain (low → high merge priority)."""
621+
scopeSources: [String!]!
622+
623+
"""Creation timestamp"""
624+
createdAt: DateTime!
625+
626+
"""Last update timestamp"""
627+
updatedAt: DateTime
628+
}
629+
630+
"""Added in UNRELEASED. Filter input for querying app-config policies."""
631+
input AppConfigPolicyFilter {
632+
"""Filter by config_name."""
633+
configName: StringFilter = null
634+
}
635+
636+
"""Added in UNRELEASED. Specifies ordering for app-config policy results."""
637+
input AppConfigPolicyOrderBy {
638+
"""The field to order by."""
639+
field: AppConfigPolicyOrderField!
640+
641+
"""Sort direction."""
642+
direction: OrderDirection! = DESC
643+
}
644+
645+
"""
646+
Added in UNRELEASED. Fields available for ordering app-config policies.
647+
"""
648+
enum AppConfigPolicyOrderField {
649+
CONFIG_NAME
650+
CREATED_AT
651+
}
652+
612653
"""
613654
Added in 24.09.0. Input for approving an artifact revision.
614655
@@ -1787,6 +1828,25 @@ type CreateAccessTokenPayload {
17871828
accessToken: AccessToken!
17881829
}
17891830

1831+
"""
1832+
Added in UNRELEASED. Input for creating a new app-config policy (admin only).
1833+
"""
1834+
input CreateAppConfigPolicyInput {
1835+
"""Unique, immutable policy name."""
1836+
configName: String!
1837+
1838+
"""Ordered scope chain (low → high merge priority)."""
1839+
scopeSources: [String!]!
1840+
}
1841+
1842+
"""
1843+
Added in UNRELEASED. Payload returned after creating an app-config policy.
1844+
"""
1845+
type CreateAppConfigPolicyPayload {
1846+
"""Created policy."""
1847+
policy: AppConfigPolicy!
1848+
}
1849+
17901850
"""Added in 25.19.0. Input for creating an auto-scaling rule."""
17911851
input CreateAutoScalingRuleInput {
17921852
modelDeploymentId: ID!
@@ -6824,6 +6884,19 @@ type Mutation {
68246884
"""
68256885
updateMyAllowedClientIp(input: UpdateMyAllowedClientIPInput!): UpdateMyAllowedClientIPPayload!
68266886

6887+
"""Added in UNRELEASED. Create a new app-config policy (admin only)."""
6888+
adminCreateAppConfigPolicy(input: CreateAppConfigPolicyInput!): CreateAppConfigPolicyPayload!
6889+
6890+
"""
6891+
Added in UNRELEASED. Update an app-config policy (admin only). `config_name` is immutable.
6892+
"""
6893+
adminUpdateAppConfigPolicy(input: UpdateAppConfigPolicyInput!): UpdateAppConfigPolicyPayload!
6894+
6895+
"""
6896+
Added in UNRELEASED. Purge (hard-delete) an app-config policy (admin only).
6897+
"""
6898+
adminPurgeAppConfigPolicy(input: PurgeAppConfigPolicyInput!): PurgeAppConfigPolicyPayload!
6899+
68276900
"""Added in 26.3.0. Create a new query definition (admin only)"""
68286901
adminCreatePrometheusQueryPreset(input: CreateQueryDefinitionInput!): CreateQueryDefinitionPayload!
68296902

@@ -8252,6 +8325,25 @@ input ProjectWeightInputItem {
82528325
weight: Decimal = null
82538326
}
82548327

8328+
"""
8329+
Added in UNRELEASED. Input for purging an app-config policy (admin only).
8330+
"""
8331+
input PurgeAppConfigPolicyInput {
8332+
"""`config_name` of the policy to purge."""
8333+
configName: String!
8334+
}
8335+
8336+
"""
8337+
Added in UNRELEASED. Payload returned after purging an app-config policy.
8338+
"""
8339+
type PurgeAppConfigPolicyPayload {
8340+
"""`config_name` of the purged policy."""
8341+
configName: String!
8342+
8343+
"""Whether a row was actually removed."""
8344+
purged: Boolean!
8345+
}
8346+
82558347
"""Added in 26.4.2. Payload for domain permanent deletion mutation."""
82568348
type PurgeDomainPayloadGQL {
82578349
"""Whether the purge was successful."""
@@ -8556,6 +8648,16 @@ type Query {
85568648
"""
85578649
adminImageAliases(filter: ImageV2AliasFilter = null, orderBy: [ImageV2AliasOrderByGQL!] = null, before: String = null, after: String = null, first: Int = null, last: Int = null, limit: Int = null, offset: Int = null): ImageV2AliasConnection
85588650

8651+
"""
8652+
Added in UNRELEASED. Get a single app-config policy by `config_name`. Available to any authenticated user.
8653+
"""
8654+
appConfigPolicy(configName: String!): AppConfigPolicy
8655+
8656+
"""
8657+
Added in UNRELEASED. List app-config policies with filtering and pagination. Available to any authenticated user.
8658+
"""
8659+
appConfigPolicies(filter: AppConfigPolicyFilter = null, orderBy: [AppConfigPolicyOrderBy!] = null, first: Int = null, after: String = null, last: Int = null, before: String = null, limit: Int = null, offset: Int = null): [AppConfigPolicy!]!
8660+
85598661
"""
85608662
Added in 26.4.2. Get a single prometheus query preset by ID. Available to any authenticated user since presets are a shared catalog of metric query templates.
85618663
"""
@@ -11801,6 +11903,25 @@ input UpdateAllowedResourceGroupsForProjectInput {
1180111903
remove: [String!] = null
1180211904
}
1180311905

11906+
"""
11907+
Added in UNRELEASED. Input for updating an app-config policy (admin only).
11908+
"""
11909+
input UpdateAppConfigPolicyInput {
11910+
"""Target policy's `config_name` (immutable)."""
11911+
configName: String!
11912+
11913+
"""Replacement scope chain."""
11914+
scopeSources: [String!]!
11915+
}
11916+
11917+
"""
11918+
Added in UNRELEASED. Payload returned after updating an app-config policy.
11919+
"""
11920+
type UpdateAppConfigPolicyPayload {
11921+
"""Updated policy."""
11922+
policy: AppConfigPolicy!
11923+
}
11924+
1180411925
"""
1180511926
Added in 24.09.0. Input for updating artifact metadata properties.
1180611927

src/ai/backend/manager/api/gql/app_config_policy/resolver/mutation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
added_version=NEXT_RELEASE_VERSION,
2727
description="Strict insert keyed on `configName` (admin only, per-item transaction).",
2828
)
29-
) # type: ignore[misc]
29+
)
3030
async def admin_bulk_create_app_config_policies(
3131
info: Info[StrawberryGQLContext],
3232
input: AdminBulkCreateAppConfigPolicyInputGQL,
@@ -44,7 +44,7 @@ async def admin_bulk_create_app_config_policies(
4444
"Admin only, per-item transaction."
4545
),
4646
)
47-
) # type: ignore[misc]
47+
)
4848
async def admin_bulk_update_app_config_policies(
4949
info: Info[StrawberryGQLContext],
5050
input: AdminBulkUpdateAppConfigPolicyInputGQL,
@@ -62,7 +62,7 @@ async def admin_bulk_update_app_config_policies(
6262
"(BEP-1052 §1). Admin only."
6363
),
6464
)
65-
) # type: ignore[misc]
65+
)
6666
async def admin_bulk_purge_app_config_policies(
6767
info: Info[StrawberryGQLContext],
6868
input: AdminBulkPurgeAppConfigPolicyInputGQL,

0 commit comments

Comments
 (0)