firebase-tools 9.18.0 → 9.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/CHANGELOG.md +3 -6
  2. package/lib/api.js +3 -0
  3. package/lib/apiv2.js +8 -5
  4. package/lib/command.js +1 -1
  5. package/lib/commands/crashlytics-symbols-upload.js +146 -0
  6. package/lib/commands/deploy.js +9 -1
  7. package/lib/commands/ext-configure.js +9 -2
  8. package/lib/commands/ext-dev-deprecate.js +63 -0
  9. package/lib/commands/ext-dev-extension-delete.js +2 -1
  10. package/lib/commands/ext-dev-publish.js +10 -4
  11. package/lib/commands/ext-dev-undeprecate.js +56 -0
  12. package/lib/commands/ext-dev-unpublish.js +12 -4
  13. package/lib/commands/ext-export.js +44 -0
  14. package/lib/commands/ext-install.js +50 -13
  15. package/lib/commands/ext-uninstall.js +6 -0
  16. package/lib/commands/ext-update.js +60 -18
  17. package/lib/commands/functions-config-export.js +115 -0
  18. package/lib/commands/functions-delete.js +47 -25
  19. package/lib/commands/functions-list.js +12 -12
  20. package/lib/commands/index.js +9 -0
  21. package/lib/commands/init.js +3 -0
  22. package/lib/config.js +3 -2
  23. package/lib/deploy/extensions/args.js +2 -0
  24. package/lib/deploy/extensions/deploy.js +49 -0
  25. package/lib/deploy/extensions/deploymentSummary.js +52 -0
  26. package/lib/deploy/extensions/errors.js +31 -0
  27. package/lib/deploy/extensions/index.js +8 -0
  28. package/lib/deploy/extensions/planner.js +95 -0
  29. package/lib/deploy/extensions/prepare.js +103 -0
  30. package/lib/deploy/extensions/release.js +43 -0
  31. package/lib/deploy/extensions/secrets.js +150 -0
  32. package/lib/deploy/extensions/tasks.js +98 -0
  33. package/lib/deploy/extensions/validate.js +17 -0
  34. package/lib/deploy/functions/backend.js +93 -115
  35. package/lib/deploy/functions/checkIam.js +8 -8
  36. package/lib/deploy/functions/containerCleaner.js +82 -22
  37. package/lib/deploy/functions/deploy.js +4 -10
  38. package/lib/deploy/functions/functionsDeployHelper.js +3 -68
  39. package/lib/deploy/functions/prepare.js +62 -27
  40. package/lib/deploy/functions/pricing.js +17 -17
  41. package/lib/deploy/functions/prompts.js +22 -21
  42. package/lib/deploy/functions/release/executor.js +39 -0
  43. package/lib/deploy/functions/release/fabricator.js +422 -0
  44. package/lib/deploy/functions/release/index.js +73 -0
  45. package/lib/deploy/functions/release/planner.js +162 -0
  46. package/lib/deploy/functions/release/reporter.js +165 -0
  47. package/lib/deploy/functions/release/sourceTokenScraper.js +28 -0
  48. package/lib/deploy/functions/release/timer.js +14 -0
  49. package/lib/deploy/functions/runtimes/discovery/v1alpha1.js +129 -126
  50. package/lib/deploy/functions/runtimes/node/parseTriggers.js +41 -45
  51. package/lib/deploy/functions/triggerRegionHelper.js +40 -0
  52. package/lib/deploy/functions/validate.js +1 -24
  53. package/lib/deploy/index.js +1 -0
  54. package/lib/downloadUtils.js +37 -0
  55. package/lib/emulator/auth/apiSpec.js +1788 -403
  56. package/lib/emulator/auth/handlers.js +6 -5
  57. package/lib/emulator/auth/operations.js +439 -40
  58. package/lib/emulator/auth/server.js +32 -11
  59. package/lib/emulator/auth/state.js +205 -5
  60. package/lib/emulator/auth/widget_ui.js +2 -2
  61. package/lib/emulator/download.js +2 -31
  62. package/lib/emulator/downloadableEmulators.js +7 -7
  63. package/lib/emulator/emulatorLogger.js +0 -3
  64. package/lib/emulator/events/types.js +16 -0
  65. package/lib/emulator/functionsEmulator.js +120 -21
  66. package/lib/emulator/functionsEmulatorRuntime.js +46 -121
  67. package/lib/emulator/functionsEmulatorShared.js +51 -7
  68. package/lib/emulator/functionsEmulatorShell.js +1 -1
  69. package/lib/emulator/pubsubEmulator.js +61 -40
  70. package/lib/emulator/storage/cloudFunctions.js +37 -7
  71. package/lib/extensions/askUserForConsent.js +14 -1
  72. package/lib/extensions/askUserForParam.js +81 -4
  73. package/lib/extensions/billingMigrationHelper.js +1 -11
  74. package/lib/extensions/changelog.js +2 -1
  75. package/lib/extensions/checkProjectBilling.js +7 -7
  76. package/lib/extensions/displayExtensionInfo.js +35 -33
  77. package/lib/extensions/emulator/optionsHelper.js +3 -3
  78. package/lib/extensions/emulator/triggerHelper.js +2 -32
  79. package/lib/extensions/export.js +107 -0
  80. package/lib/extensions/extensionsApi.js +149 -97
  81. package/lib/extensions/extensionsHelper.js +36 -32
  82. package/lib/extensions/listExtensions.js +16 -11
  83. package/lib/extensions/paramHelper.js +73 -40
  84. package/lib/extensions/provisioningHelper.js +16 -3
  85. package/lib/extensions/refs.js +67 -0
  86. package/lib/extensions/secretsUtils.js +59 -0
  87. package/lib/extensions/updateHelper.js +33 -47
  88. package/lib/extensions/versionHelper.js +14 -0
  89. package/lib/extensions/warnings.js +33 -1
  90. package/lib/functional.js +64 -0
  91. package/lib/functions/env.js +26 -13
  92. package/lib/functions/runtimeConfigExport.js +137 -0
  93. package/lib/gcp/artifactregistry.js +16 -0
  94. package/lib/gcp/cloudfunctions.js +65 -35
  95. package/lib/gcp/cloudfunctionsv2.js +56 -43
  96. package/lib/gcp/cloudscheduler.js +22 -16
  97. package/lib/gcp/cloudtasks.js +143 -0
  98. package/lib/gcp/docker.js +7 -1
  99. package/lib/gcp/proto.js +2 -2
  100. package/lib/gcp/pubsub.js +1 -9
  101. package/lib/gcp/secretManager.js +132 -0
  102. package/lib/gcp/storage.js +16 -0
  103. package/lib/previews.js +1 -1
  104. package/lib/requireInteractive.js +12 -0
  105. package/lib/utils.js +30 -1
  106. package/package.json +6 -4
  107. package/schema/firebase-config.json +9 -0
  108. package/lib/deploy/functions/deploymentPlanner.js +0 -113
  109. package/lib/deploy/functions/deploymentTimer.js +0 -23
  110. package/lib/deploy/functions/errorHandler.js +0 -75
  111. package/lib/deploy/functions/release.js +0 -116
  112. package/lib/deploy/functions/tasks.js +0 -324
  113. package/lib/functions/listFunctions.js +0 -10
  114. package/lib/functionsDelete.js +0 -60
@@ -632,149 +632,6 @@ exports.default = {
632
632
  { $ref: "#/components/parameters/upload_protocol" },
633
633
  ],
634
634
  },
