# Generated by Django 5.2.12 on 2026-04-04 16:58

from django.db import migrations, models
import django.contrib.postgres.fields


class Migration(migrations.Migration):

    dependencies = [
        ("authentik_providers_ssf", "0001_initial"),
    ]

    operations = [
        migrations.AddField(
            model_name="ssfprovider",
            name="push_verify_certificates",
            field=models.BooleanField(default=True),
        ),
        migrations.AddField(
            model_name="stream",
            name="authorization_header",
            field=models.TextField(default=None, null=True),
        ),
        migrations.AddField(
            model_name="stream",
            name="status",
            field=models.TextField(
                choices=[("enabled", "Enabled"), ("paused", "Paused"), ("disabled", "Disabled")],
                default="enabled",
            ),
        ),
        migrations.AlterField(
            model_name="stream",
            name="delivery_method",
            field=models.TextField(
                choices=[
                    ("https://schemas.openid.net/secevent/risc/delivery-method/push", "Risc Push"),
                    ("https://schemas.openid.net/secevent/risc/delivery-method/poll", "Risc Poll"),
                    ("urn:ietf:rfc:8935", "SSF RFC Push"),
                    ("urn:ietf:rfc:8936", "SSF RFC Pull"),
                ]
            ),
        ),
        migrations.AlterField(
            model_name="stream",
            name="events_requested",
            field=django.contrib.postgres.fields.ArrayField(
                base_field=models.TextField(
                    choices=[
                        (
                            "https://schemas.openid.net/secevent/caep/event-type/session-revoked",
                            "Caep Session Revoked",
                        ),
                        (
                            "https://schemas.openid.net/secevent/caep/event-type/token-claims-change",
                            "Caep Token Claims Change",
                        ),
                        (
                            "https://schemas.openid.net/secevent/caep/event-type/credential-change",
                            "Caep Credential Change",
                        ),
                        (
                            "https://schemas.openid.net/secevent/caep/event-type/assurance-level-change",
                            "Caep Assurance Level Change",
                        ),
                        (
                            "https://schemas.openid.net/secevent/caep/event-type/device-compliance-change",
                            "Caep Device Compliance Change",
                        ),
                        (
                            "https://schemas.openid.net/secevent/caep/event-type/session-established",
                            "Caep Session Established",
                        ),
                        (
                            "https://schemas.openid.net/secevent/caep/event-type/session-presented",
                            "Caep Session Presented",
                        ),
                        (
                            "https://schemas.openid.net/secevent/caep/event-type/risk-level-change",
                            "Caep Risk Level Change",
                        ),
                        (
                            "https://schemas.openid.net/secevent/ssf/event-type/verification",
                            "Set Verification",
                        ),
                    ]
                ),
                default=list,
                size=None,
            ),
        ),
        migrations.AlterField(
            model_name="stream",
            name="status",
            field=models.TextField(
                choices=[
                    ("enabled", "Enabled"),
                    ("paused", "Paused"),
                    ("disabled", "Disabled"),
                    ("disabled_deleted", "Disabled Deleted"),
                ],
                default="enabled",
            ),
        ),
        migrations.AlterField(
            model_name="streamevent",
            name="type",
            field=models.TextField(
                choices=[
                    (
                        "https://schemas.openid.net/secevent/caep/event-type/session-revoked",
                        "Caep Session Revoked",
                    ),
                    (
                        "https://schemas.openid.net/secevent/caep/event-type/token-claims-change",
                        "Caep Token Claims Change",
                    ),
                    (
                        "https://schemas.openid.net/secevent/caep/event-type/credential-change",
                        "Caep Credential Change",
                    ),
                    (
                        "https://schemas.openid.net/secevent/caep/event-type/assurance-level-change",
                        "Caep Assurance Level Change",
                    ),
                    (
                        "https://schemas.openid.net/secevent/caep/event-type/device-compliance-change",
                        "Caep Device Compliance Change",
                    ),
                    (
                        "https://schemas.openid.net/secevent/caep/event-type/session-established",
                        "Caep Session Established",
                    ),
                    (
                        "https://schemas.openid.net/secevent/caep/event-type/session-presented",
                        "Caep Session Presented",
                    ),
                    (
                        "https://schemas.openid.net/secevent/caep/event-type/risk-level-change",
                        "Caep Risk Level Change",
                    ),
                    (
                        "https://schemas.openid.net/secevent/ssf/event-type/verification",
                        "Set Verification",
                    ),
                ]
            ),
        ),
    ]
