in scripts/gen-auth-api-spec.ts [308:636]
function addEmulatorOperations(openapi3: any): void {
openapi3.tags.push({ name: "emulator" });
openapi3.paths["/emulator/v1/projects/{targetProjectId}/accounts"] = {
parameters: [
{
name: "targetProjectId",
in: "path",
description: "The ID of the Google Cloud project that the accounts belong to.",
required: true,
schema: {
type: "string",
},
},
],
servers: [{ url: "" }],
delete: {
description: "Remove all accounts in the project, regardless of state.",
operationId: "emulator.projects.accounts.delete",
responses: {
"200": {
description: "Successful response",
content: {
"application/json": {
schema: {
type: "object",
},
},
},
},
},
security: [],
tags: ["emulator"],
},
};
openapi3.paths["/emulator/v1/projects/{targetProjectId}/tenants/{tenantId}/accounts"] = {
parameters: [
{
name: "targetProjectId",
in: "path",
description: "The ID of the Google Cloud project that the accounts belong to.",
required: true,
schema: {
type: "string",
},
},
{
name: "tenantId",
in: "path",
description:
"The ID of the Identity Platform tenant the accounts belongs to. If not specified, accounts on the Identity Platform project are returned.",
required: true,
schema: { type: "string" },
},
],
servers: [{ url: "" }],
delete: {
description: "Remove all accounts in the project, regardless of state.",
operationId: "emulator.projects.accounts.delete",
responses: {
"200": {
description: "Successful response",
content: {
"application/json": {
schema: {
type: "object",
},
},
},
},
},
security: [],
tags: ["emulator"],
},
};
openapi3.paths["/emulator/v1/projects/{targetProjectId}/config"] = {
parameters: [
{
name: "targetProjectId",
in: "path",
description: "The ID of the Google Cloud project that the config belongs to.",
required: true,
schema: {
type: "string",
},
},
],
servers: [{ url: "" }],
get: {
description: "Get emulator-specific configuration for the project.",
operationId: "emulator.projects.config.get",
responses: {
"200": {
description: "Successful response",
content: {
"application/json": {
schema: {
$ref: "#/components/schemas/EmulatorV1ProjectsConfig",
},
},
},
},
},
security: [],
tags: ["emulator"],
},
patch: {
description: "Update emulator-specific configuration for the project.",
operationId: "emulator.projects.config.update",
requestBody: {
content: {
"application/json": {
schema: {
$ref: "#/components/schemas/EmulatorV1ProjectsConfig",
},
},
},
},
responses: {
"200": {
description: "Successful response",
content: {
"application/json": {
schema: {
$ref: "#/components/schemas/EmulatorV1ProjectsConfig",
},
},
},
},
},
security: [],
tags: ["emulator"],
},
};
openapi3.components.schemas.EmulatorV1ProjectsConfig = {
type: "object",
description: "Emulator-specific configuration.",
properties: {
signIn: {
properties: {
allowDuplicateEmails: { type: "boolean" },
},
type: "object",
},
usageMode: {
enum: ["USAGE_MODE_UNSPECIFIED", "DEFAULT", "PASSTHROUGH"],
type: "string",
},
},
};
openapi3.paths["/emulator/v1/projects/{targetProjectId}/oobCodes"] = {
parameters: [
{
name: "targetProjectId",
in: "path",
description: "The ID of the Google Cloud project that the confirmation codes belongs to.",
required: true,
schema: {
type: "string",
},
},
],
servers: [{ url: "" }],
get: {
description: "List all pending confirmation codes for the project.",
operationId: "emulator.projects.oobCodes.list",
responses: {
"200": {
description: "Successful response",
content: {
"application/json": {
schema: {
$ref: "#/components/schemas/EmulatorV1ProjectsOobCodes",
},
},
},
},
},
security: [],
tags: ["emulator"],
},
};
openapi3.paths["/emulator/v1/projects/{targetProjectId}/tenants/{tenantId}/oobCodes"] = {
parameters: [
{
name: "targetProjectId",
in: "path",
description: "The ID of the Google Cloud project that the confirmation codes belongs to.",
required: true,
schema: {
type: "string",
},
},
{
name: "tenantId",
in: "path",
description:
"The ID of the Identity Platform tenant the accounts belongs to. If not specified, accounts on the Identity Platform project are returned.",
required: true,
schema: { type: "string" },
},
],
servers: [{ url: "" }],
get: {
description: "List all pending confirmation codes for the project.",
operationId: "emulator.projects.oobCodes.list",
responses: {
"200": {
description: "Successful response",
content: {
"application/json": {
schema: {
$ref: "#/components/schemas/EmulatorV1ProjectsOobCodes",
},
},
},
},
},
security: [],
tags: ["emulator"],
},
};
openapi3.components.schemas.EmulatorV1ProjectsOobCodes = {
type: "object",
description: "Details of all pending confirmation codes.",
properties: {
oobCodes: {
type: "array",
items: {
type: "object",
properties: {
email: { type: "string" },
oobCode: { type: "string" },
oobLink: { type: "string" },
requestType: { type: "string" },
},
},
},
},
};
openapi3.paths["/emulator/v1/projects/{targetProjectId}/verificationCodes"] = {
parameters: [
{
name: "targetProjectId",
in: "path",
description: "The ID of the Google Cloud project that the verification codes belongs to.",
required: true,
schema: {
type: "string",
},
},
],
servers: [{ url: "" }],
get: {
description: "List all pending phone verification codes for the project.",
operationId: "emulator.projects.verificationCodes.list",
responses: {
"200": {
description: "Successful response",
content: {
"application/json": {
schema: {
$ref: "#/components/schemas/EmulatorV1ProjectsOobCodes",
},
},
},
},
},
security: [],
tags: ["emulator"],
},
};
openapi3.paths["/emulator/v1/projects/{targetProjectId}/tenants/{tenantId}/verificationCodes"] = {
parameters: [
{
name: "targetProjectId",
in: "path",
description: "The ID of the Google Cloud project that the verification codes belongs to.",
required: true,
schema: {
type: "string",
},
},
{
name: "tenantId",
in: "path",
description:
"The ID of the Identity Platform tenant the accounts belongs to. If not specified, accounts on the Identity Platform project are returned.",
required: true,
schema: { type: "string" },
},
],
servers: [{ url: "" }],
get: {
description: "List all pending phone verification codes for the project.",
operationId: "emulator.projects.verificationCodes.list",
responses: {
"200": {
description: "Successful response",
content: {
"application/json": {
schema: {
$ref: "#/components/schemas/EmulatorV1ProjectsOobCodes",
},
},
},
},
},
security: [],
tags: ["emulator"],
},
};
openapi3.components.schemas.EmulatorV1ProjectsVerificationCodes = {
type: "object",
description: "Details of all pending verification codes.",
properties: {
verificationCodes: {
type: "array",
items: {
type: "object",
properties: {
code: { type: "string" },
phoneNumber: { type: "string" },
sessionInfo: { type: "string" },
},
},
},
},
};
}