<?php //resource_metadata_400403ab12023c26f35fcec86fa1962e

return [PHP_INT_MAX, static function () { return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate(
    $o = [
        clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['ApiPlatform\\Core\\Metadata\\Resource\\ResourceMetadata'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('ApiPlatform\\Core\\Metadata\\Resource\\ResourceMetadata')),
    ],
    null,
    [
        'ApiPlatform\\Core\\Metadata\\Resource\\ResourceMetadata' => [
            'shortName' => [
                'UserOAuth',
            ],
            'description' => [
                '',
            ],
            'itemOperations' => [
                [],
            ],
            'collectionOperations' => [
                [
                    'phone_send_verification_code' => [
                        'security' => 'is_granted("ROLE_EXACT_CLIENT") or is_granted("ROLE_EXACT_API")',
                        'method' => 'POST',
                        'path' => '/phone/send-verification-code',
                        'messenger' => true,
                        'status' => 200,
                        'input' => [
                            'class' => 'App\\Message\\User\\Customer\\SendVerificationCode',
                            'name' => 'SendVerificationCode',
                        ],
                        'pagination_enabled' => false,
                        'groups' => [
                            'phone:send:verification:code',
                        ],
                        'openapi_context' => [
                            'summary' => 'Send a verification code to a phone number.',
                            'requestBody' => [
                                'content' => [
                                    'application/json' => [
                                        'schema' => [
                                            'type' => 'object',
                                            'properties' => [
                                                'phone' => [
                                                    'type' => 'string',
                                                    'nullable' => false,
                                                ],
                                            ],
                                            'example' => [
                                                'phone' => '+33123456789',
                                            ],
                                        ],
                                    ],
                                ],
                            ],
                            'responses' => [
                                200 => [
                                    'content' => [
                                        'application/json' => [
                                            'schema' => [
                                                [
                                                    'type' => 'object',
                                                    'properties' => [
                                                        'message' => [
                                                            'type' => 'string',
                                                        ],
                                                    ],
                                                ],
                                            ],
                                            'examples' => [
                                                [
                                                    'summary' => 'Sms code is sent successfully',
                                                    'value' => [
                                                        'message' => 'Verification code has been sent',
                                                    ],
                                                ],
                                            ],
                                        ],
                                    ],
                                ],
                                400 => [
                                    'content' => [
                                        'application/json' => [
                                            'schema' => [
                                                [
                                                    'type' => 'object',
                                                    'properties' => [
                                                        'message' => [
                                                            'type' => 'string',
                                                        ],
                                                    ],
                                                ],
                                            ],
                                            'examples' => [
                                                [
                                                    'summary' => 'Phone already verified',
                                                    'value' => [
                                                        'message' => 'Phone already verified',
                                                    ],
                                                ],
                                                [
                                                    'summary' => 'Sms code already sent',
                                                    'value' => [
                                                        'message' => 'Code already sent',
                                                    ],
                                                ],
                                                [
                                                    'summary' => 'Request failed',
                                                    'value' => [
                                                        'message' => 'Request failed',
                                                    ],
                                                ],
                                            ],
                                        ],
                                    ],
                                ],
                                429 => [
                                    'description' => 'Too many requests',
                                ],
                            ],
                        ],
                        'output' => null,
                        'stateless' => null,
                        'input_formats' => [
                            'json' => [
                                'application/json',
                            ],
                            'jsonld' => [
                                'application/ld+js',
                            ],
                            'html' => [
                                'text/html',
                            ],
                        ],
                        'output_formats' => [
                            'json' => [
                                'application/json',
                            ],
                            'jsonld' => [
                                'application/ld+js',
                            ],
                            'html' => [
                                'text/html',
                            ],
                        ],
                    ],
                    'phone_verify' => [
                        'security' => 'is_granted("ROLE_EXACT_CLIENT") or is_granted("ROLE_EXACT_API")',
                        'method' => 'POST',
                        'path' => '/phone/verify',
                        'messenger' => true,
                        'status' => 200,
                        'input' => [
                            'class' => 'App\\Message\\User\\Customer\\PhoneVerify',
                            'name' => 'PhoneVerify',
                        ],
                        'pagination_enabled' => false,
                        'groups' => [
                            'phone:verify',
                        ],
                        'openapi_context' => [
                            'summary' => 'Verify phone with code if correct.',
                            'requestBody' => [
                                'content' => [
                                    'application/json' => [
                                        'schema' => [
                                            'type' => 'object',
                                            'properties' => [
                                                'phone' => [
                                                    'type' => 'string',
                                                    'nullable' => false,
                                                ],
                                                'code' => [
                                                    'type' => 'string',
                                                    'nullable' => false,
                                                ],
                                            ],
                                            'example' => [
                                                'phone' => '+33123456789',
                                                'code' => '123456',
                                            ],
                                        ],
                                    ],
                                ],
                            ],
                            'responses' => [
                                200 => [
                                    'description' => 'Phone/code verified & proofToken sent.',
                                    'content' => [
                                        'application/json' => [
                                            'schema' => [
                                                'type' => 'object',
                                                'properties' => [
                                                    'message' => [
                                                        'type' => 'string',
                                                        'example' => 'Phone is verified',
                                                    ],
                                                    'proofToken' => [
                                                        'type' => 'string',
                                                        'example' => '6928384034',
                                                    ],
                                                ],
                                            ],
                                        ],
                                    ],
                                ],
                                400 => [
                                    'description' => 'Invalid phone or code',
                                ],
                            ],
                        ],
                        'output' => null,
                        'stateless' => null,
                        'input_formats' => [
                            'json' => [
                                'application/json',
                            ],
                            'jsonld' => [
                                'application/ld+js',
                            ],
                            'html' => [
                                'text/html',
                            ],
                        ],
                        'output_formats' => [
                            'json' => [
                                'application/json',
                            ],
                            'jsonld' => [
                                'application/ld+js',
                            ],
                            'html' => [
                                'text/html',
                            ],
                        ],
                    ],
                ],
            ],
            'graphql' => [
                [
                    'item_query' => [],
                    'collection_query' => [],
                    'delete' => [],
                    'update' => [],
                    'create' => [],
                ],
            ],
            'attributes' => [
                [
                    'cache_headers' => null,
                    'denormalization_context' => null,
                    'deprecation_reason' => null,
                    'elasticsearch' => null,
                    'fetch_partial' => null,
                    'force_eager' => null,
                    'formats' => null,
                    'filters' => null,
                    'hydra_context' => null,
                    'input' => null,
                    'mercure' => null,
                    'messenger' => null,
                    'normalization_context' => null,
                    'openapi_context' => null,
                    'order' => null,
                    'output' => null,
                    'pagination_client_enabled' => null,
                    'pagination_client_items_per_page' => null,
                    'pagination_client_partial' => null,
                    'pagination_via_cursor' => null,
                    'pagination_enabled' => null,
                    'pagination_fetch_join_collection' => null,
                    'pagination_items_per_page' => 10,
                    'pagination_maximum_items_per_page' => 30,
                    'pagination_partial' => null,
                    'route_prefix' => 'v2',
                    'security' => null,
                    'security_message' => null,
                    'security_post_denormalize' => null,
                    'security_post_denormalize_message' => null,
                    'security_post_validation' => null,
                    'security_post_validation_message' => null,
                    'stateless' => null,
                    'sunset' => null,
                    'swagger_context' => null,
                    'validation_groups' => null,
                    'url_generation_strategy' => null,
                    'composite_identifier' => null,
                    'exception_to_status' => null,
                    'query_parameter_validation_enabled' => null,
                ],
            ],
        ],
    ],
    $o[0],
    []
); }];
