Android Management API (androidmanagement v1): generated TS types missing googleAuthenticationOptions on EnrollmentToken and SigninDetail
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 76/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- typescript
- Lĩnh vực
- api
Hướng nghiên cứu
Bắt đầu với discovery/androidmanagement-v1.json và so sánh nó với tài liệu Discovery hiện tại của Android Management API v1, sau đó kiểm tra src/apis/androidmanagement/v1.ts và tệp build/v1.d.ts được tạo. Làm mới snapshot Discovery và chạy lại generator; hoàn tất khi cả các schema còn thiếu lẫn hai thuộc tính của googleAuthenticationOptions đều xuất hiện trong các kiểu được tạo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
The generated TypeScript types for the Android Management API (androidmanagement, version v1) are missing the googleAuthenticationOptions field and its backing schemas. These exist in the live Discovery document but not in the checked-in discovery snapshot, so the generated Schema$* interfaces are out of date.
Package / source
- Split package:
@googleapis/[email protected](currentlatest) - Also affects
googleapis(aggregate) — both are generated fromsrc/apis/androidmanagement/v1.tsin this repo.
What is missing
In src/apis/androidmanagement/v1.ts (and the published build/v1.d.ts):
Schema$EnrollmentTokenis missing the propertygoogleAuthenticationOptions?: Schema$GoogleAuthenticationOptions.Schema$SigninDetailis missing the propertygoogleAuthenticationOptions?: Schema$SigninDetailGoogleAuthenticationOptions.- The interface
Schema$GoogleAuthenticationOptionsis not generated at all (fields:authenticationRequirementenumAUTHENTICATION_REQUIREMENT_UNSPECIFIED | OPTIONAL | REQUIRED,requiredAccountEmailstring). - The interface
Schema$SigninDetailGoogleAuthenticationOptionsis not generated at all (field:authenticationRequirement, same enum).
The only existing reference is a prose mention in the Schema$GoogleAuthenticationSettings description ("This value is overridden by EnrollmentToken.googleAuthenticationOptions and SigninDetail.googleAuthenticationOptions…"); the actual typed fields/schemas are absent.
Affected endpoints
androidmanagement.enterprises.enrollmentTokens.create—requestBodyisSchema$EnrollmentToken; callers cannot setgoogleAuthenticationOptionswithout a type cast.androidmanagement.enterprises.create/androidmanagement.enterprises.patch—Schema$Enterprise.signinDetails[]isSchema$SigninDetail, which lacksgoogleAuthenticationOptions.
Evidence
Live Discovery document (revision: 20260618):
https://androidmanagement.googleapis.com/$discovery/rest?version=v1
// schemas.EnrollmentToken.properties.googleAuthenticationOptions
{ "description": "Optional. Options related to Google authentication during the enrollment.", "$ref": "GoogleAuthenticationOptions" }
// schemas.SigninDetail.properties.googleAuthenticationOptions
{ "description": "Optional. Options related to Google authentication during the enrollment.", "$ref": "SigninDetailGoogleAuthenticationOptions" }
// schemas.GoogleAuthenticationOptions
{ "id": "GoogleAuthenticationOptions", "type": "object",
"properties": {
"authenticationRequirement": { "type": "string", "enum": ["AUTHENTICATION_REQUIREMENT_UNSPECIFIED","OPTIONAL","REQUIRED"] },
"requiredAccountEmail": { "type": "string" }
} }
// schemas.SigninDetailGoogleAuthenticationOptions
{ "id": "SigninDetailGoogleAuthenticationOptions", "type": "object",
"properties": {
"authenticationRequirement": { "type": "string", "enum": ["AUTHENTICATION_REQUIREMENT_UNSPECIFIED","OPTIONAL","REQUIRED"] }
} }
The checked-in discovery/androidmanagement-v1.json on main does not contain any of the above (verified: all four are absent), which is why the generated types are stale.
Root cause / suggested fix
The repo's checked-in androidmanagement v1 discovery snapshot is out of date relative to the live Discovery doc. Refreshing the discovery document and re-running the generator should produce Schema$GoogleAuthenticationOptions, Schema$SigninDetailGoogleAuthenticationOptions, and the two missing properties.
Expected vs. actual
- Expected:
Schema$EnrollmentToken.googleAuthenticationOptionsandSchema$SigninDetail.googleAuthenticationOptionsare typed, matching the live Discovery doc. - Actual: Both properties and both schema interfaces are absent; consumers must cast (
as) to send the field, even though the REST API accepts and honors it.
- Ngôn ngữ chính
- TypeScript
- Star
- 12.3k
- Fork
- 2k
- Merge trung bình
- 1 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 21
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của googleapis/google-api-nodejs-client
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 32/100
googleapis/google-api-nodejs-client#3932 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Discovery Engine] streamAnswer is typed as one AnswerQueryResponse, but REST returns frame arraysĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
googleapis/google-api-nodejs-client#3930 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
size: l type: feature request
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
googleapis/google-api-nodejs-client#3926 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
type: feature request
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
googleapis/google-api-nodejs-client#3903 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
If a service is deprecated and its the last version fo the library, we need to fully deprecate itĐang mởtype: process
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
googleapis/google-api-nodejs-client#3898 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của googleapis/google-api-nodejs-client
Issue tương tự
-
Mend: dependency security vulnerability untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
opensearch-project/security-dashboards-plugin#2545 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add: Dream TR SDĐang mởcheck:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
doctor integrity sample scans soft-deleted pages on Postgres (batch path has no deleted_at filter)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
SocialGouv/egapro#4672 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area:agents area:tui bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
anthropics/claude-code#98358 ·
Maintainer thường phản hồi trong vòng 1 ngày