Android Management API (androidmanagement v1): generated TS types missing googleAuthenticationOptions on EnrollmentToken and SigninDetail
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 76/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 静か
- 技術スタック
- typescript
- 領域
- api
調査の方向性
discovery/androidmanagement-v1.json から始めて、ライブの Android Management API v1 Discovery ドキュメントと比較し、その後 src/apis/androidmanagement/v1.ts と生成された build/v1.d.ts を調べます。Discovery スナップショットを更新してジェネレーターを再実行します。生成された型に、不足しているスキーマと googleAuthenticationOptions の 2 つのプロパティの両方が現れれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 12.3k
- フォーク
- 2k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 21
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
googleapis/google-api-nodejs-client のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 32/100
googleapis/google-api-nodejs-client#3932 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Discovery Engine] streamAnswer is typed as one AnswerQueryResponse, but REST returns frame arraysオープン
難易度 3/5 1〜2日 初心者へのやさしさ 64/100
googleapis/google-api-nodejs-client#3930 ·
メンテナーはふだん 1 日以内に返信
-
size: l type: feature request
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
googleapis/google-api-nodejs-client#3926 ·
メンテナーはふだん 1 日以内に返信
-
type: feature request
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
googleapis/google-api-nodejs-client#3903 ·
メンテナーはふだん 1 日以内に返信
-
If a service is deprecated and its the last version fo the library, we need to fully deprecate itオープンtype: process
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
googleapis/google-api-nodejs-client#3898 ·
メンテナーはふだん 1 日以内に返信
googleapis/google-api-nodejs-client の issue をすべて見る
似ている issue
-
triage
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
mermaid-js/mermaid-live-editor#2053 ·
メンテナーはふだん 1 日以内に返信
-
factory
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
jessepollak/home#1455 ·
メンテナーはふだん 1 日以内に返信
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
lingdojo/kana-dojo#31227 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
appandflow/stim#1838 ·
メンテナーはふだん 1 日以内に返信