Skip to content
Open
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
4 changes: 2 additions & 2 deletions rust/Cargo.lock

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

1 change: 1 addition & 0 deletions rust/platform-app-client/graphql/Application.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ query Application($name: String!) {
name
description
status
distributionType
url
proxyUrl
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ query ApplicationWithLatestRelease($name: String!) {
name
description
status
distributionType
url
proxyUrl
authorizationScopes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ query ApplicationsList($status: ApplicationStatusFilter) {
name
description
status
distributionType
url
proxyUrl
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ mutation CreateApplication($input: MutationCreateApplicationInput!) {
name
description
status
distributionType
url
proxyUrl
authorizationScopes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mutation UpdateApplication($id: String!, $input: MutationUpdateApplicationInput!
name
description
status
distributionType
url
proxyUrl
authorizationScopes
Expand Down
24 changes: 20 additions & 4 deletions rust/platform-app-client/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,11 @@ type ApplicationRelease {
"""The native extensions registered with this release."""
nativeExtensions: [ApplicationNativeExtension!]!

"""
The authorization scopes required by this release. These are added to the application's authorization scopes when the release is created.
"""
scopes: [String!]

"""The settings capabilities registered with this release."""
settings(
"""Filter settings by Commerce settings group slug."""
Expand Down Expand Up @@ -815,7 +820,10 @@ scalar DateTime
"""The distribution type for an application."""
enum DistributionType {
"""Application has custom distribution."""
CUSTOM
CUSTOM @deprecated(reason: "Use PRIVATE instead.")

"""Application is privately distributed."""
PRIVATE

"""Application is publicly available."""
PUBLIC
Expand Down Expand Up @@ -1179,7 +1187,7 @@ input MutationCreateApplicationInput {
"""
The authorization scopes of the application. Defines the GoDaddy permissions for the application.
"""
authorizationScopes: [String!]
authorizationScopes: [String!] @deprecated(reason: "Manage scopes per release via createRelease; retained for backward compatibility and can only extend the application's scopes.")

"""The description of the application."""
description: String
Expand Down Expand Up @@ -1246,6 +1254,11 @@ input MutationCreateReleaseInput {
"""The native extensions associated with the release."""
nativeExtensions: [ApplicationNativeExtensionCreateInput!]

"""
The authorization scopes required by this release (e.g. 'commerce.orders:read'). New scopes are also added to the application's authorization scopes.
"""
scopes: [String!]

"""The settings capabilities associated with the release."""
settings: [ApplicationSettingCreateInput!]

Expand Down Expand Up @@ -1314,13 +1327,13 @@ input MutationUpdateApplicationInput {
"""
The authorization scopes of the application. Defines the GoDaddy permissions for the application.
"""
authorizationScopes: [String!]
authorizationScopes: [String!] @deprecated(reason: "Manage scopes per release via createRelease; retained for backward compatibility and can only extend the application's scopes.")

"""The description of the application."""
description: String

"""
The distribution type for the application (PUBLIC or CUSTOM). Omit to leave unchanged.
The distribution type for the application (PUBLIC or PRIVATE; CUSTOM is deprecated). Omit to leave unchanged.
"""
distributionType: DistributionType

Expand Down Expand Up @@ -1523,6 +1536,9 @@ type Query {
enablementsByRelease(
after: String
before: String

"""Optional entity ID to filter enablements by."""
entityId: String
first: Int
last: Int

Expand Down
7 changes: 5 additions & 2 deletions rust/platform-app-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ mod tests {
"data": {
"applications": {
"edges": [
{ "node": { "id": "a1", "label": "Active", "name": "active-app", "description": null, "status": "ACTIVE", "url": null, "proxyUrl": null } },
{ "node": { "id": "a2", "label": "Inactive", "name": "inactive-app", "description": null, "status": "INACTIVE", "url": null, "proxyUrl": null } }
{ "node": { "id": "a1", "label": "Active", "name": "active-app", "description": null, "status": "ACTIVE", "distributionType": "PUBLIC", "url": null, "proxyUrl": null } },
{ "node": { "id": "a2", "label": "Inactive", "name": "inactive-app", "description": null, "status": "INACTIVE", "distributionType": "PUBLIC", "url": null, "proxyUrl": null } }
]
}
}
Expand Down Expand Up @@ -287,6 +287,7 @@ mod tests {
"version": "1.0.0",
"description": null,
"status": "ACTIVE",
"distributionType": "PUBLIC",
"activatedAt": "2026-09-18T00:00:00Z",
"createdAt": "2026-09-18T00:00:00Z",
"updatedAt": "2026-09-18T00:00:00Z"
Expand Down Expand Up @@ -382,6 +383,7 @@ mod tests {
"name": "my-app",
"description": null,
"status": "ACTIVE",
"distributionType": "PUBLIC",
"url": null,
"proxyUrl": null,
"authorizationScopes": [],
Expand All @@ -406,6 +408,7 @@ mod tests {
"name": "observed-app",
"description": null,
"status": "ACTIVE",
"distributionType": "PUBLIC",
"url": null,
"proxyUrl": null
}
Expand Down
23 changes: 20 additions & 3 deletions rust/schemas/api/app-registry.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion rust/schemas/api/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"generated": "2026-11-04T09:44:31.519327336+00:00",
"generated": "2026-11-13T16:09:05.800067+00:00",
"domains": {
"app-registry": {
"file": "app-registry.json",
Expand Down
17 changes: 15 additions & 2 deletions rust/src/platform/app/client_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ async fn list_applications_sends_all_app_registry_statuses() {
"data": {
"applications": {
"edges": [
{ "node": { "id": "a1", "label": "Active", "name": "active-app", "description": null, "status": "ACTIVE", "url": null, "proxyUrl": null } },
{ "node": { "id": "a2", "label": "Inactive", "name": "inactive-app", "description": null, "status": "INACTIVE", "url": null, "proxyUrl": null } }
{ "node": { "id": "a1", "label": "Active", "name": "active-app", "description": null, "status": "ACTIVE", "distributionType": "PUBLIC", "url": null, "proxyUrl": null } },
{ "node": { "id": "a2", "label": "Inactive", "name": "inactive-app", "description": null, "status": "INACTIVE", "distributionType": "PUBLIC", "url": null, "proxyUrl": null } }
]
}
}
Expand Down Expand Up @@ -63,6 +63,7 @@ async fn activate_release_posts_mutation_with_ids() {
"version": "1.0.0",
"description": null,
"status": "ACTIVE",
"distributionType": "PUBLIC",
"activatedAt": "2026-01-01T00:00:00Z",
"createdAt": "2026-01-01T00:00:00Z",
"updatedAt": "2026-01-01T00:00:00Z"
Expand Down Expand Up @@ -104,6 +105,7 @@ async fn list_enabled_store_applications_sends_store_id_variable() {
"name": "my-app",
"label": "My App",
"status": "ACTIVE",
"distributionType": "PUBLIC",
"release": { "id": "rel-1", "version": "1.0.0" }
}]
}
Expand Down Expand Up @@ -209,6 +211,7 @@ async fn create_release_sends_settings_input_and_returns_settings() {
application_dependencies: None,
feature_dependencies: None,
mcp_servers: None,
scopes: None,
native_extensions: Some(vec![
create_release::ApplicationNativeExtensionCreateInput {
contact: None,
Expand Down Expand Up @@ -421,6 +424,7 @@ async fn get_application_with_releases_selects_client_id_and_subscriptions() {
"name": "my-app",
"description": null,
"status": "ACTIVE",
"distributionType": "PUBLIC",
"url": null,
"proxyUrl": null,
"authorizationScopes": [],
Expand Down Expand Up @@ -455,6 +459,10 @@ async fn get_application_with_releases_selects_client_id_and_subscriptions() {

mock.assert_async().await;
assert_eq!(app.client_id.as_deref(), Some("client-1"));
assert_eq!(
app.distribution_type,
application_with_latest_release::DistributionType::PUBLIC
);
let edges = app
.releases
.expect("releases connection")
Expand Down Expand Up @@ -489,6 +497,7 @@ async fn update_application_sends_non_lifecycle_fields() {
"name": "my-app",
"description": null,
"status": "ACTIVE",
"distributionType": "PUBLIC",
"url": null,
"proxyUrl": null,
"authorizationScopes": [],
Expand Down Expand Up @@ -545,6 +554,7 @@ async fn update_application_omits_unset_input_fields_from_the_request() {
"name": "my-app",
"description": null,
"status": "ACTIVE",
"distributionType": "PUBLIC",
"url": null,
"proxyUrl": null,
"authorizationScopes": [],
Expand Down Expand Up @@ -589,6 +599,7 @@ async fn get_application_returns_selected_fields() {
"name": "my-app",
"description": "desc",
"status": "ACTIVE",
"distributionType": "PUBLIC",
"url": "https://example.com",
"proxyUrl": "https://proxy.example.com"
}
Expand Down Expand Up @@ -690,6 +701,7 @@ async fn archive_application_sends_id_and_returns_lifecycle_fields() {
"label": "My App",
"name": "my-app",
"status": "ARCHIVED",
"distributionType": "PUBLIC",
"createdAt": "2026-01-01T00:00:00Z",
"archivedAt": "2026-02-01T00:00:00Z"
}
Expand Down Expand Up @@ -729,6 +741,7 @@ async fn create_application_sends_input_and_returns_credentials() {
"name": "my-app",
"description": null,
"status": "ACTIVE",
"distributionType": "PUBLIC",
"url": null,
"proxyUrl": null,
"authorizationScopes": [],
Expand Down
12 changes: 8 additions & 4 deletions rust/src/platform/app/commands/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ mod tests {
name: "my-app".to_owned(),
description: None,
status: platform_app_client::application::ApplicationStatus::ACTIVE,
distribution_type: platform_app_client::application::DistributionType::PUBLIC,
url: None,
proxy_url: None,
};
Expand All @@ -456,7 +457,8 @@ mod tests {
"id": "app-registry-id",
"label": "My App",
"name": "my-app",
"status": "ACTIVE"
"status": "ACTIVE",
"distributionType": "PUBLIC"
}
}
}));
Expand All @@ -472,7 +474,8 @@ mod tests {
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440001",
"status": "ACTIVE"
"status": "ACTIVE",
"distributionType": "PUBLIC"
}
}));
})
Expand Down Expand Up @@ -564,7 +567,7 @@ mod tests {
when.method(Method::POST)
.path("/v1/apps/app-registry-subgraph");
then.status(200).json_body(json!({
"data": { "application": { "id": "app-registry-id", "label": "My App", "name": "my-app", "status": "ACTIVE" } }
"data": { "application": { "id": "app-registry-id", "label": "My App", "name": "my-app", "status": "ACTIVE", "distributionType": "PUBLIC" } }
}));
})
.await;
Expand All @@ -576,7 +579,8 @@ mod tests {
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440001",
"status": "ACTIVE"
"status": "ACTIVE",
"distributionType": "PUBLIC"
}
}));
})
Expand Down
Loading
Loading