Repository navigation
feat: add opencompany instance update route to the contract #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,9 +8,9 @@ | |
| "url": "https://api.tinyhumans.ai/swagger.json", | ||
| "title": "TinyHumans API", | ||
| "version": "1.0.0", | ||
| "pathCount": 230, | ||
| "totalOperationCount": 255, | ||
| "operationCount": 203, | ||
| "pathCount": 231, | ||
| "totalOperationCount": 256, | ||
| "operationCount": 204, | ||
| "supplementalOperationCount": 13, | ||
| "excludedAdminOperationCount": 44, | ||
| "excludedWebhookOperationCount": 12, | ||
|
|
@@ -309,7 +309,7 @@ | |
| "name": "openCompany", | ||
| "basePath": "/opencompany", | ||
| "auth": "bearer", | ||
| "operationCount": 9, | ||
| "operationCount": 10, | ||
| "tags": [ | ||
| "OpenCompany" | ||
| ], | ||
|
|
@@ -322,6 +322,7 @@ | |
| "POST /opencompany/instances/{slug}/custom-domain/verify", | ||
| "POST /opencompany/instances/{slug}/resume", | ||
| "POST /opencompany/instances/{slug}/suspend", | ||
| "POST /opencompany/instances/{slug}/update", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the typed OpenCompany update method This adds the route to the public SDK contract, but [RULE] missing-typed-method · There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the typed client method for the new update route The new public route is present in the manifest, but no [RULE] missing-typed-method · There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the typed method for the OpenCompany instance update route Adding this manifest entry without adding the matching [RULE] missing-typed-method · There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Regenerate the Rust route registry for the new route This manifest adds [RULE] generated-surface-sync · |
||
| "PUT /opencompany/instances/{slug}/custom-domain" | ||
| ] | ||
| }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -141,6 +141,7 @@ pub const PUBLIC_ROUTES: &[(&str, &str)] = &[ | |
| ("POST", "/opencompany/instances/{slug}/custom-domain/verify"), | ||
| ("POST", "/opencompany/instances/{slug}/resume"), | ||
| ("POST", "/opencompany/instances/{slug}/suspend"), | ||
| ("POST", "/opencompany/instances/{slug}/update"), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the typed OpenCompany update method This newly exposed public operation has no corresponding method on [RULE] missing-typed-method · There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the typed OpenCompany update method This exposes [RULE] missing-typed-method · There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the typed client method for the new update route The new public route has no matching typed client method in the changed surface. Add the OpenCompany update operation with its request and response types and a route test so the generated registry and typed API remain consistent. [RULE] missing-typed-method · There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the typed method for the instance update route Registering this route alone leaves [RULE] missing-typed-method · There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add typed method for the opencompany instance update route The new public route [RULE] missing-typed-method · |
||
| ("GET", "/opencompany/instances/usage"), | ||
| ("POST", "/payments/coinbase/charge"), | ||
| ("GET", "/payments/coinbase/charge/{gatewayTransactionId}"), | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -156,7 +156,9 @@ fn generated_rust_routes_match_the_public_manifest() { | |
| // 202 -> 203: `GET /payments/credits/lots`, the caller's live credit lots | ||
| // and their expiries (subscription credit no longer rolls over; top-ups | ||
| // last a year). | ||
| assert_eq!(manifest["source"]["operationCount"], 203); | ||
| // 203 -> 204: `POST /opencompany/instances/{slug}/update`, the | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the typed client method for the new update route This comment documents a public route that has no [RULE] missing-typed-method · There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add typed method for the opencompany instance update route The new [RULE] missing-typed-method · |
||
| // owner-triggered "update to latest" for a hosted company. | ||
| assert_eq!(manifest["source"]["operationCount"], 204); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the typed OpenCompany update method The manifest now counts [RULE] missing-typed-method · |
||
| // 14 -> 13: `GET /orchestration/v1/steering` left with that family. | ||
| assert_eq!(manifest["source"]["supplementalOperationCount"], 13); | ||
| // 37 -> 39: the two service-token operations on | ||
|
|
@@ -179,7 +181,7 @@ fn generated_rust_routes_match_the_public_manifest() { | |
| // post's cover and body figures. Same token as the other blog writes. | ||
| assert_eq!(manifest["source"]["excludedAdminOperationCount"], 44); | ||
| assert_eq!(manifest["source"]["excludedWebhookOperationCount"], 12); | ||
| assert_eq!(rust_routes.len(), 203); | ||
| assert_eq!(rust_routes.len(), 204); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Regenerate the Rust route registry for the new route The checked-in [RULE] generated-route-registry-drift · |
||
| assert_eq!(rust_routes, manifest_routes); | ||
| assert!(rust_routes | ||
| .iter() | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the typed client method for the new update route
This exposes
POST /opencompany/instances/{slug}/updatein the public manifest without adding the matching Rust route entry, request/response types, typed namespace method, and route test. The generated-route parity test will also detect that the checked-in registry does not match the manifest. Complete the contract change across the Rust client and generated registry, or do not expose the route here.[RULE] missing-typed-method ·