Skip to content
Open
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion client-sdks/platform/openapi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client-sdks/platform/rust/openapi-3.0.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client-sdks/platform/rust/openapi.json

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions client-sdks/platform/rust/tests/deployment_group_external_id.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
use alien_platform_api::{types, Client};

#[test]
fn generated_client_exposes_external_id_operations() {
let client = Client::new("https://api.alien.dev");
let body: types::EnsureDeploymentGroupByExternalIdRequest =
types::EnsureDeploymentGroupByExternalIdRequest::builder()
.external_id("customer_123")
.name("production")
.project("my-project")
.try_into()
.expect("valid ensure request");

// Construct both generated request builders. Calling `send` is covered by
// API integration tests; this test protects the public Rust SDK surface.
let _ensure = client.ensure_deployment_group_by_external_id().body(body);
let _read = client
.get_deployment_group_by_external_id()
.external_id("customer_123")
.project("my-project");
Comment thread
greptile-apps[bot] marked this conversation as resolved.
let update: types::SetDeploymentGroupExternalIdRequest =
types::SetDeploymentGroupExternalIdRequest::builder()
.external_id(Some(
"customer_456"
.parse::<types::SetDeploymentGroupExternalIdRequestExternalId>()
.expect("valid external ID"),
))
.try_into()
.expect("valid update request");
let _update = client
.set_deployment_group_external_id()
.id("dg_0000000000000000000000000000")
.body(update);
}
6,297 changes: 4,195 additions & 2,102 deletions client-sdks/platform/typescript/.speakeasy/gen.lock

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions client-sdks/platform/typescript/FUNCTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ specific category of applications.

```typescript
import { AlienCore } from "@alienplatform/platform-api/core.js";
import { userListMemberships } from "@alienplatform/platform-api/funcs/userListMemberships.js";
import { getWorkspaceInvitationPreview } from "@alienplatform/platform-api/funcs/getWorkspaceInvitationPreview.js";

// Use `AlienCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
Expand All @@ -29,12 +29,14 @@ const alien = new AlienCore({
});

async function run() {
const res = await userListMemberships(alien);
const res = await getWorkspaceInvitationPreview(alien, {
token: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("userListMemberships failed:", res.error);
console.log("getWorkspaceInvitationPreview failed:", res.error);
}
}

Expand Down
104 changes: 96 additions & 8 deletions client-sdks/platform/typescript/README.md

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion client-sdks/platform/typescript/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ const alien = new Alien({
});

async function run() {
const result = await alien.user.listMemberships();
const result = await alien.getWorkspaceInvitationPreview({
token: "<value>",
});

console.log(result);
}
Expand Down

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

15 changes: 15 additions & 0 deletions client-sdks/platform/typescript/docs/models/accesstest1.md

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

15 changes: 15 additions & 0 deletions client-sdks/platform/typescript/docs/models/accesstest2.md

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

15 changes: 15 additions & 0 deletions client-sdks/platform/typescript/docs/models/accesstest3.md

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

15 changes: 15 additions & 0 deletions client-sdks/platform/typescript/docs/models/accesstest4.md

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

10 changes: 5 additions & 5 deletions client-sdks/platform/typescript/docs/models/activerelease.md

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

22 changes: 0 additions & 22 deletions client-sdks/platform/typescript/docs/models/actor1.md

This file was deleted.

22 changes: 0 additions & 22 deletions client-sdks/platform/typescript/docs/models/actor2.md

This file was deleted.

19 changes: 0 additions & 19 deletions client-sdks/platform/typescript/docs/models/actorunion1.md

This file was deleted.

19 changes: 0 additions & 19 deletions client-sdks/platform/typescript/docs/models/actorunion2.md

This file was deleted.

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

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

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

Loading
Loading