635
- "/v1/projects": {
636
- get: {
637
- description: "Gets a project's public Identity Toolkit configuration. (Legacy) This method also supports authenticated calls from a developer to retrieve non-public configuration.",
638
- operationId: "identitytoolkit.getProjects",
639
- responses: {
640
- 200: {
641
- description: "Successful response",
642
- content: {
643
- "*/*": {
644
- schema: {
645
- $ref: "#/components/schemas/GoogleCloudIdentitytoolkitV1GetProjectConfigResponse",
646
- },
647
- },
648
- },
649
- },
650
- },
651
- parameters: [
652
- {
653
- name: "androidPackageName",
654
- in: "query",
655
- description: "Android package name to check against the real android package name. If this field is provided, and sha1_cert_hash is not provided, the action will throw an error if this does not match the real android package name.",
656
- schema: { type: "string" },
657
- },
658
- {
659
- name: "clientId",
660
- in: "query",
661
- description: "The RP OAuth client ID. If set, a check will be performed to ensure that the OAuth client is valid for the retrieved project and the request rejected with a client error if not valid.",
662
- schema: { type: "string" },
663
- },
664
- {
665
- name: "delegatedProjectNumber",
666
- in: "query",
667
- description: "Project Number of the delegated project request. This field should only be used as part of the Firebase V1 migration.",
668
- schema: { type: "string" },
669
- },
670
- {
671
- name: "firebaseAppId",
672
- in: "query",
673
- description: "The Firebase app ID, for applications that use Firebase. This can be found in the Firebase console for your project. If set, a check will be performed to ensure that the app ID is valid for the retrieved project. If not valid, the request will be rejected with a client error.",
674
- schema: { type: "string" },
675
- },
676
- {
677
- name: "iosBundleId",
678
- in: "query",
679
- description: "iOS bundle id to check against the real ios bundle id. If this field is provided, the action will throw an error if this does not match the real iOS bundle id.",
680
- schema: { type: "string" },
681
- },
682
- {
683
- name: "projectNumber",
684
- in: "query",
685
- description: "Project number of the configuration to retrieve. This field is deprecated and should not be used by new integrations.",
686
- schema: { type: "string" },
687
- },
688
- {
689
- name: "returnDynamicLink",
690
- in: "query",
691
- description: "Whether dynamic link should be returned.",
692
- schema: { type: "boolean" },
693
- },
694
- {
695
- name: "sha1Cert",
696
- in: "query",
697
- description: "SHA-1 Android application cert hash. If set, a check will be performed to ensure that the cert hash is valid for the retrieved project and android_package_name.",
698
- schema: { type: "string" },
699
- },
700
- ],
701
- security: [{ Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] }, { apiKey: [] }],
702
- tags: ["v1"],
703
- },
704
- parameters: [
705
- { $ref: "#/components/parameters/access_token" },
706
- { $ref: "#/components/parameters/alt" },
707
- { $ref: "#/components/parameters/callback" },
708
- { $ref: "#/components/parameters/fields" },
709
- { $ref: "#/components/parameters/oauth_token" },
710
- { $ref: "#/components/parameters/prettyPrint" },
711
- { $ref: "#/components/parameters/quotaUser" },
712
- { $ref: "#/components/parameters/uploadType" },
713
- { $ref: "#/components/parameters/upload_protocol" },
714
- ],
715
- },
716
- "/v1/recaptchaParams": {
717
- get: {
718
- description: "Gets parameters needed for generating a reCAPTCHA challenge.",
719
- operationId: "identitytoolkit.getRecaptchaParams",
720
- responses: {
721
- 200: {
722
- description: "Successful response",
723
- content: {
724
- "*/*": {
725
- schema: {
726
- $ref: "#/components/schemas/GoogleCloudIdentitytoolkitV1GetRecaptchaParamResponse",
727
- },
728
- },
729
- },
730
- },
731
- },
732
- security: [{ Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] }, { apiKey: [] }],
733
- tags: ["v1"],
734
- },
735
- parameters: [
736
- { $ref: "#/components/parameters/access_token" },
737
- { $ref: "#/components/parameters/alt" },
738
- { $ref: "#/components/parameters/callback" },
739
- { $ref: "#/components/parameters/fields" },
740
- { $ref: "#/components/parameters/oauth_token" },
741
- { $ref: "#/components/parameters/prettyPrint" },
742
- { $ref: "#/components/parameters/quotaUser" },
743
- { $ref: "#/components/parameters/uploadType" },
744
- { $ref: "#/components/parameters/upload_protocol" },
745
- ],
746
- },
747
- "/v1/sessionCookiePublicKeys": {
748
- get: {
749
- description: "Retrieves the set of public keys of the session cookie JSON Web Token (JWT) signer that can be used to validate the session cookie created through createSessionCookie.",
750
- operationId: "identitytoolkit.getSessionCookiePublicKeys",
751
- responses: {
752
- 200: {
753
- description: "Successful response",
754
- content: {
755
- "*/*": {
756
- schema: {
757
- $ref: "#/components/schemas/GoogleCloudIdentitytoolkitV1GetSessionCookiePublicKeysResponse",
758
- },
759
- },
760
- },
761
- },
762
- },
763
- tags: ["v1"],
764
- security: [{ apiKey: [] }],
765
- },
766
- parameters: [
767
- { $ref: "#/components/parameters/access_token" },
768
- { $ref: "#/components/parameters/alt" },
769
- { $ref: "#/components/parameters/callback" },
770
- { $ref: "#/components/parameters/fields" },
771
- { $ref: "#/components/parameters/oauth_token" },
772
- { $ref: "#/components/parameters/prettyPrint" },
773
- { $ref: "#/components/parameters/quotaUser" },
774
- { $ref: "#/components/parameters/uploadType" },
775
- { $ref: "#/components/parameters/upload_protocol" },
776
- ],
777
- },
778
635
  "/v1/projects/{targetProjectId}/accounts": {
779
636
  post: {
780
637
  description: "Signs up a new email and password user or anonymous user, or upgrades an anonymous user to email and password. For an admin request with a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control), creates a new anonymous, email and password, or phone number user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.",
@@ -1806,33 +1663,74 @@ exports.default = {
1806
1663
  { $ref: "#/components/parameters/upload_protocol" },
1807
1664
  ],
1808
1665
  },
1809
- "/v2/accounts/mfaEnrollment:finalize": {
1810
- post: {
1811
- description: "Finishes enrolling a second factor for the user.",
1812
- operationId: "identitytoolkit.accounts.mfaEnrollment.finalize",
1666
+ "/v1/projects": {
1667
+ get: {
1668
+ description: "Gets a project's public Identity Toolkit configuration. (Legacy) This method also supports authenticated calls from a developer to retrieve non-public configuration.",
1669
+ operationId: "identitytoolkit.getProjects",
1813
1670
  responses: {
1814
1671
  200: {
1815
1672
  description: "Successful response",
1816
1673
  content: {
1817
1674
  "*/*": {
1818
1675
  schema: {
1819
- $ref: "#/components/schemas/GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse",
1676
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitV1GetProjectConfigResponse",
1820
1677
  },
1821
1678
  },
1822
1679
  },
1823
1680
  },
1824
1681
  },
1825
- requestBody: {
1826
- content: {
1827
- "application/json": {
1828
- schema: {
1829
- $ref: "#/components/schemas/GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest",
1830
- },
1831
- },
1682
+ parameters: [
1683
+ {
1684
+ name: "androidPackageName",
1685
+ in: "query",
1686
+ description: "Android package name to check against the real android package name. If this field is provided, and sha1_cert_hash is not provided, the action will throw an error if this does not match the real android package name.",
1687
+ schema: { type: "string" },
1832
1688
  },
1833
- },
1689
+ {
1690
+ name: "clientId",
1691
+ in: "query",
1692
+ description: "The RP OAuth client ID. If set, a check will be performed to ensure that the OAuth client is valid for the retrieved project and the request rejected with a client error if not valid.",
1693
+ schema: { type: "string" },
1694
+ },
1695
+ {
1696
+ name: "delegatedProjectNumber",
1697
+ in: "query",
1698
+ description: "Project Number of the delegated project request. This field should only be used as part of the Firebase V1 migration.",
1699
+ schema: { type: "string" },
1700
+ },
1701
+ {
1702
+ name: "firebaseAppId",
1703
+ in: "query",
1704
+ description: "The Firebase app ID, for applications that use Firebase. This can be found in the Firebase console for your project. If set, a check will be performed to ensure that the app ID is valid for the retrieved project. If not valid, the request will be rejected with a client error.",
1705
+ schema: { type: "string" },
1706
+ },
1707
+ {
1708
+ name: "iosBundleId",
1709
+ in: "query",
1710
+ description: "iOS bundle id to check against the real ios bundle id. If this field is provided, the action will throw an error if this does not match the real iOS bundle id.",
1711
+ schema: { type: "string" },
1712
+ },
1713
+ {
1714
+ name: "projectNumber",
1715
+ in: "query",
1716
+ description: "Project number of the configuration to retrieve. This field is deprecated and should not be used by new integrations.",
1717
+ schema: { type: "string" },
1718
+ },
1719
+ {
1720
+ name: "returnDynamicLink",
1721
+ in: "query",
1722
+ description: "Whether dynamic link should be returned.",
1723
+ schema: { type: "boolean" },
1724
+ },
1725
+ {
1726
+ name: "sha1Cert",
1727
+ in: "query",
1728
+ description: "SHA-1 Android application cert hash. If set, a check will be performed to ensure that the cert hash is valid for the retrieved project and android_package_name.",
1729
+ schema: { type: "string" },
1730
+ },
1731
+ ],
1834
1732
  security: [{ Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] }, { apiKey: [] }],
1835
- tags: ["accounts"],
1733
+ tags: ["v1"],
1836
1734
  },
1837
1735
  parameters: [
1838
1736
  { $ref: "#/components/parameters/access_token" },
@@ -1846,33 +1744,24 @@ exports.default = {
1846
1744
  { $ref: "#/components/parameters/upload_protocol" },
1847
1745
  ],
1848
1746
  },
1849
- "/v2/accounts/mfaEnrollment:start": {
1850
- post: {
1851
- description: "Step one of the MFA enrollment process. In SMS case, this sends an SMS verification code to the user.",
1852
- operationId: "identitytoolkit.accounts.mfaEnrollment.start",
1747
+ "/v1/recaptchaParams": {
1748
+ get: {
1749
+ description: "Gets parameters needed for generating a reCAPTCHA challenge.",
1750
+ operationId: "identitytoolkit.getRecaptchaParams",
1853
1751
  responses: {
1854
1752
  200: {
1855
1753
  description: "Successful response",
1856
1754
  content: {
1857
1755
  "*/*": {
1858
1756
  schema: {
1859
- $ref: "#/components/schemas/GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse",
1757
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitV1GetRecaptchaParamResponse",
1860
1758
  },
1861
1759
  },
1862
1760
  },
1863
1761
  },
1864
1762
  },
1865
- requestBody: {
1866
- content: {
1867
- "application/json": {
1868
- schema: {
1869
- $ref: "#/components/schemas/GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest",
1870
- },
1871
- },
1872
- },
1873
- },
1874
1763
  security: [{ Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] }, { apiKey: [] }],
1875
- tags: ["accounts"],
1764
+ tags: ["v1"],
1876
1765
  },
1877
1766
  parameters: [
1878
1767
  { $ref: "#/components/parameters/access_token" },
@@ -1886,33 +1775,144 @@ exports.default = {
1886
1775
  { $ref: "#/components/parameters/upload_protocol" },
1887
1776
  ],
1888
1777
  },
1889
- "/v2/accounts/mfaEnrollment:withdraw": {
1890
- post: {
1891
- description: "Revokes one second factor from the enrolled second factors for an account.",
1892
- operationId: "identitytoolkit.accounts.mfaEnrollment.withdraw",
1778
+ "/v1/sessionCookiePublicKeys": {
1779
+ get: {
1780
+ description: "Retrieves the set of public keys of the session cookie JSON Web Token (JWT) signer that can be used to validate the session cookie created through createSessionCookie.",
1781
+ operationId: "identitytoolkit.getSessionCookiePublicKeys",
1893
1782
  responses: {
1894
1783
  200: {
1895
1784
  description: "Successful response",
1896
1785
  content: {
1897
1786
  "*/*": {
1898
1787
  schema: {
1899
- $ref: "#/components/schemas/GoogleCloudIdentitytoolkitV2WithdrawMfaResponse",
1788
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitV1GetSessionCookiePublicKeysResponse",
1900
1789
  },
1901
1790
  },
1902
1791
  },
1903
1792
  },
1904
1793
  },
1905
- requestBody: {
1906
- content: {
1907
- "application/json": {
1908
- schema: {
1909
- $ref: "#/components/schemas/GoogleCloudIdentitytoolkitV2WithdrawMfaRequest",
1910
- },
1911
- },
1912
- },
1913
- },
1914
- security: [{ Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] }, { apiKey: [] }],
1915
- tags: ["accounts"],
1794
+ tags: ["v1"],
1795
+ security: [{ apiKey: [] }],
1796
+ },
1797
+ parameters: [
1798
+ { $ref: "#/components/parameters/access_token" },
1799
+ { $ref: "#/components/parameters/alt" },
1800
+ { $ref: "#/components/parameters/callback" },
1801
+ { $ref: "#/components/parameters/fields" },
1802
+ { $ref: "#/components/parameters/oauth_token" },
1803
+ { $ref: "#/components/parameters/prettyPrint" },
1804
+ { $ref: "#/components/parameters/quotaUser" },
1805
+ { $ref: "#/components/parameters/uploadType" },
1806
+ { $ref: "#/components/parameters/upload_protocol" },
1807
+ ],
1808
+ },
1809
+ "/v2/accounts/mfaEnrollment:finalize": {
1810
+ post: {
1811
+ description: "Finishes enrolling a second factor for the user.",
1812
+ operationId: "identitytoolkit.accounts.mfaEnrollment.finalize",
1813
+ responses: {
1814
+ 200: {
1815
+ description: "Successful response",
1816
+ content: {
1817
+ "*/*": {
1818
+ schema: {
1819
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse",
1820
+ },
1821
+ },
1822
+ },
1823
+ },
1824
+ },
1825
+ requestBody: {
1826
+ content: {
1827
+ "application/json": {
1828
+ schema: {
1829
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest",
1830
+ },
1831
+ },
1832
+ },
1833
+ },
1834
+ security: [{ Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] }, { apiKey: [] }],
1835
+ tags: ["accounts"],
1836
+ },
1837
+ parameters: [
1838
+ { $ref: "#/components/parameters/access_token" },
1839
+ { $ref: "#/components/parameters/alt" },
1840
+ { $ref: "#/components/parameters/callback" },
1841
+ { $ref: "#/components/parameters/fields" },
1842
+ { $ref: "#/components/parameters/oauth_token" },
1843
+ { $ref: "#/components/parameters/prettyPrint" },
1844
+ { $ref: "#/components/parameters/quotaUser" },
1845
+ { $ref: "#/components/parameters/uploadType" },
1846
+ { $ref: "#/components/parameters/upload_protocol" },
1847
+ ],
1848
+ },
1849
+ "/v2/accounts/mfaEnrollment:start": {
1850
+ post: {
1851
+ description: "Step one of the MFA enrollment process. In SMS case, this sends an SMS verification code to the user.",
1852
+ operationId: "identitytoolkit.accounts.mfaEnrollment.start",
1853
+ responses: {
1854
+ 200: {
1855
+ description: "Successful response",
1856
+ content: {
1857
+ "*/*": {
1858
+ schema: {
1859
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse",
1860
+ },
1861
+ },
1862
+ },
1863
+ },
1864
+ },
1865
+ requestBody: {
1866
+ content: {
1867
+ "application/json": {
1868
+ schema: {
1869
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest",
1870
+ },
1871
+ },
1872
+ },
1873
+ },
1874
+ security: [{ Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] }, { apiKey: [] }],
1875
+ tags: ["accounts"],
1876
+ },
1877
+ parameters: [
1878
+ { $ref: "#/components/parameters/access_token" },
1879
+ { $ref: "#/components/parameters/alt" },
1880
+ { $ref: "#/components/parameters/callback" },
1881
+ { $ref: "#/components/parameters/fields" },
1882
+ { $ref: "#/components/parameters/oauth_token" },
1883
+ { $ref: "#/components/parameters/prettyPrint" },
1884
+ { $ref: "#/components/parameters/quotaUser" },
1885
+ { $ref: "#/components/parameters/uploadType" },
1886
+ { $ref: "#/components/parameters/upload_protocol" },
1887
+ ],
1888
+ },
1889
+ "/v2/accounts/mfaEnrollment:withdraw": {
1890
+ post: {
1891
+ description: "Revokes one second factor from the enrolled second factors for an account.",
1892
+ operationId: "identitytoolkit.accounts.mfaEnrollment.withdraw",
1893
+ responses: {
1894
+ 200: {
1895
+ description: "Successful response",
1896
+ content: {
1897
+ "*/*": {
1898
+ schema: {
1899
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitV2WithdrawMfaResponse",
1900
+ },
1901
+ },
1902
+ },
1903
+ },
1904
+ },
1905
+ requestBody: {
1906
+ content: {
1907
+ "application/json": {
1908
+ schema: {
1909
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitV2WithdrawMfaRequest",
1910
+ },
1911
+ },
1912
+ },
1913
+ },
1914
+ security: [{ Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] }, { apiKey: [] }],
1915
+ tags: ["accounts"],
1916
1916
  },
1917
1917
  parameters: [
1918
1918
  { $ref: "#/components/parameters/access_token" },
@@ -2055,10 +2055,78 @@ exports.default = {
2055
2055
  { $ref: "#/components/parameters/upload_protocol" },
2056
2056
  ],
2057
2057
  },
2058
- "/v2/{parent}/defaultSupportedIdpConfigs": {
2058
+ "/v2/projects/{targetProjectId}/config": {
2059
+ get: {
2060
+ description: "Retrieve an Identity Toolkit project configuration.",
2061
+ operationId: "identitytoolkit.projects.getConfig",
2062
+ responses: {
2063
+ 200: {
2064
+ description: "Successful response",
2065
+ content: {
2066
+ "*/*": {
2067
+ schema: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2Config" },
2068
+ },
2069
+ },
2070
+ },
2071
+ },
2072
+ parameters: [
2073
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2074
+ ],
2075
+ security: [{ Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] }, { apiKey: [] }],
2076
+ tags: ["projects"],
2077
+ },
2078
+ patch: {
2079
+ description: "Update an Identity Toolkit project configuration.",
2080
+ operationId: "identitytoolkit.projects.updateConfig",
2081
+ responses: {
2082
+ 200: {
2083
+ description: "Successful response",
2084
+ content: {
2085
+ "*/*": {
2086
+ schema: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2Config" },
2087
+ },
2088
+ },
2089
+ },
2090
+ },
2091
+ parameters: [
2092
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2093
+ {
2094
+ name: "updateMask",
2095
+ in: "query",
2096
+ description: "The update mask applies to the resource. Fields set in the config but not included in this update mask will be ignored. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
2097
+ schema: { type: "string" },
2098
+ },
2099
+ ],
2100
+ requestBody: {
2101
+ content: {
2102
+ "application/json": {
2103
+ schema: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2Config" },
2104
+ },
2105
+ },
2106
+ },
2107
+ security: [
2108
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2109
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
2110
+ { apiKey: [] },
2111
+ ],
2112
+ tags: ["projects"],
2113
+ },
2114
+ parameters: [
2115
+ { $ref: "#/components/parameters/access_token" },
2116
+ { $ref: "#/components/parameters/alt" },
2117
+ { $ref: "#/components/parameters/callback" },
2118
+ { $ref: "#/components/parameters/fields" },
2119
+ { $ref: "#/components/parameters/oauth_token" },
2120
+ { $ref: "#/components/parameters/prettyPrint" },
2121
+ { $ref: "#/components/parameters/quotaUser" },
2122
+ { $ref: "#/components/parameters/uploadType" },
2123
+ { $ref: "#/components/parameters/upload_protocol" },
2124
+ ],
2125
+ },
2126
+ "/v2/projects/{targetProjectId}/defaultSupportedIdpConfigs": {
2059
2127
  post: {
2060
2128
  description: "Create a default supported Idp configuration for an Identity Toolkit project.",
2061
- operationId: "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.create",
2129
+ operationId: "identitytoolkit.projects.defaultSupportedIdpConfigs.create",
2062
2130
  responses: {
2063
2131
  200: {
2064
2132
  description: "Successful response",
@@ -2072,13 +2140,7 @@ exports.default = {
2072
2140
  },
2073
2141
  },
2074
2142
  parameters: [
2075
- {
2076
- name: "parent",
2077
- in: "path",
2078
- description: 'The parent resource name where the config to be created, for example: "projects/my-awesome-project"',
2079
- required: true,
2080
- schema: { type: "string" },
2081
- },
2143
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2082
2144
  {
2083
2145
  name: "idpId",
2084
2146
  in: "query",
@@ -2087,13 +2149,7 @@ exports.default = {
2087
2149
  },
2088
2150
  ],
2089
2151
  requestBody: {
2090
- content: {
2091
- "application/json": {
2092
- schema: {
2093
- $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig",
2094
- },
2095
- },
2096
- },
2152
+ $ref: "#/components/requestBodies/GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig",
2097
2153
  },
2098
2154
  security: [
2099
2155
  { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
@@ -2104,7 +2160,7 @@ exports.default = {
2104
2160
  },
2105
2161
  get: {
2106
2162
  description: "List all default supported Idp configurations for an Identity Toolkit project.",
2107
- operationId: "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.list",
2163
+ operationId: "identitytoolkit.projects.defaultSupportedIdpConfigs.list",
2108
2164
  responses: {
2109
2165
  200: {
2110
2166
  description: "Successful response",
@@ -2118,13 +2174,7 @@ exports.default = {
2118
2174
  },
2119
2175
  },
2120
2176
  parameters: [
2121
- {
2122
- name: "parent",
2123
- in: "path",
2124
- description: 'The parent resource name, for example, "projects/my-awesome-project".',
2125
- required: true,
2126
- schema: { type: "string" },
2127
- },
2177
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2128
2178
  {
2129
2179
  name: "pageSize",
2130
2180
  in: "query",
@@ -2157,10 +2207,10 @@ exports.default = {
2157
2207
  { $ref: "#/components/parameters/upload_protocol" },
2158
2208
  ],
2159
2209
  },
2160
- "/v2/{name}": {
2210
+ "/v2/projects/{targetProjectId}/defaultSupportedIdpConfigs/{defaultSupportedIdpConfigsId}": {
2161
2211
  delete: {
2162
- description: "Delete an Oidc Idp configuration for an Identity Toolkit project.",
2163
- operationId: "identitytoolkit.projects.tenants.oauthIdpConfigs.delete",
2212
+ description: "Delete a default supported Idp configuration for an Identity Toolkit project.",
2213
+ operationId: "identitytoolkit.projects.defaultSupportedIdpConfigs.delete",
2164
2214
  responses: {
2165
2215
  200: {
2166
2216
  description: "Successful response",
@@ -2168,10 +2218,10 @@ exports.default = {
2168
2218
  },
2169
2219
  },
2170
2220
  parameters: [
2221
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2171
2222
  {
2172
- name: "name",
2223
+ name: "defaultSupportedIdpConfigsId",
2173
2224
  in: "path",
2174
- description: "The resource name of the config to be deleted, for example: 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'.",
2175
2225
  required: true,
2176
2226
  schema: { type: "string" },
2177
2227
  },
@@ -2184,25 +2234,25 @@ exports.default = {
2184
2234
  tags: ["projects"],
2185
2235
  },
2186
2236
  get: {
2187
- description: "Retrieve an Oidc Idp configuration for an Identity Toolkit project.",
2188
- operationId: "identitytoolkit.projects.tenants.oauthIdpConfigs.get",
2237
+ description: "Retrieve a default supported Idp configuration for an Identity Toolkit project.",
2238
+ operationId: "identitytoolkit.projects.defaultSupportedIdpConfigs.get",
2189
2239
  responses: {
2190
2240
  200: {
2191
2241
  description: "Successful response",
2192
2242
  content: {
2193
2243
  "*/*": {
2194
2244
  schema: {
2195
- $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig",
2245
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig",
2196
2246
  },
2197
2247
  },
2198
2248
  },
2199
2249
  },
2200
2250
  },
2201
2251
  parameters: [
2252
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2202
2253
  {
2203
- name: "name",
2254
+ name: "defaultSupportedIdpConfigsId",
2204
2255
  in: "path",
2205
- description: "The resource name of the config, for example: 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'.",
2206
2256
  required: true,
2207
2257
  schema: { type: "string" },
2208
2258
  },
@@ -2215,37 +2265,37 @@ exports.default = {
2215
2265
  tags: ["projects"],
2216
2266
  },
2217
2267
  patch: {
2218
- description: "Update an Oidc Idp configuration for an Identity Toolkit project.",
2219
- operationId: "identitytoolkit.projects.tenants.oauthIdpConfigs.patch",
2268
+ description: "Update a default supported Idp configuration for an Identity Toolkit project.",
2269
+ operationId: "identitytoolkit.projects.defaultSupportedIdpConfigs.patch",
2220
2270
  responses: {
2221
2271
  200: {
2222
2272
  description: "Successful response",
2223
2273
  content: {
2224
2274
  "*/*": {
2225
2275
  schema: {
2226
- $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig",
2276
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig",
2227
2277
  },
2228
2278
  },
2229
2279
  },
2230
2280
  },
2231
2281
  },
2232
2282
  parameters: [
2283
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2233
2284
  {
2234
- name: "name",
2285
+ name: "defaultSupportedIdpConfigsId",
2235
2286
  in: "path",
2236
- description: "The name of the OAuthIdpConfig resource, for example: 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'. Ignored during create requests.",
2237
2287
  required: true,
2238
2288
  schema: { type: "string" },
2239
2289
  },
2240
2290
  {
2241
2291
  name: "updateMask",
2242
2292
  in: "query",
2243
- description: "The update mask applies to the resource. Empty update mask will result in updating nothing. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
2293
+ description: "The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
2244
2294
  schema: { type: "string" },
2245
2295
  },
2246
2296
  ],
2247
2297
  requestBody: {
2248
- $ref: "#/components/requestBodies/GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig",
2298
+ $ref: "#/components/requestBodies/GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig",
2249
2299
  },
2250
2300
  security: [
2251
2301
  { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
@@ -2266,10 +2316,10 @@ exports.default = {
2266
2316
  { $ref: "#/components/parameters/upload_protocol" },
2267
2317
  ],
2268
2318
  },
2269
- "/v2/{parent}/inboundSamlConfigs": {
2319
+ "/v2/projects/{targetProjectId}/inboundSamlConfigs": {
2270
2320
  post: {
2271
2321
  description: "Create an inbound SAML configuration for an Identity Toolkit project.",
2272
- operationId: "identitytoolkit.projects.tenants.inboundSamlConfigs.create",
2322
+ operationId: "identitytoolkit.projects.inboundSamlConfigs.create",
2273
2323
  responses: {
2274
2324
  200: {
2275
2325
  description: "Successful response",
@@ -2283,13 +2333,7 @@ exports.default = {
2283
2333
  },
2284
2334
  },
2285
2335
  parameters: [
2286
- {
2287
- name: "parent",
2288
- in: "path",
2289
- description: 'The parent resource name where the config to be created, for example: "projects/my-awesome-project"',
2290
- required: true,
2291
- schema: { type: "string" },
2292
- },
2336
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2293
2337
  {
2294
2338
  name: "inboundSamlConfigId",
2295
2339
  in: "query",
@@ -2298,13 +2342,7 @@ exports.default = {
2298
2342
  },
2299
2343
  ],
2300
2344
  requestBody: {
2301
- content: {
2302
- "application/json": {
2303
- schema: {
2304
- $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig",
2305
- },
2306
- },
2307
- },
2345
+ $ref: "#/components/requestBodies/GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig",
2308
2346
  },
2309
2347
  security: [
2310
2348
  { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
@@ -2315,7 +2353,7 @@ exports.default = {
2315
2353
  },
2316
2354
  get: {
2317
2355
  description: "List all inbound SAML configurations for an Identity Toolkit project.",
2318
- operationId: "identitytoolkit.projects.tenants.inboundSamlConfigs.list",
2356
+ operationId: "identitytoolkit.projects.inboundSamlConfigs.list",
2319
2357
  responses: {
2320
2358
  200: {
2321
2359
  description: "Successful response",
@@ -2329,13 +2367,7 @@ exports.default = {
2329
2367
  },
2330
2368
  },
2331
2369
  parameters: [
2332
- {
2333
- name: "parent",
2334
- in: "path",
2335
- description: 'The parent resource name, for example, "projects/my-awesome-project".',
2336
- required: true,
2337
- schema: { type: "string" },
2338
- },
2370
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2339
2371
  {
2340
2372
  name: "pageSize",
2341
2373
  in: "query",
@@ -2368,40 +2400,20 @@ exports.default = {
2368
2400
  { $ref: "#/components/parameters/upload_protocol" },
2369
2401
  ],
2370
2402
  },
2371
- "/v2/{parent}/oauthIdpConfigs": {
2372
- post: {
2373
- description: "Create an Oidc Idp configuration for an Identity Toolkit project.",
2374
- operationId: "identitytoolkit.projects.tenants.oauthIdpConfigs.create",
2403
+ "/v2/projects/{targetProjectId}/inboundSamlConfigs/{inboundSamlConfigsId}": {
2404
+ delete: {
2405
+ description: "Delete an inbound SAML configuration for an Identity Toolkit project.",
2406
+ operationId: "identitytoolkit.projects.inboundSamlConfigs.delete",
2375
2407
  responses: {
2376
2408
  200: {
2377
2409
  description: "Successful response",
2378
- content: {
2379
- "*/*": {
2380
- schema: {
2381
- $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig",
2382
- },
2383
- },
2384
- },
2410
+ content: { "*/*": { schema: { $ref: "#/components/schemas/GoogleProtobufEmpty" } } },
2385
2411
  },
2386
2412
  },
2387
2413
  parameters: [
2388
- {
2389
- name: "parent",
2390
- in: "path",
2391
- description: 'The parent resource name where the config to be created, for example: "projects/my-awesome-project"',
2392
- required: true,
2393
- schema: { type: "string" },
2394
- },
2395
- {
2396
- name: "oauthIdpConfigId",
2397
- in: "query",
2398
- description: "The id to use for this config.",
2399
- schema: { type: "string" },
2400
- },
2414
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2415
+ { name: "inboundSamlConfigsId", in: "path", required: true, schema: { type: "string" } },
2401
2416
  ],
2402
- requestBody: {
2403
- $ref: "#/components/requestBodies/GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig",
2404
- },
2405
2417
  security: [
2406
2418
  { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2407
2419
  { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
@@ -2410,28 +2422,794 @@ exports.default = {
2410
2422
  tags: ["projects"],
2411
2423
  },
2412
2424
  get: {
2413
- description: "List all Oidc Idp configurations for an Identity Toolkit project.",
2414
- operationId: "identitytoolkit.projects.tenants.oauthIdpConfigs.list",
2425
+ description: "Retrieve an inbound SAML configuration for an Identity Toolkit project.",
2426
+ operationId: "identitytoolkit.projects.inboundSamlConfigs.get",
2415
2427
  responses: {
2416
2428
  200: {
2417
2429
  description: "Successful response",
2418
2430
  content: {
2419
2431
  "*/*": {
2420
2432
  schema: {
2421
- $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse",
2433
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig",
2422
2434
  },
2423
2435
  },
2424
2436
  },
2425
2437
  },
2426
2438
  },
2427
2439
  parameters: [
2440
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2441
+ { name: "inboundSamlConfigsId", in: "path", required: true, schema: { type: "string" } },
2442
+ ],
2443
+ security: [
2444
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2445
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
2446
+ { apiKey: [] },
2447
+ ],
2448
+ tags: ["projects"],
2449
+ },
2450
+ patch: {
2451
+ description: "Update an inbound SAML configuration for an Identity Toolkit project.",
2452
+ operationId: "identitytoolkit.projects.inboundSamlConfigs.patch",
2453
+ responses: {
2454
+ 200: {
2455
+ description: "Successful response",
2456
+ content: {
2457
+ "*/*": {
2458
+ schema: {
2459
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig",
2460
+ },
2461
+ },
2462
+ },
2463
+ },
2464
+ },
2465
+ parameters: [
2466
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2467
+ { name: "inboundSamlConfigsId", in: "path", required: true, schema: { type: "string" } },
2468
+ {
2469
+ name: "updateMask",
2470
+ in: "query",
2471
+ description: "The update mask applies to the resource. Empty update mask will result in updating nothing. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
2472
+ schema: { type: "string" },
2473
+ },
2474
+ ],
2475
+ requestBody: {
2476
+ $ref: "#/components/requestBodies/GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig",
2477
+ },
2478
+ security: [
2479
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2480
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
2481
+ { apiKey: [] },
2482
+ ],
2483
+ tags: ["projects"],
2484
+ },
2485
+ parameters: [
2486
+ { $ref: "#/components/parameters/access_token" },
2487
+ { $ref: "#/components/parameters/alt" },
2488
+ { $ref: "#/components/parameters/callback" },
2489
+ { $ref: "#/components/parameters/fields" },
2490
+ { $ref: "#/components/parameters/oauth_token" },
2491
+ { $ref: "#/components/parameters/prettyPrint" },
2492
+ { $ref: "#/components/parameters/quotaUser" },
2493
+ { $ref: "#/components/parameters/uploadType" },
2494
+ { $ref: "#/components/parameters/upload_protocol" },
2495
+ ],
2496
+ },
2497
+ "/v2/projects/{targetProjectId}/oauthIdpConfigs": {
2498
+ post: {
2499
+ description: "Create an Oidc Idp configuration for an Identity Toolkit project.",
2500
+ operationId: "identitytoolkit.projects.oauthIdpConfigs.create",
2501
+ responses: {
2502
+ 200: {
2503
+ description: "Successful response",
2504
+ content: {
2505
+ "*/*": {
2506
+ schema: {
2507
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig",
2508
+ },
2509
+ },
2510
+ },
2511
+ },
2512
+ },
2513
+ parameters: [
2514
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2515
+ {
2516
+ name: "oauthIdpConfigId",
2517
+ in: "query",
2518
+ description: "The id to use for this config.",
2519
+ schema: { type: "string" },
2520
+ },
2521
+ ],
2522
+ requestBody: {
2523
+ $ref: "#/components/requestBodies/GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig",
2524
+ },
2525
+ security: [
2526
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2527
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
2528
+ { apiKey: [] },
2529
+ ],
2530
+ tags: ["projects"],
2531
+ },
2532
+ get: {
2533
+ description: "List all Oidc Idp configurations for an Identity Toolkit project.",
2534
+ operationId: "identitytoolkit.projects.oauthIdpConfigs.list",
2535
+ responses: {
2536
+ 200: {
2537
+ description: "Successful response",
2538
+ content: {
2539
+ "*/*": {
2540
+ schema: {
2541
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse",
2542
+ },
2543
+ },
2544
+ },
2545
+ },
2546
+ },
2547
+ parameters: [
2548
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2549
+ {
2550
+ name: "pageSize",
2551
+ in: "query",
2552
+ description: "The maximum number of items to return.",
2553
+ schema: { type: "integer" },
2554
+ },
2555
+ {
2556
+ name: "pageToken",
2557
+ in: "query",
2558
+ description: "The next_page_token value returned from a previous List request, if any.",
2559
+ schema: { type: "string" },
2560
+ },
2561
+ ],
2562
+ security: [
2563
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2564
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
2565
+ { apiKey: [] },
2566
+ ],
2567
+ tags: ["projects"],
2568
+ },
2569
+ parameters: [
2570
+ { $ref: "#/components/parameters/access_token" },
2571
+ { $ref: "#/components/parameters/alt" },
2572
+ { $ref: "#/components/parameters/callback" },
2573
+ { $ref: "#/components/parameters/fields" },
2574
+ { $ref: "#/components/parameters/oauth_token" },
2575
+ { $ref: "#/components/parameters/prettyPrint" },
2576
+ { $ref: "#/components/parameters/quotaUser" },
2577
+ { $ref: "#/components/parameters/uploadType" },
2578
+ { $ref: "#/components/parameters/upload_protocol" },
2579
+ ],
2580
+ },
2581
+ "/v2/projects/{targetProjectId}/oauthIdpConfigs/{oauthIdpConfigsId}": {
2582
+ delete: {
2583
+ description: "Delete an Oidc Idp configuration for an Identity Toolkit project.",
2584
+ operationId: "identitytoolkit.projects.oauthIdpConfigs.delete",
2585
+ responses: {
2586
+ 200: {
2587
+ description: "Successful response",
2588
+ content: { "*/*": { schema: { $ref: "#/components/schemas/GoogleProtobufEmpty" } } },
2589
+ },
2590
+ },
2591
+ parameters: [
2592
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2593
+ { name: "oauthIdpConfigsId", in: "path", required: true, schema: { type: "string" } },
2594
+ ],
2595
+ security: [
2596
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2597
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
2598
+ { apiKey: [] },
2599
+ ],
2600
+ tags: ["projects"],
2601
+ },
2602
+ get: {
2603
+ description: "Retrieve an Oidc Idp configuration for an Identity Toolkit project.",
2604
+ operationId: "identitytoolkit.projects.oauthIdpConfigs.get",
2605
+ responses: {
2606
+ 200: {
2607
+ description: "Successful response",
2608
+ content: {
2609
+ "*/*": {
2610
+ schema: {
2611
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig",
2612
+ },
2613
+ },
2614
+ },
2615
+ },
2616
+ },
2617
+ parameters: [
2618
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2619
+ { name: "oauthIdpConfigsId", in: "path", required: true, schema: { type: "string" } },
2620
+ ],
2621
+ security: [
2622
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2623
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
2624
+ { apiKey: [] },
2625
+ ],
2626
+ tags: ["projects"],
2627
+ },
2628
+ patch: {
2629
+ description: "Update an Oidc Idp configuration for an Identity Toolkit project.",
2630
+ operationId: "identitytoolkit.projects.oauthIdpConfigs.patch",
2631
+ responses: {
2632
+ 200: {
2633
+ description: "Successful response",
2634
+ content: {
2635
+ "*/*": {
2636
+ schema: {
2637
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig",
2638
+ },
2639
+ },
2640
+ },
2641
+ },
2642
+ },
2643
+ parameters: [
2644
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2645
+ { name: "oauthIdpConfigsId", in: "path", required: true, schema: { type: "string" } },
2646
+ {
2647
+ name: "updateMask",
2648
+ in: "query",
2649
+ description: "The update mask applies to the resource. Empty update mask will result in updating nothing. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
2650
+ schema: { type: "string" },
2651
+ },
2652
+ ],
2653
+ requestBody: {
2654
+ $ref: "#/components/requestBodies/GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig",
2655
+ },
2656
+ security: [
2657
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2658
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
2659
+ { apiKey: [] },
2660
+ ],
2661
+ tags: ["projects"],
2662
+ },
2663
+ parameters: [
2664
+ { $ref: "#/components/parameters/access_token" },
2665
+ { $ref: "#/components/parameters/alt" },
2666
+ { $ref: "#/components/parameters/callback" },
2667
+ { $ref: "#/components/parameters/fields" },
2668
+ { $ref: "#/components/parameters/oauth_token" },
2669
+ { $ref: "#/components/parameters/prettyPrint" },
2670
+ { $ref: "#/components/parameters/quotaUser" },
2671
+ { $ref: "#/components/parameters/uploadType" },
2672
+ { $ref: "#/components/parameters/upload_protocol" },
2673
+ ],
2674
+ },
2675
+ "/v2/projects/{targetProjectId}/tenants": {
2676
+ post: {
2677
+ description: "Create a tenant. Requires write permission on the Agent project.",
2678
+ operationId: "identitytoolkit.projects.tenants.create",
2679
+ responses: {
2680
+ 200: {
2681
+ description: "Successful response",
2682
+ content: {
2683
+ "*/*": {
2684
+ schema: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2Tenant" },
2685
+ },
2686
+ },
2687
+ },
2688
+ },
2689
+ parameters: [
2690
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2691
+ ],
2692
+ requestBody: { $ref: "#/components/requestBodies/GoogleCloudIdentitytoolkitAdminV2Tenant" },
2693
+ security: [
2694
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2695
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
2696
+ { apiKey: [] },
2697
+ ],
2698
+ tags: ["projects"],
2699
+ },
2700
+ get: {
2701
+ description: "List tenants under the given agent project. Requires read permission on the Agent project.",
2702
+ operationId: "identitytoolkit.projects.tenants.list",
2703
+ responses: {
2704
+ 200: {
2705
+ description: "Successful response",
2706
+ content: {
2707
+ "*/*": {
2708
+ schema: {
2709
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse",
2710
+ },
2711
+ },
2712
+ },
2713
+ },
2714
+ },
2715
+ parameters: [
2716
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2717
+ {
2718
+ name: "pageSize",
2719
+ in: "query",
2720
+ description: "The maximum number of results to return, capped at 1000. If not specified, the default value is 20.",
2721
+ schema: { type: "integer" },
2722
+ },
2723
+ {
2724
+ name: "pageToken",
2725
+ in: "query",
2726
+ description: "The pagination token from the response of a previous request.",
2727
+ schema: { type: "string" },
2728
+ },
2729
+ ],
2730
+ security: [
2731
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2732
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
2733
+ { apiKey: [] },
2734
+ ],
2735
+ tags: ["projects"],
2736
+ },
2737
+ parameters: [
2738
+ { $ref: "#/components/parameters/access_token" },
2739
+ { $ref: "#/components/parameters/alt" },
2740
+ { $ref: "#/components/parameters/callback" },
2741
+ { $ref: "#/components/parameters/fields" },
2742
+ { $ref: "#/components/parameters/oauth_token" },
2743
+ { $ref: "#/components/parameters/prettyPrint" },
2744
+ { $ref: "#/components/parameters/quotaUser" },
2745
+ { $ref: "#/components/parameters/uploadType" },
2746
+ { $ref: "#/components/parameters/upload_protocol" },
2747
+ ],
2748
+ },
2749
+ "/v2/projects/{targetProjectId}/tenants/{tenantId}": {
2750
+ delete: {
2751
+ description: "Delete a tenant. Requires write permission on the Agent project.",
2752
+ operationId: "identitytoolkit.projects.tenants.delete",
2753
+ responses: {
2754
+ 200: {
2755
+ description: "Successful response",
2756
+ content: { "*/*": { schema: { $ref: "#/components/schemas/GoogleProtobufEmpty" } } },
2757
+ },
2758
+ },
2759
+ parameters: [
2760
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2761
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
2762
+ ],
2763
+ security: [
2764
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2765
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
2766
+ { apiKey: [] },
2767
+ ],
2768
+ tags: ["projects"],
2769
+ },
2770
+ get: {
2771
+ description: "Get a tenant. Requires read permission on the Tenant resource.",
2772
+ operationId: "identitytoolkit.projects.tenants.get",
2773
+ responses: {
2774
+ 200: {
2775
+ description: "Successful response",
2776
+ content: {
2777
+ "*/*": {
2778
+ schema: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2Tenant" },
2779
+ },
2780
+ },
2781
+ },
2782
+ },
2783
+ parameters: [
2784
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2785
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
2786
+ ],
2787
+ security: [
2788
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2789
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
2790
+ { apiKey: [] },
2791
+ ],
2792
+ tags: ["projects"],
2793
+ },
2794
+ patch: {
2795
+ description: "Update a tenant. Requires write permission on the Tenant resource.",
2796
+ operationId: "identitytoolkit.projects.tenants.patch",
2797
+ responses: {
2798
+ 200: {
2799
+ description: "Successful response",
2800
+ content: {
2801
+ "*/*": {
2802
+ schema: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2Tenant" },
2803
+ },
2804
+ },
2805
+ },
2806
+ },
2807
+ parameters: [
2808
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2809
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
2810
+ {
2811
+ name: "updateMask",
2812
+ in: "query",
2813
+ description: "If provided, only update fields set in the update mask. Otherwise, all settable fields will be updated. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
2814
+ schema: { type: "string" },
2815
+ },
2816
+ ],
2817
+ requestBody: { $ref: "#/components/requestBodies/GoogleCloudIdentitytoolkitAdminV2Tenant" },
2818
+ security: [
2819
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2820
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
2821
+ { apiKey: [] },
2822
+ ],
2823
+ tags: ["projects"],
2824
+ },
2825
+ parameters: [
2826
+ { $ref: "#/components/parameters/access_token" },
2827
+ { $ref: "#/components/parameters/alt" },
2828
+ { $ref: "#/components/parameters/callback" },
2829
+ { $ref: "#/components/parameters/fields" },
2830
+ { $ref: "#/components/parameters/oauth_token" },
2831
+ { $ref: "#/components/parameters/prettyPrint" },
2832
+ { $ref: "#/components/parameters/quotaUser" },
2833
+ { $ref: "#/components/parameters/uploadType" },
2834
+ { $ref: "#/components/parameters/upload_protocol" },
2835
+ ],
2836
+ },
2837
+ "/v2/projects/{targetProjectId}/tenants/{tenantId}:getIamPolicy": {
2838
+ post: {
2839
+ description: "Gets the access control policy for a resource. An error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it. Caller must have the right Google IAM permission on the resource.",
2840
+ operationId: "identitytoolkit.projects.tenants.getIamPolicy",
2841
+ responses: {
2842
+ 200: {
2843
+ description: "Successful response",
2844
+ content: { "*/*": { schema: { $ref: "#/components/schemas/GoogleIamV1Policy" } } },
2845
+ },
2846
+ },
2847
+ parameters: [
2848
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2849
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
2850
+ ],
2851
+ requestBody: {
2852
+ content: {
2853
+ "application/json": {
2854
+ schema: { $ref: "#/components/schemas/GoogleIamV1GetIamPolicyRequest" },
2855
+ },
2856
+ },
2857
+ },
2858
+ security: [
2859
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2860
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
2861
+ { apiKey: [] },
2862
+ ],
2863
+ tags: ["projects"],
2864
+ },
2865
+ parameters: [
2866
+ { $ref: "#/components/parameters/access_token" },
2867
+ { $ref: "#/components/parameters/alt" },
2868
+ { $ref: "#/components/parameters/callback" },
2869
+ { $ref: "#/components/parameters/fields" },
2870
+ { $ref: "#/components/parameters/oauth_token" },
2871
+ { $ref: "#/components/parameters/prettyPrint" },
2872
+ { $ref: "#/components/parameters/quotaUser" },
2873
+ { $ref: "#/components/parameters/uploadType" },
2874
+ { $ref: "#/components/parameters/upload_protocol" },
2875
+ ],
2876
+ },
2877
+ "/v2/projects/{targetProjectId}/tenants/{tenantId}:setIamPolicy": {
2878
+ post: {
2879
+ description: "Sets the access control policy for a resource. If the policy exists, it is replaced. Caller must have the right Google IAM permission on the resource.",
2880
+ operationId: "identitytoolkit.projects.tenants.setIamPolicy",
2881
+ responses: {
2882
+ 200: {
2883
+ description: "Successful response",
2884
+ content: { "*/*": { schema: { $ref: "#/components/schemas/GoogleIamV1Policy" } } },
2885
+ },
2886
+ },
2887
+ parameters: [
2888
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2889
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
2890
+ ],
2891
+ requestBody: {
2892
+ content: {
2893
+ "application/json": {
2894
+ schema: { $ref: "#/components/schemas/GoogleIamV1SetIamPolicyRequest" },
2895
+ },
2896
+ },
2897
+ },
2898
+ security: [
2899
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2900
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
2901
+ { apiKey: [] },
2902
+ ],
2903
+ tags: ["projects"],
2904
+ },
2905
+ parameters: [
2906
+ { $ref: "#/components/parameters/access_token" },
2907
+ { $ref: "#/components/parameters/alt" },
2908
+ { $ref: "#/components/parameters/callback" },
2909
+ { $ref: "#/components/parameters/fields" },
2910
+ { $ref: "#/components/parameters/oauth_token" },
2911
+ { $ref: "#/components/parameters/prettyPrint" },
2912
+ { $ref: "#/components/parameters/quotaUser" },
2913
+ { $ref: "#/components/parameters/uploadType" },
2914
+ { $ref: "#/components/parameters/upload_protocol" },
2915
+ ],
2916
+ },
2917
+ "/v2/projects/{targetProjectId}/tenants/{tenantId}:testIamPermissions": {
2918
+ post: {
2919
+ description: "Returns the caller's permissions on a resource. An error is returned if the resource does not exist. A caller is not required to have Google IAM permission to make this request.",
2920
+ operationId: "identitytoolkit.projects.tenants.testIamPermissions",
2921
+ responses: {
2922
+ 200: {
2923
+ description: "Successful response",
2924
+ content: {
2925
+ "*/*": {
2926
+ schema: { $ref: "#/components/schemas/GoogleIamV1TestIamPermissionsResponse" },
2927
+ },
2928
+ },
2929
+ },
2930
+ },
2931
+ parameters: [
2932
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2933
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
2934
+ ],
2935
+ requestBody: {
2936
+ content: {
2937
+ "application/json": {
2938
+ schema: { $ref: "#/components/schemas/GoogleIamV1TestIamPermissionsRequest" },
2939
+ },
2940
+ },
2941
+ },
2942
+ security: [
2943
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2944
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
2945
+ { apiKey: [] },
2946
+ ],
2947
+ tags: ["projects"],
2948
+ },
2949
+ parameters: [
2950
+ { $ref: "#/components/parameters/access_token" },
2951
+ { $ref: "#/components/parameters/alt" },
2952
+ { $ref: "#/components/parameters/callback" },
2953
+ { $ref: "#/components/parameters/fields" },
2954
+ { $ref: "#/components/parameters/oauth_token" },
2955
+ { $ref: "#/components/parameters/prettyPrint" },
2956
+ { $ref: "#/components/parameters/quotaUser" },
2957
+ { $ref: "#/components/parameters/uploadType" },
2958
+ { $ref: "#/components/parameters/upload_protocol" },
2959
+ ],
2960
+ },
2961
+ "/v2/projects/{targetProjectId}/tenants/{tenantId}/defaultSupportedIdpConfigs": {
2962
+ post: {
2963
+ description: "Create a default supported Idp configuration for an Identity Toolkit project.",
2964
+ operationId: "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.create",
2965
+ responses: {
2966
+ 200: {
2967
+ description: "Successful response",
2968
+ content: {
2969
+ "*/*": {
2970
+ schema: {
2971
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig",
2972
+ },
2973
+ },
2974
+ },
2975
+ },
2976
+ },
2977
+ parameters: [
2978
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
2979
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
2980
+ {
2981
+ name: "idpId",
2982
+ in: "query",
2983
+ description: "The id of the Idp to create a config for. Call ListDefaultSupportedIdps for list of all default supported Idps.",
2984
+ schema: { type: "string" },
2985
+ },
2986
+ ],
2987
+ requestBody: {
2988
+ $ref: "#/components/requestBodies/GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig",
2989
+ },
2990
+ security: [
2991
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2992
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
2993
+ { apiKey: [] },
2994
+ ],
2995
+ tags: ["projects"],
2996
+ },
2997
+ get: {
2998
+ description: "List all default supported Idp configurations for an Identity Toolkit project.",
2999
+ operationId: "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.list",
3000
+ responses: {
3001
+ 200: {
3002
+ description: "Successful response",
3003
+ content: {
3004
+ "*/*": {
3005
+ schema: {
3006
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse",
3007
+ },
3008
+ },
3009
+ },
3010
+ },
3011
+ },
3012
+ parameters: [
3013
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
3014
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
3015
+ {
3016
+ name: "pageSize",
3017
+ in: "query",
3018
+ description: "The maximum number of items to return.",
3019
+ schema: { type: "integer" },
3020
+ },
3021
+ {
3022
+ name: "pageToken",
3023
+ in: "query",
3024
+ description: "The next_page_token value returned from a previous List request, if any.",
3025
+ schema: { type: "string" },
3026
+ },
3027
+ ],
3028
+ security: [
3029
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
3030
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
3031
+ { apiKey: [] },
3032
+ ],
3033
+ tags: ["projects"],
3034
+ },
3035
+ parameters: [
3036
+ { $ref: "#/components/parameters/access_token" },
3037
+ { $ref: "#/components/parameters/alt" },
3038
+ { $ref: "#/components/parameters/callback" },
3039
+ { $ref: "#/components/parameters/fields" },
3040
+ { $ref: "#/components/parameters/oauth_token" },
3041
+ { $ref: "#/components/parameters/prettyPrint" },
3042
+ { $ref: "#/components/parameters/quotaUser" },
3043
+ { $ref: "#/components/parameters/uploadType" },
3044
+ { $ref: "#/components/parameters/upload_protocol" },
3045
+ ],
3046
+ },
3047
+ "/v2/projects/{targetProjectId}/tenants/{tenantId}/defaultSupportedIdpConfigs/{defaultSupportedIdpConfigsId}": {
3048
+ delete: {
3049
+ description: "Delete a default supported Idp configuration for an Identity Toolkit project.",
3050
+ operationId: "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.delete",
3051
+ responses: {
3052
+ 200: {
3053
+ description: "Successful response",
3054
+ content: { "*/*": { schema: { $ref: "#/components/schemas/GoogleProtobufEmpty" } } },
3055
+ },
3056
+ },
3057
+ parameters: [
3058
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
3059
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
3060
+ {
3061
+ name: "defaultSupportedIdpConfigsId",
3062
+ in: "path",
3063
+ required: true,
3064
+ schema: { type: "string" },
3065
+ },
3066
+ ],
3067
+ security: [
3068
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
3069
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
3070
+ { apiKey: [] },
3071
+ ],
3072
+ tags: ["projects"],
3073
+ },
3074
+ get: {
3075
+ description: "Retrieve a default supported Idp configuration for an Identity Toolkit project.",
3076
+ operationId: "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.get",
3077
+ responses: {
3078
+ 200: {
3079
+ description: "Successful response",
3080
+ content: {
3081
+ "*/*": {
3082
+ schema: {
3083
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig",
3084
+ },
3085
+ },
3086
+ },
3087
+ },
3088
+ },
3089
+ parameters: [
3090
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
3091
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
3092
+ {
3093
+ name: "defaultSupportedIdpConfigsId",
3094
+ in: "path",
3095
+ required: true,
3096
+ schema: { type: "string" },
3097
+ },
3098
+ ],
3099
+ security: [
3100
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
3101
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
3102
+ { apiKey: [] },
3103
+ ],
3104
+ tags: ["projects"],
3105
+ },
3106
+ patch: {
3107
+ description: "Update a default supported Idp configuration for an Identity Toolkit project.",
3108
+ operationId: "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.patch",
3109
+ responses: {
3110
+ 200: {
3111
+ description: "Successful response",
3112
+ content: {
3113
+ "*/*": {
3114
+ schema: {
3115
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig",
3116
+ },
3117
+ },
3118
+ },
3119
+ },
3120
+ },
3121
+ parameters: [
3122
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
3123
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
2428
3124
  {
2429
- name: "parent",
3125
+ name: "defaultSupportedIdpConfigsId",
2430
3126
  in: "path",
2431
- description: 'The parent resource name, for example, "projects/my-awesome-project".',
2432
3127
  required: true,
2433
3128
  schema: { type: "string" },
2434
3129
  },
3130
+ {
3131
+ name: "updateMask",
3132
+ in: "query",
3133
+ description: "The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
3134
+ schema: { type: "string" },
3135
+ },
3136
+ ],
3137
+ requestBody: {
3138
+ $ref: "#/components/requestBodies/GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig",
3139
+ },
3140
+ security: [
3141
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
3142
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
3143
+ { apiKey: [] },
3144
+ ],
3145
+ tags: ["projects"],
3146
+ },
3147
+ parameters: [
3148
+ { $ref: "#/components/parameters/access_token" },
3149
+ { $ref: "#/components/parameters/alt" },
3150
+ { $ref: "#/components/parameters/callback" },
3151
+ { $ref: "#/components/parameters/fields" },
3152
+ { $ref: "#/components/parameters/oauth_token" },
3153
+ { $ref: "#/components/parameters/prettyPrint" },
3154
+ { $ref: "#/components/parameters/quotaUser" },
3155
+ { $ref: "#/components/parameters/uploadType" },
3156
+ { $ref: "#/components/parameters/upload_protocol" },
3157
+ ],
3158
+ },
3159
+ "/v2/projects/{targetProjectId}/tenants/{tenantId}/inboundSamlConfigs": {
3160
+ post: {
3161
+ description: "Create an inbound SAML configuration for an Identity Toolkit project.",
3162
+ operationId: "identitytoolkit.projects.tenants.inboundSamlConfigs.create",
3163
+ responses: {
3164
+ 200: {
3165
+ description: "Successful response",
3166
+ content: {
3167
+ "*/*": {
3168
+ schema: {
3169
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig",
3170
+ },
3171
+ },
3172
+ },
3173
+ },
3174
+ },
3175
+ parameters: [
3176
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
3177
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
3178
+ {
3179
+ name: "inboundSamlConfigId",
3180
+ in: "query",
3181
+ description: "The id to use for this config.",
3182
+ schema: { type: "string" },
3183
+ },
3184
+ ],
3185
+ requestBody: {
3186
+ $ref: "#/components/requestBodies/GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig",
3187
+ },
3188
+ security: [
3189
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
3190
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
3191
+ { apiKey: [] },
3192
+ ],
3193
+ tags: ["projects"],
3194
+ },
3195
+ get: {
3196
+ description: "List all inbound SAML configurations for an Identity Toolkit project.",
3197
+ operationId: "identitytoolkit.projects.tenants.inboundSamlConfigs.list",
3198
+ responses: {
3199
+ 200: {
3200
+ description: "Successful response",
3201
+ content: {
3202
+ "*/*": {
3203
+ schema: {
3204
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse",
3205
+ },
3206
+ },
3207
+ },
3208
+ },
3209
+ },
3210
+ parameters: [
3211
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
3212
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
2435
3213
  {
2436
3214
  name: "pageSize",
2437
3215
  in: "query",
@@ -2439,12 +3217,109 @@ exports.default = {
2439
3217
  schema: { type: "integer" },
2440
3218
  },
2441
3219
  {
2442
- name: "pageToken",
3220
+ name: "pageToken",
3221
+ in: "query",
3222
+ description: "The next_page_token value returned from a previous List request, if any.",
3223
+ schema: { type: "string" },
3224
+ },
3225
+ ],
3226
+ security: [
3227
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
3228
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
3229
+ { apiKey: [] },
3230
+ ],
3231
+ tags: ["projects"],
3232
+ },
3233
+ parameters: [
3234
+ { $ref: "#/components/parameters/access_token" },
3235
+ { $ref: "#/components/parameters/alt" },
3236
+ { $ref: "#/components/parameters/callback" },
3237
+ { $ref: "#/components/parameters/fields" },
3238
+ { $ref: "#/components/parameters/oauth_token" },
3239
+ { $ref: "#/components/parameters/prettyPrint" },
3240
+ { $ref: "#/components/parameters/quotaUser" },
3241
+ { $ref: "#/components/parameters/uploadType" },
3242
+ { $ref: "#/components/parameters/upload_protocol" },
3243
+ ],
3244
+ },
3245
+ "/v2/projects/{targetProjectId}/tenants/{tenantId}/inboundSamlConfigs/{inboundSamlConfigsId}": {
3246
+ delete: {
3247
+ description: "Delete an inbound SAML configuration for an Identity Toolkit project.",
3248
+ operationId: "identitytoolkit.projects.tenants.inboundSamlConfigs.delete",
3249
+ responses: {
3250
+ 200: {
3251
+ description: "Successful response",
3252
+ content: { "*/*": { schema: { $ref: "#/components/schemas/GoogleProtobufEmpty" } } },
3253
+ },
3254
+ },
3255
+ parameters: [
3256
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
3257
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
3258
+ { name: "inboundSamlConfigsId", in: "path", required: true, schema: { type: "string" } },
3259
+ ],
3260
+ security: [
3261
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
3262
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
3263
+ { apiKey: [] },
3264
+ ],
3265
+ tags: ["projects"],
3266
+ },
3267
+ get: {
3268
+ description: "Retrieve an inbound SAML configuration for an Identity Toolkit project.",
3269
+ operationId: "identitytoolkit.projects.tenants.inboundSamlConfigs.get",
3270
+ responses: {
3271
+ 200: {
3272
+ description: "Successful response",
3273
+ content: {
3274
+ "*/*": {
3275
+ schema: {
3276
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig",
3277
+ },
3278
+ },
3279
+ },
3280
+ },
3281
+ },
3282
+ parameters: [
3283
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
3284
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
3285
+ { name: "inboundSamlConfigsId", in: "path", required: true, schema: { type: "string" } },
3286
+ ],
3287
+ security: [
3288
+ { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
3289
+ { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
3290
+ { apiKey: [] },
3291
+ ],
3292
+ tags: ["projects"],
3293
+ },
3294
+ patch: {
3295
+ description: "Update an inbound SAML configuration for an Identity Toolkit project.",
3296
+ operationId: "identitytoolkit.projects.tenants.inboundSamlConfigs.patch",
3297
+ responses: {
3298
+ 200: {
3299
+ description: "Successful response",
3300
+ content: {
3301
+ "*/*": {
3302
+ schema: {
3303
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig",
3304
+ },
3305
+ },
3306
+ },
3307
+ },
3308
+ },
3309
+ parameters: [
3310
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
3311
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
3312
+ { name: "inboundSamlConfigsId", in: "path", required: true, schema: { type: "string" } },
3313
+ {
3314
+ name: "updateMask",
2443
3315
  in: "query",
2444
- description: "The next_page_token value returned from a previous List request, if any.",
3316
+ description: "The update mask applies to the resource. Empty update mask will result in updating nothing. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
2445
3317
  schema: { type: "string" },
2446
3318
  },
2447
3319
  ],
3320
+ requestBody: {
3321
+ $ref: "#/components/requestBodies/GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig",
3322
+ },
2448
3323
  security: [
2449
3324
  { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2450
3325
  { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
@@ -2464,35 +3339,34 @@ exports.default = {
2464
3339
  { $ref: "#/components/parameters/upload_protocol" },
2465
3340
  ],
2466
3341
  },
2467
- "/v2/{parent}/tenants": {
3342
+ "/v2/projects/{targetProjectId}/tenants/{tenantId}/oauthIdpConfigs": {
2468
3343
  post: {
2469
- description: "Create a tenant. Requires write permission on the Agent project.",
2470
- operationId: "identitytoolkit.projects.tenants.create",
3344
+ description: "Create an Oidc Idp configuration for an Identity Toolkit project.",
3345
+ operationId: "identitytoolkit.projects.tenants.oauthIdpConfigs.create",
2471
3346
  responses: {
2472
3347
  200: {
2473
3348
  description: "Successful response",
2474
3349
  content: {
2475
3350
  "*/*": {
2476
- schema: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2Tenant" },
3351
+ schema: {
3352
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig",
3353
+ },
2477
3354
  },
2478
3355
  },
2479
3356
  },
2480
3357
  },
2481
3358
  parameters: [
3359
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
3360
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
2482
3361
  {
2483
- name: "parent",
2484
- in: "path",
2485
- description: 'The parent resource name where the tenant will be created. For example, "projects/project1".',
2486
- required: true,
3362
+ name: "oauthIdpConfigId",
3363
+ in: "query",
3364
+ description: "The id to use for this config.",
2487
3365
  schema: { type: "string" },
2488
3366
  },
2489
3367
  ],
2490
3368
  requestBody: {
2491
- content: {
2492
- "application/json": {
2493
- schema: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2Tenant" },
2494
- },
2495
- },
3369
+ $ref: "#/components/requestBodies/GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig",
2496
3370
  },
2497
3371
  security: [
2498
3372
  { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
@@ -2502,38 +3376,33 @@ exports.default = {
2502
3376
  tags: ["projects"],
2503
3377
  },
2504
3378
  get: {
2505
- description: "List tenants under the given agent project. Requires read permission on the Agent project.",
2506
- operationId: "identitytoolkit.projects.tenants.list",
3379
+ description: "List all Oidc Idp configurations for an Identity Toolkit project.",
3380
+ operationId: "identitytoolkit.projects.tenants.oauthIdpConfigs.list",
2507
3381
  responses: {
2508
3382
  200: {
2509
3383
  description: "Successful response",
2510
3384
  content: {
2511
3385
  "*/*": {
2512
3386
  schema: {
2513
- $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse",
3387
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse",
2514
3388
  },
2515
3389
  },
2516
3390
  },
2517
3391
  },
2518
3392
  },
2519
3393
  parameters: [
2520
- {
2521
- name: "parent",
2522
- in: "path",
2523
- description: "Required. The parent resource name to list tenants for.",
2524
- required: true,
2525
- schema: { type: "string" },
2526
- },
3394
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
3395
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
2527
3396
  {
2528
3397
  name: "pageSize",
2529
3398
  in: "query",
2530
- description: "The maximum number of results to return, capped at 1000. If not specified, the default value is 20.",
3399
+ description: "The maximum number of items to return.",
2531
3400
  schema: { type: "integer" },
2532
3401
  },
2533
3402
  {
2534
3403
  name: "pageToken",
2535
3404
  in: "query",
2536
- description: "The pagination token from the response of a previous request.",
3405
+ description: "The next_page_token value returned from a previous List request, if any.",
2537
3406
  schema: { type: "string" },
2538
3407
  },
2539
3408
  ],
@@ -2556,32 +3425,21 @@ exports.default = {
2556
3425
  { $ref: "#/components/parameters/upload_protocol" },
2557
3426
  ],
2558
3427
  },
2559
- "/v2/{resource}:getIamPolicy": {
2560
- post: {
2561
- description: "Gets the access control policy for a resource. An error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it. Caller must have the right Google IAM permission on the resource.",
2562
- operationId: "identitytoolkit.projects.tenants.getIamPolicy",
3428
+ "/v2/projects/{targetProjectId}/tenants/{tenantId}/oauthIdpConfigs/{oauthIdpConfigsId}": {
3429
+ delete: {
3430
+ description: "Delete an Oidc Idp configuration for an Identity Toolkit project.",
3431
+ operationId: "identitytoolkit.projects.tenants.oauthIdpConfigs.delete",
2563
3432
  responses: {
2564
3433
  200: {
2565
3434
  description: "Successful response",
2566
- content: { "*/*": { schema: { $ref: "#/components/schemas/GoogleIamV1Policy" } } },
3435
+ content: { "*/*": { schema: { $ref: "#/components/schemas/GoogleProtobufEmpty" } } },
2567
3436
  },
2568
3437
  },
2569
3438
  parameters: [
2570
- {
2571
- name: "resource",
2572
- in: "path",
2573
- description: "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.",
2574
- required: true,
2575
- schema: { type: "string" },
2576
- },
3439
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
3440
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
3441
+ { name: "oauthIdpConfigsId", in: "path", required: true, schema: { type: "string" } },
2577
3442
  ],
2578
- requestBody: {
2579
- content: {
2580
- "application/json": {
2581
- schema: { $ref: "#/components/schemas/GoogleIamV1GetIamPolicyRequest" },
2582
- },
2583
- },
2584
- },
2585
3443
  security: [
2586
3444
  { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2587
3445
  { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
@@ -2589,44 +3447,26 @@ exports.default = {
2589
3447
  ],
2590
3448
  tags: ["projects"],
2591
3449
  },
2592
- parameters: [
2593
- { $ref: "#/components/parameters/access_token" },
2594
- { $ref: "#/components/parameters/alt" },
2595
- { $ref: "#/components/parameters/callback" },
2596
- { $ref: "#/components/parameters/fields" },
2597
- { $ref: "#/components/parameters/oauth_token" },
2598
- { $ref: "#/components/parameters/prettyPrint" },
2599
- { $ref: "#/components/parameters/quotaUser" },
2600
- { $ref: "#/components/parameters/uploadType" },
2601
- { $ref: "#/components/parameters/upload_protocol" },
2602
- ],
2603
- },
2604
- "/v2/{resource}:setIamPolicy": {
2605
- post: {
2606
- description: "Sets the access control policy for a resource. If the policy exists, it is replaced. Caller must have the right Google IAM permission on the resource.",
2607
- operationId: "identitytoolkit.projects.tenants.setIamPolicy",
3450
+ get: {
3451
+ description: "Retrieve an Oidc Idp configuration for an Identity Toolkit project.",
3452
+ operationId: "identitytoolkit.projects.tenants.oauthIdpConfigs.get",
2608
3453
  responses: {
2609
3454
  200: {
2610
3455
  description: "Successful response",
2611
- content: { "*/*": { schema: { $ref: "#/components/schemas/GoogleIamV1Policy" } } },
3456
+ content: {
3457
+ "*/*": {
3458
+ schema: {
3459
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig",
3460
+ },
3461
+ },
3462
+ },
2612
3463
  },
2613
3464
  },
2614
3465
  parameters: [
2615
- {
2616
- name: "resource",
2617
- in: "path",
2618
- description: "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.",
2619
- required: true,
2620
- schema: { type: "string" },
2621
- },
3466
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
3467
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
3468
+ { name: "oauthIdpConfigsId", in: "path", required: true, schema: { type: "string" } },
2622
3469
  ],
2623
- requestBody: {
2624
- content: {
2625
- "application/json": {
2626
- schema: { $ref: "#/components/schemas/GoogleIamV1SetIamPolicyRequest" },
2627
- },
2628
- },
2629
- },
2630
3470
  security: [
2631
3471
  { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
2632
3472
  { Oauth2: ["https://www.googleapis.com/auth/firebase"] },
@@ -2634,47 +3474,34 @@ exports.default = {
2634
3474
  ],
2635
3475
  tags: ["projects"],
2636
3476
  },
2637
- parameters: [
2638
- { $ref: "#/components/parameters/access_token" },
2639
- { $ref: "#/components/parameters/alt" },
2640
- { $ref: "#/components/parameters/callback" },
2641
- { $ref: "#/components/parameters/fields" },
2642
- { $ref: "#/components/parameters/oauth_token" },
2643
- { $ref: "#/components/parameters/prettyPrint" },
2644
- { $ref: "#/components/parameters/quotaUser" },
2645
- { $ref: "#/components/parameters/uploadType" },
2646
- { $ref: "#/components/parameters/upload_protocol" },
2647
- ],
2648
- },
2649
- "/v2/{resource}:testIamPermissions": {
2650
- post: {
2651
- description: "Returns the caller's permissions on a resource. An error is returned if the resource does not exist. A caller is not required to have Google IAM permission to make this request.",
2652
- operationId: "identitytoolkit.projects.tenants.testIamPermissions",
3477
+ patch: {
3478
+ description: "Update an Oidc Idp configuration for an Identity Toolkit project.",
3479
+ operationId: "identitytoolkit.projects.tenants.oauthIdpConfigs.patch",
2653
3480
  responses: {
2654
3481
  200: {
2655
3482
  description: "Successful response",
2656
3483
  content: {
2657
3484
  "*/*": {
2658
- schema: { $ref: "#/components/schemas/GoogleIamV1TestIamPermissionsResponse" },
3485
+ schema: {
3486
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig",
3487
+ },
2659
3488
  },
2660
3489
  },
2661
3490
  },
2662
3491
  },
2663
3492
  parameters: [
3493
+ { name: "targetProjectId", in: "path", required: true, schema: { type: "string" } },
3494
+ { name: "tenantId", in: "path", required: true, schema: { type: "string" } },
3495
+ { name: "oauthIdpConfigsId", in: "path", required: true, schema: { type: "string" } },
2664
3496
  {
2665
- name: "resource",
2666
- in: "path",
2667
- description: "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.",
2668
- required: true,
3497
+ name: "updateMask",
3498
+ in: "query",
3499
+ description: "The update mask applies to the resource. Empty update mask will result in updating nothing. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
2669
3500
  schema: { type: "string" },
2670
3501
  },
2671
3502
  ],
2672
3503
  requestBody: {
2673
- content: {
2674
- "application/json": {
2675
- schema: { $ref: "#/components/schemas/GoogleIamV1TestIamPermissionsRequest" },
2676
- },
2677
- },
3504
+ $ref: "#/components/requestBodies/GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig",
2678
3505
  },
2679
3506
  security: [
2680
3507
  { Oauth2: ["https://www.googleapis.com/auth/cloud-platform"] },
@@ -2753,6 +3580,37 @@ exports.default = {
2753
3580
  tags: ["emulator"],
2754
3581
  },
2755
3582
  },
3583
+ "/emulator/v1/projects/{targetProjectId}/tenants/{tenantId}/accounts": {
3584
+ parameters: [
3585
+ {
3586
+ name: "targetProjectId",
3587
+ in: "path",
3588
+ description: "The ID of the Google Cloud project that the accounts belong to.",
3589
+ required: true,
3590
+ schema: { type: "string" },
3591
+ },
3592
+ {
3593
+ name: "tenantId",
3594
+ in: "path",
3595
+ description: "The ID of the Identity Platform tenant the accounts belongs to. If not specified, accounts on the Identity Platform project are returned.",
3596
+ required: true,
3597
+ schema: { type: "string" },
3598
+ },
3599
+ ],
3600
+ servers: [{ url: "" }],
3601
+ delete: {
3602
+ description: "Remove all accounts in the project, regardless of state.",
3603
+ operationId: "emulator.projects.accounts.delete",
3604
+ responses: {
3605
+ 200: {
3606
+ description: "Successful response",
3607
+ content: { "application/json": { schema: { type: "object" } } },
3608
+ },
3609
+ },
3610
+ security: [],
3611
+ tags: ["emulator"],
3612
+ },
3613
+ },
2756
3614
  "/emulator/v1/projects/{targetProjectId}/config": {
2757
3615
  parameters: [
2758
3616
  {
@@ -2832,6 +3690,41 @@ exports.default = {
2832
3690
  tags: ["emulator"],
2833
3691
  },
2834
3692
  },
3693
+ "/emulator/v1/projects/{targetProjectId}/tenants/{tenantId}/oobCodes": {
3694
+ parameters: [
3695
+ {
3696
+ name: "targetProjectId",
3697
+ in: "path",
3698
+ description: "The ID of the Google Cloud project that the confirmation codes belongs to.",
3699
+ required: true,
3700
+ schema: { type: "string" },
3701
+ },
3702
+ {
3703
+ name: "tenantId",
3704
+ in: "path",
3705
+ description: "The ID of the Identity Platform tenant the accounts belongs to. If not specified, accounts on the Identity Platform project are returned.",
3706
+ required: true,
3707
+ schema: { type: "string" },
3708
+ },
3709
+ ],
3710
+ servers: [{ url: "" }],
3711
+ get: {
3712
+ description: "List all pending confirmation codes for the project.",
3713
+ operationId: "emulator.projects.oobCodes.list",
3714
+ responses: {
3715
+ 200: {
3716
+ description: "Successful response",
3717
+ content: {
3718
+ "application/json": {
3719
+ schema: { $ref: "#/components/schemas/EmulatorV1ProjectsOobCodes" },
3720
+ },
3721
+ },
3722
+ },
3723
+ },
3724
+ security: [],
3725
+ tags: ["emulator"],
3726
+ },
3727
+ },
2835
3728
  "/emulator/v1/projects/{targetProjectId}/verificationCodes": {
2836
3729
  parameters: [
2837
3730
  {
@@ -2859,10 +3752,86 @@ exports.default = {
2859
3752
  security: [],
2860
3753
  tags: ["emulator"],
2861
3754
  },
2862
- },
2863
- },
2864
- components: {
2865
- schemas: {
3755
+ },
3756
+ "/emulator/v1/projects/{targetProjectId}/tenants/{tenantId}/verificationCodes": {
3757
+ parameters: [
3758
+ {
3759
+ name: "targetProjectId",
3760
+ in: "path",
3761
+ description: "The ID of the Google Cloud project that the verification codes belongs to.",
3762
+ required: true,
3763
+ schema: { type: "string" },
3764
+ },
3765
+ {
3766
+ name: "tenantId",
3767
+ in: "path",
3768
+ description: "The ID of the Identity Platform tenant the accounts belongs to. If not specified, accounts on the Identity Platform project are returned.",
3769
+ required: true,
3770
+ schema: { type: "string" },
3771
+ },
3772
+ ],
3773
+ servers: [{ url: "" }],
3774
+ get: {
3775
+ description: "List all pending phone verification codes for the project.",
3776
+ operationId: "emulator.projects.verificationCodes.list",
3777
+ responses: {
3778
+ 200: {
3779
+ description: "Successful response",
3780
+ content: {
3781
+ "application/json": {
3782
+ schema: { $ref: "#/components/schemas/EmulatorV1ProjectsOobCodes" },
3783
+ },
3784
+ },
3785
+ },
3786
+ },
3787
+ security: [],
3788
+ tags: ["emulator"],
3789
+ },
3790
+ },
3791
+ },
3792
+ components: {
3793
+ schemas: {
3794
+ GoogleCloudIdentitytoolkitV1Argon2Parameters: {
3795
+ description: "The parameters for Argon2 hashing algorithm.",
3796
+ properties: {
3797
+ associatedData: {
3798
+ description: "The additional associated data, if provided, is appended to the hash value to provide an additional layer of security. A base64-encoded string if specified via JSON.",
3799
+ format: "byte",
3800
+ type: "string",
3801
+ },
3802
+ hashLengthBytes: {
3803
+ description: "Required. The desired hash length in bytes. Minimum is 4 and maximum is 1024.",
3804
+ format: "int32",
3805
+ type: "integer",
3806
+ },
3807
+ hashType: {
3808
+ description: "Required. Must not be HASH_TYPE_UNSPECIFIED.",
3809
+ enum: ["HASH_TYPE_UNSPECIFIED", "ARGON2_D", "ARGON2_ID", "ARGON2_I"],
3810
+ type: "string",
3811
+ },
3812
+ iterations: {
3813
+ description: "Required. The number of iterations to perform. Minimum is 1, maximum is 16.",
3814
+ format: "int32",
3815
+ type: "integer",
3816
+ },
3817
+ memoryCostKib: {
3818
+ description: "Required. The memory cost in kibibytes. Maximum is 32768.",
3819
+ format: "int32",
3820
+ type: "integer",
3821
+ },
3822
+ parallelism: {
3823
+ description: "Required. The degree of parallelism, also called threads or lanes. Minimum is 1, maximum is 16.",
3824
+ format: "int32",
3825
+ type: "integer",
3826
+ },
3827
+ version: {
3828
+ description: "The version of the Argon2 algorithm. This defaults to VERSION_13 if not specified.",
3829
+ enum: ["VERSION_UNSPECIFIED", "VERSION_10", "VERSION_13"],
3830
+ type: "string",
3831
+ },
3832
+ },
3833
+ type: "object",
3834
+ },
2866
3835
  GoogleCloudIdentitytoolkitV1AutoRetrievalInfo: {
2867
3836
  description: "The information required to auto-retrieve an SMS.",
2868
3837
  properties: {
@@ -4040,7 +5009,7 @@ exports.default = {
4040
5009
  type: "string",
4041
5010
  },
4042
5011
  postBody: {
4043
- description: "If the user is signing in with an authorization response obtained via a previous CreateAuthUri authorization request, this is the body of the HTTP POST callback from the IdP, if present. Otherwise, if the user is signing in with a manually provided IdP credential, this should be a URL-encoded form that contains the credential (e.g. an ID token or access token for OAuth 2.0 IdPs) and the provider ID of the IdP that issued the credential. For example, if the user is signing in to the Google provider using a Google ID token, this should be set to `id_token=[GOOGLE_ID_TOKEN]&providerId=google.com`, where `[GOOGLE_ID_TOKEN]` should be replaced with the Google ID token. If the user is signing in to the Facebook provider using a Facebook access token, this should be set to `access_token=[FACEBOOK_ACCESS_TOKEN]&providerId=facebook.com`, where `[FACEBOOK_ACCESS_TOKEN]` should be replaced with the Facebook access token. If the user is signing in to the Twitter provider using a Twitter OAuth 1.0 credential, this should be set to `access_token=[TWITTER_ACCESS_TOKEN]&oauth_token_secret=[TWITTER_TOKEN_SECRET]&providerId=twitter.com`, where `[TWITTER_ACCESS_TOKEN]` and `[TWITTER_TOKEN_SECRET]` should be replaced with the Twitter OAuth access token and Twitter OAuth token secret respectively.",
5012
+ description: "If the user is signing in with an authorization response obtained via a previous CreateAuthUri authorization request, this is the body of the HTTP POST callback from the IdP, if present. Otherwise, if the user is signing in with a manually provided IdP credential, this should be a URL-encoded form that contains the credential (e.g. an ID token or access token for OAuth 2.0 IdPs) and the provider ID of the IdP that issued the credential. For example, if the user is signing in to the Google provider using a Google ID token, this should be set to `id_token=[GOOGLE_ID_TOKEN]&providerId=google.com`, where `[GOOGLE_ID_TOKEN]` should be replaced with the Google ID token. If the user is signing in to the Facebook provider using a Facebook authentication token, this should be set to `id_token=[FACEBOOK_AUTHENTICATION_TOKEN]&providerId=facebook.com&nonce= [NONCE]`, where `[FACEBOOK_AUTHENTICATION_TOKEN]` should be replaced with the Facebook authentication token. Nonce is required for validating the token. The request will fail if no nonce is provided. If the user is signing in to the Facebook provider using a Facebook access token, this should be set to `access_token=[FACEBOOK_ACCESS_TOKEN]&providerId=facebook.com`, where `[FACEBOOK_ACCESS_TOKEN]` should be replaced with the Facebook access token. If the user is signing in to the Twitter provider using a Twitter OAuth 1.0 credential, this should be set to `access_token=[TWITTER_ACCESS_TOKEN]&oauth_token_secret=[TWITTER_TOKEN_SECRET]&providerId=twitter.com`, where `[TWITTER_ACCESS_TOKEN]` and `[TWITTER_TOKEN_SECRET]` should be replaced with the Twitter OAuth access token and Twitter OAuth token secret respectively.",
4044
5013
  type: "string",
4045
5014
  },
4046
5015
  requestUri: {
@@ -4498,6 +5467,9 @@ exports.default = {
4498
5467
  description: "Whether to overwrite an existing account in Identity Platform with a matching `local_id` in the request. If true, the existing account will be overwritten. If false, an error will be returned.",
4499
5468
  type: "boolean",
4500
5469
  },
5470
+ argon2Parameters: {
5471
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitV1Argon2Parameters",
5472
+ },
4501
5473
  blockSize: {
4502
5474
  description: "The block size parameter used by the STANDARD_SCRYPT hashing function. This parameter, along with parallelization and cpu_mem_cost help tune the resources needed to hash a password, and should be tuned as processor speeds and memory technologies advance.",
4503
5475
  format: "int32",
@@ -4519,7 +5491,7 @@ exports.default = {
4519
5491
  type: "integer",
4520
5492
  },
4521
5493
  hashAlgorithm: {
4522
- description: "Required. The hashing function used to hash the account passwords. Must be one of the following: * HMAC_SHA256 * HMAC_SHA1 * HMAC_MD5 * SCRYPT * PBKDF_SHA1 * MD5 * HMAC_SHA512 * SHA1 * BCRYPT * PBKDF2_SHA256 * SHA256 * SHA512 * STANDARD_SCRYPT",
5494
+ description: "Required. The hashing function used to hash the account passwords. Must be one of the following: * HMAC_SHA256 * HMAC_SHA1 * HMAC_MD5 * SCRYPT * PBKDF_SHA1 * MD5 * HMAC_SHA512 * SHA1 * BCRYPT * PBKDF2_SHA256 * SHA256 * SHA512 * STANDARD_SCRYPT * ARGON2",
4523
5495
  type: "string",
4524
5496
  },
4525
5497
  memoryCost: {
@@ -4727,6 +5699,16 @@ exports.default = {
4727
5699
  },
4728
5700
  type: "object",
4729
5701
  },
5702
+ GoogleCloudIdentitytoolkitAdminV2Anonymous: {
5703
+ description: "Configuration options related to authenticating an anonymous user.",
5704
+ properties: {
5705
+ enabled: {
5706
+ description: "Whether anonymous user auth is enabled for the project or not.",
5707
+ type: "boolean",
5708
+ },
5709
+ },
5710
+ type: "object",
5711
+ },
4730
5712
  GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig: {
4731
5713
  description: "Additional config for SignInWithApple.",
4732
5714
  properties: {
@@ -4741,6 +5723,41 @@ exports.default = {
4741
5723
  },
4742
5724
  type: "object",
4743
5725
  },
5726
+ GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig: {
5727
+ description: "Configuration related to Blocking Functions.",
5728
+ properties: {
5729
+ forwardInboundCredentials: {
5730
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials",
5731
+ },
5732
+ triggers: {
5733
+ additionalProperties: {
5734
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2Trigger",
5735
+ },
5736
+ description: 'Map of Trigger to event type. Key should be one of the supported event types: "beforeCreate", "beforeSignIn"',
5737
+ type: "object",
5738
+ },
5739
+ },
5740
+ type: "object",
5741
+ },
5742
+ GoogleCloudIdentitytoolkitAdminV2ClientConfig: {
5743
+ description: "Options related to how clients making requests on behalf of a project should be configured.",
5744
+ properties: {
5745
+ apiKey: {
5746
+ description: "Output only. API key that can be used when making requests for this project.",
5747
+ readOnly: true,
5748
+ type: "string",
5749
+ },
5750
+ firebaseSubdomain: {
5751
+ description: "Output only. Firebase subdomain.",
5752
+ readOnly: true,
5753
+ type: "string",
5754
+ },
5755
+ permissions: {
5756
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2Permissions",
5757
+ },
5758
+ },
5759
+ type: "object",
5760
+ },
4744
5761
  GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig: {
4745
5762
  description: "Additional config for Apple for code flow.",
4746
5763
  properties: {
@@ -4753,6 +5770,46 @@ exports.default = {
4753
5770
  },
4754
5771
  type: "object",
4755
5772
  },
5773
+ GoogleCloudIdentitytoolkitAdminV2Config: {
5774
+ description: "Represents an Identity Toolkit project.",
5775
+ properties: {
5776
+ authorizedDomains: {
5777
+ description: "List of domains authorized for OAuth redirects",
5778
+ items: { type: "string" },
5779
+ type: "array",
5780
+ },
5781
+ blockingFunctions: {
5782
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig",
5783
+ },
5784
+ client: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2ClientConfig" },
5785
+ mfa: {
5786
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig",
5787
+ },
5788
+ monitoring: {
5789
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2MonitoringConfig",
5790
+ },
5791
+ multiTenant: {
5792
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig",
5793
+ },
5794
+ name: {
5795
+ description: 'Output only. The name of the Config resource. Example: "projects/my-awesome-project/config"',
5796
+ readOnly: true,
5797
+ type: "string",
5798
+ },
5799
+ notification: {
5800
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2NotificationConfig",
5801
+ },
5802
+ quota: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2QuotaConfig" },
5803
+ signIn: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2SignInConfig" },
5804
+ subtype: {
5805
+ description: "Output only. The subtype of this config.",
5806
+ enum: ["SUBTYPE_UNSPECIFIED", "IDENTITY_PLATFORM", "FIREBASE_AUTH"],
5807
+ readOnly: true,
5808
+ type: "string",
5809
+ },
5810
+ },
5811
+ type: "object",
5812
+ },
4756
5813
  GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp: {
4757
5814
  description: "Standard Identity Toolkit-trusted IDPs.",
4758
5815
  properties: {
@@ -4780,6 +5837,94 @@ exports.default = {
4780
5837
  },
4781
5838
  type: "object",
4782
5839
  },
5840
+ GoogleCloudIdentitytoolkitAdminV2DnsInfo: {
5841
+ description: "Information of custom domain DNS verification. By default, default_domain will be used. A custom domain can be configured using VerifyCustomDomain.",
5842
+ properties: {
5843
+ customDomain: {
5844
+ description: "Output only. The applied verified custom domain.",
5845
+ readOnly: true,
5846
+ type: "string",
5847
+ },
5848
+ customDomainState: {
5849
+ description: "Output only. The current verification state of the custom domain. The custom domain will only be used once the domain verification is successful.",
5850
+ enum: [
5851
+ "VERIFICATION_STATE_UNSPECIFIED",
5852
+ "NOT_STARTED",
5853
+ "IN_PROGRESS",
5854
+ "FAILED",
5855
+ "SUCCEEDED",
5856
+ ],
5857
+ readOnly: true,
5858
+ type: "string",
5859
+ },
5860
+ domainVerificationRequestTime: {
5861
+ description: "Output only. The timestamp of initial request for the current domain verification.",
5862
+ format: "google-datetime",
5863
+ readOnly: true,
5864
+ type: "string",
5865
+ },
5866
+ pendingCustomDomain: {
5867
+ description: "Output only. The custom domain that's to be verified.",
5868
+ readOnly: true,
5869
+ type: "string",
5870
+ },
5871
+ useCustomDomain: { description: "Whether to use custom domain.", type: "boolean" },
5872
+ },
5873
+ type: "object",
5874
+ },
5875
+ GoogleCloudIdentitytoolkitAdminV2Email: {
5876
+ description: "Configuration options related to authenticating a user by their email address.",
5877
+ properties: {
5878
+ enabled: {
5879
+ description: "Whether email auth is enabled for the project or not.",
5880
+ type: "boolean",
5881
+ },
5882
+ passwordRequired: {
5883
+ description: "Whether a password is required for email auth or not. If true, both an email and password must be provided to sign in. If false, a user may sign in via either email/password or email link.",
5884
+ type: "boolean",
5885
+ },
5886
+ },
5887
+ type: "object",
5888
+ },
5889
+ GoogleCloudIdentitytoolkitAdminV2EmailTemplate: {
5890
+ description: "Email template. The subject and body fields can contain the following placeholders which will be replaced with the appropriate values: %LINK% - The link to use to redeem the send OOB code. %EMAIL% - The email where the email is being sent. %NEW_EMAIL% - The new email being set for the account (when applicable). %APP_NAME% - The GCP project's display name. %DISPLAY_NAME% - The user's display name.",
5891
+ properties: {
5892
+ body: { description: "Email body", type: "string" },
5893
+ bodyFormat: {
5894
+ description: "Email body format",
5895
+ enum: ["BODY_FORMAT_UNSPECIFIED", "PLAIN_TEXT", "HTML"],
5896
+ type: "string",
5897
+ },
5898
+ customized: {
5899
+ description: "Output only. Whether the body or subject of the email is customized.",
5900
+ readOnly: true,
5901
+ type: "boolean",
5902
+ },
5903
+ replyTo: { description: "Reply-to address", type: "string" },
5904
+ senderDisplayName: { description: "Sender display name", type: "string" },
5905
+ senderLocalPart: { description: "Local part of From address", type: "string" },
5906
+ subject: { description: "Subject of the email", type: "string" },
5907
+ },
5908
+ type: "object",
5909
+ },
5910
+ GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials: {
5911
+ description: "Indicates which credentials to pass to the registered Blocking Functions.",
5912
+ properties: {
5913
+ accessToken: {
5914
+ description: "Whether to pass the user's OAuth identity provider's access token.",
5915
+ type: "boolean",
5916
+ },
5917
+ idToken: {
5918
+ description: "Whether to pass the user's OIDC identity provider's ID token.",
5919
+ type: "boolean",
5920
+ },
5921
+ refreshToken: {
5922
+ description: "Whether to pass the user's OAuth identity provider's refresh token.",
5923
+ type: "boolean",
5924
+ },
5925
+ },
5926
+ type: "object",
5927
+ },
4783
5928
  GoogleCloudIdentitytoolkitAdminV2HashConfig: {
4784
5929
  description: "History information of the hash algorithm and key. Different accounts' passwords may be generated by different version.",
4785
5930
  properties: {
@@ -4871,6 +6016,16 @@ exports.default = {
4871
6016
  },
4872
6017
  type: "object",
4873
6018
  },
6019
+ GoogleCloudIdentitytoolkitAdminV2Inheritance: {
6020
+ description: "Settings that the tenants will inherit from project level.",
6021
+ properties: {
6022
+ emailSendingConfig: {
6023
+ description: "Whether to allow the tenant to inherit custom domains, email templates, and custom SMTP settings. If true, email sent from tenant will follow the project level email sending configurations. If false (by default), emails will go with the default settings with no customizations.",
6024
+ type: "boolean",
6025
+ },
6026
+ },
6027
+ type: "object",
6028
+ },
4874
6029
  GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse: {
4875
6030
  description: "Response for DefaultSupportedIdpConfigs",
4876
6031
  properties: {
@@ -4952,6 +6107,15 @@ exports.default = {
4952
6107
  },
4953
6108
  type: "object",
4954
6109
  },
6110
+ GoogleCloudIdentitytoolkitAdminV2MonitoringConfig: {
6111
+ description: "Configuration related to monitoring project activity.",
6112
+ properties: {
6113
+ requestLogging: {
6114
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2RequestLogging",
6115
+ },
6116
+ },
6117
+ type: "object",
6118
+ },
4955
6119
  GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig: {
4956
6120
  description: "Options related to MultiFactor Authentication for the project.",
4957
6121
  properties: {
@@ -4968,6 +6132,32 @@ exports.default = {
4968
6132
  },
4969
6133
  type: "object",
4970
6134
  },
6135
+ GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig: {
6136
+ description: "Configuration related to multi-tenant functionality.",
6137
+ properties: {
6138
+ allowTenants: {
6139
+ description: "Whether this project can have tenants or not.",
6140
+ type: "boolean",
6141
+ },
6142
+ defaultTenantLocation: {
6143
+ description: 'The default cloud parent org or folder that the tenant project should be created under. The parent resource name should be in the format of "/", such as "folders/123" or "organizations/456". If the value is not set, the tenant will be created under the same organization or folder as the agent project.',
6144
+ type: "string",
6145
+ },
6146
+ },
6147
+ type: "object",
6148
+ },
6149
+ GoogleCloudIdentitytoolkitAdminV2NotificationConfig: {
6150
+ description: "Configuration related to sending notifications to users.",
6151
+ properties: {
6152
+ defaultLocale: {
6153
+ description: "Default locale used for email and SMS in IETF BCP 47 format.",
6154
+ type: "string",
6155
+ },
6156
+ sendEmail: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2SendEmail" },
6157
+ sendSms: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2SendSms" },
6158
+ },
6159
+ type: "object",
6160
+ },
4971
6161
  GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig: {
4972
6162
  description: "Configuration options for authenticating with an OAuth IDP.",
4973
6163
  properties: {
@@ -4996,7 +6186,7 @@ exports.default = {
4996
6186
  type: "object",
4997
6187
  },
4998
6188
  GoogleCloudIdentitytoolkitAdminV2OAuthResponseType: {
4999
- description: "The multiple response type to request for in the OAuth authorization flow. This can possibly be a combination of set bits (e.g. {id_token, token}).",
6189
+ description: "The response type to request for in the OAuth authorization flow. You can set either `id_token` or `code` to true, but not both. Setting both types to be simultaneously true (`{code: true, id_token: true}`) is not yet supported. See https://openid.net/specs/openid-connect-core-1_0.html#Authentication for a mapping of response type to OAuth 2.0 flow.",
5000
6190
  properties: {
5001
6191
  code: {
5002
6192
  description: "If true, authorization code is returned from IdP's authorization endpoint.",
@@ -5007,9 +6197,142 @@ exports.default = {
5007
6197
  type: "boolean",
5008
6198
  },
5009
6199
  token: {
5010
- description: "If true, access token is returned from IdP's authorization endpoint.",
6200
+ description: "Do not use. The `token` response type is not supported at the moment.",
6201
+ type: "boolean",
6202
+ },
6203
+ },
6204
+ type: "object",
6205
+ },
6206
+ GoogleCloudIdentitytoolkitAdminV2Permissions: {
6207
+ description: "Configuration related to restricting a user's ability to affect their account.",
6208
+ properties: {
6209
+ disabledUserDeletion: {
6210
+ description: "When true, end users cannot delete their account on the associated project through any of our API methods",
6211
+ type: "boolean",
6212
+ },
6213
+ disabledUserSignup: {
6214
+ description: "When true, end users cannot sign up for a new account on the associated project through any of our API methods",
6215
+ type: "boolean",
6216
+ },
6217
+ },
6218
+ type: "object",
6219
+ },
6220
+ GoogleCloudIdentitytoolkitAdminV2PhoneNumber: {
6221
+ description: "Configuration options related to authenticated a user by their phone number.",
6222
+ properties: {
6223
+ enabled: {
6224
+ description: "Whether phone number auth is enabled for the project or not.",
6225
+ type: "boolean",
6226
+ },
6227
+ testPhoneNumbers: {
6228
+ additionalProperties: { type: "string" },
6229
+ description: "A map of that can be used for phone auth testing.",
6230
+ type: "object",
6231
+ },
6232
+ },
6233
+ type: "object",
6234
+ },
6235
+ GoogleCloudIdentitytoolkitAdminV2QuotaConfig: {
6236
+ description: "Configuration related to quotas.",
6237
+ properties: {
6238
+ signUpQuotaConfig: {
6239
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2TemporaryQuota",
6240
+ },
6241
+ },
6242
+ type: "object",
6243
+ },
6244
+ GoogleCloudIdentitytoolkitAdminV2RequestLogging: {
6245
+ description: "Configuration for logging requests made to this project to Stackdriver Logging",
6246
+ properties: {
6247
+ enabled: {
6248
+ description: "Whether logging is enabled for this project or not.",
6249
+ type: "boolean",
6250
+ },
6251
+ },
6252
+ type: "object",
6253
+ },
6254
+ GoogleCloudIdentitytoolkitAdminV2SendEmail: {
6255
+ description: "Options for email sending.",
6256
+ properties: {
6257
+ callbackUri: { description: "action url in email template.", type: "string" },
6258
+ changeEmailTemplate: {
6259
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2EmailTemplate",
6260
+ },
6261
+ dnsInfo: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2DnsInfo" },
6262
+ legacyResetPasswordTemplate: {
6263
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2EmailTemplate",
6264
+ },
6265
+ method: {
6266
+ description: "The method used for sending an email.",
6267
+ enum: ["METHOD_UNSPECIFIED", "DEFAULT", "CUSTOM_SMTP"],
6268
+ type: "string",
6269
+ },
6270
+ resetPasswordTemplate: {
6271
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2EmailTemplate",
6272
+ },
6273
+ revertSecondFactorAdditionTemplate: {
6274
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2EmailTemplate",
6275
+ },
6276
+ smtp: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2Smtp" },
6277
+ verifyEmailTemplate: {
6278
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2EmailTemplate",
6279
+ },
6280
+ },
6281
+ type: "object",
6282
+ },
6283
+ GoogleCloudIdentitytoolkitAdminV2SendSms: {
6284
+ description: "Options for SMS sending.",
6285
+ properties: {
6286
+ smsTemplate: {
6287
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2SmsTemplate",
6288
+ },
6289
+ useDeviceLocale: {
6290
+ description: "Whether to use the accept_language header for SMS.",
6291
+ type: "boolean",
6292
+ },
6293
+ },
6294
+ type: "object",
6295
+ },
6296
+ GoogleCloudIdentitytoolkitAdminV2SignInConfig: {
6297
+ description: "Configuration related to local sign in methods.",
6298
+ properties: {
6299
+ allowDuplicateEmails: {
6300
+ description: "Whether to allow more than one account to have the same email.",
5011
6301
  type: "boolean",
5012
6302
  },
6303
+ anonymous: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2Anonymous" },
6304
+ email: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2Email" },
6305
+ hashConfig: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2HashConfig" },
6306
+ phoneNumber: {
6307
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2PhoneNumber",
6308
+ },
6309
+ },
6310
+ type: "object",
6311
+ },
6312
+ GoogleCloudIdentitytoolkitAdminV2SmsTemplate: {
6313
+ description: "The template to use when sending an SMS.",
6314
+ properties: {
6315
+ content: {
6316
+ description: "Output only. The SMS's content. Can contain the following placeholders which will be replaced with the appropriate values: %APP_NAME% - For Android or iOS apps, the app's display name. For web apps, the domain hosting the application. %LOGIN_CODE% - The OOB code being sent in the SMS.",
6317
+ readOnly: true,
6318
+ type: "string",
6319
+ },
6320
+ },
6321
+ type: "object",
6322
+ },
6323
+ GoogleCloudIdentitytoolkitAdminV2Smtp: {
6324
+ description: "Configuration for SMTP relay",
6325
+ properties: {
6326
+ host: { description: "SMTP relay host", type: "string" },
6327
+ password: { description: "SMTP relay password", type: "string" },
6328
+ port: { description: "SMTP relay port", format: "int32", type: "integer" },
6329
+ securityMode: {
6330
+ description: "SMTP security mode.",
6331
+ enum: ["SECURITY_MODE_UNSPECIFIED", "SSL", "START_TLS"],
6332
+ type: "string",
6333
+ },
6334
+ senderEmail: { description: "Sender email for the SMTP relay", type: "string" },
6335
+ username: { description: "SMTP relay username", type: "string" },
5013
6336
  },
5014
6337
  type: "object",
5015
6338
  },
@@ -5042,6 +6365,27 @@ exports.default = {
5042
6365
  },
5043
6366
  type: "object",
5044
6367
  },
6368
+ GoogleCloudIdentitytoolkitAdminV2TemporaryQuota: {
6369
+ description: "Temporary quota increase / decrease",
6370
+ properties: {
6371
+ quota: {
6372
+ description: "Corresponds to the 'refill_token_count' field in QuotaServer config",
6373
+ format: "int64",
6374
+ type: "string",
6375
+ },
6376
+ quotaDuration: {
6377
+ description: "How long this quota will be active for",
6378
+ format: "google-duration",
6379
+ type: "string",
6380
+ },
6381
+ startTime: {
6382
+ description: "When this quota will take affect",
6383
+ format: "google-datetime",
6384
+ type: "string",
6385
+ },
6386
+ },
6387
+ type: "object",
6388
+ },
5045
6389
  GoogleCloudIdentitytoolkitAdminV2Tenant: {
5046
6390
  description: "A Tenant contains configuration for the tenant in a multi-tenant project.",
5047
6391
  properties: {
@@ -5063,6 +6407,9 @@ exports.default = {
5063
6407
  type: "boolean",
5064
6408
  },
5065
6409
  hashConfig: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2HashConfig" },
6410
+ inheritance: {
6411
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2Inheritance",
6412
+ },
5066
6413
  mfaConfig: {
5067
6414
  $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig",
5068
6415
  },
@@ -5079,6 +6426,18 @@ exports.default = {
5079
6426
  },
5080
6427
  type: "object",
5081
6428
  },
6429
+ GoogleCloudIdentitytoolkitAdminV2Trigger: {
6430
+ description: "Synchronous Cloud Function with HTTP Trigger",
6431
+ properties: {
6432
+ functionUri: { description: "HTTP URI trigger for the Cloud Function.", type: "string" },
6433
+ updateTime: {
6434
+ description: "When the trigger was changed.",
6435
+ format: "google-datetime",
6436
+ type: "string",
6437
+ },
6438
+ },
6439
+ type: "object",
6440
+ },
5082
6441
  GoogleCloudIdentitytoolkitV2AutoRetrievalInfo: {
5083
6442
  description: "The information required to auto-retrieve an SMS.",
5084
6443
  properties: {
@@ -5337,16 +6696,16 @@ exports.default = {
5337
6696
  type: "object",
5338
6697
  },
5339
6698
  GoogleIamV1Binding: {
5340
- description: "Associates `members` with a `role`.",
6699
+ description: "Associates `members`, or principals, with a `role`.",
5341
6700
  properties: {
5342
6701
  condition: { $ref: "#/components/schemas/GoogleTypeExpr" },
5343
6702
  members: {
5344
- description: "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ",
6703
+ description: "Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ",
5345
6704
  items: { type: "string" },
5346
6705
  type: "array",
5347
6706
  },
5348
6707
  role: {
5349
- description: "Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.",
6708
+ description: "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.",
5350
6709
  type: "string",
5351
6710
  },
5352
6711
  },
@@ -5369,7 +6728,7 @@ exports.default = {
5369
6728
  type: "object",
5370
6729
  },
5371
6730
  GoogleIamV1Policy: {
5372
- description: 'An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp(\'2020-10-01T00:00:00.000Z\')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp(\'2020-10-01T00:00:00.000Z\') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).',
6731
+ description: 'An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp(\'2020-10-01T00:00:00.000Z\')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp(\'2020-10-01T00:00:00.000Z\') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).',
5373
6732
  properties: {
5374
6733
  auditConfigs: {
5375
6734
  description: "Specifies cloud audit logging configuration for this policy.",
@@ -5377,7 +6736,7 @@ exports.default = {
5377
6736
  type: "array",
5378
6737
  },
5379
6738
  bindings: {
5380
- description: "Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.",
6739
+ description: "Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.",
5381
6740
  items: { $ref: "#/components/schemas/GoogleIamV1Binding" },
5382
6741
  type: "array",
5383
6742
  },
@@ -5503,6 +6862,7 @@ exports.default = {
5503
6862
  description: "Emulator-specific configuration.",
5504
6863
  properties: {
5505
6864
  signIn: { properties: { allowDuplicateEmails: { type: "boolean" } }, type: "object" },
6865
+ usageMode: { enum: ["USAGE_MODE_UNSPECIFIED", "DEFAULT", "PASSTHROUGH"], type: "string" },
5506
6866
  },
5507
6867
  },
5508
6868
  EmulatorV1ProjectsOobCodes: {
@@ -5670,6 +7030,31 @@ exports.default = {
5670
7030
  },
5671
7031
  },
5672
7032
  },
7033
+ GoogleCloudIdentitytoolkitAdminV2Tenant: {
7034
+ content: {
7035
+ "application/json": {
7036
+ schema: { $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2Tenant" },
7037
+ },
7038
+ },
7039
+ },
7040
+ GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig: {
7041
+ content: {
7042
+ "application/json": {
7043
+ schema: {
7044
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig",
7045
+ },
7046
+ },
7047
+ },
7048
+ },
7049
+ GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig: {
7050
+ content: {
7051
+ "application/json": {
7052
+ schema: {
7053
+ $ref: "#/components/schemas/GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig",
7054
+ },
7055
+ },
7056
+ },
7057
+ },
5673
7058
  GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig: {
5674
7059
  content: {
5675
7060
  "application/json": {
@@ -5688,7 +7073,7 @@ exports.default = {
5688
7073
  implicit: {
5689
7074
  authorizationUrl: "https://accounts.google.com/o/oauth2/auth",
5690
7075
  scopes: {
5691
- "https://www.googleapis.com/auth/cloud-platform": "See, edit, configure, and delete your Google Cloud Platform data",
7076
+ "https://www.googleapis.com/auth/cloud-platform": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.",
5692
7077
  "https://www.googleapis.com/auth/firebase": "View and administer all your Firebase data and settings",
5693
7078
  },
5694
7079
  },
@@ -5696,7 +7081,7 @@ exports.default = {
5696
7081
  authorizationUrl: "https://accounts.google.com/o/oauth2/auth",
5697
7082
  tokenUrl: "https://accounts.google.com/o/oauth2/token",
5698
7083
  scopes: {
5699
- "https://www.googleapis.com/auth/cloud-platform": "See, edit, configure, and delete your Google Cloud Platform data",
7084
+ "https://www.googleapis.com/auth/cloud-platform": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.",
5700
7085
  "https://www.googleapis.com/auth/firebase": "View and administer all your Firebase data and settings",
5701
7086
  },
5702
7087
  },