github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/proto/internal/impl/v1/impl.proto (about)

     1  syntax = "proto3";
     2  package impl.v1;
     3  
     4  import "google/api/expr/v1alpha1/checked.proto";
     5  
     6  option go_package = "github.com/authzed/spicedb/pkg/proto/impl/v1";
     7  
     8  message DecodedCaveat {
     9    // we do kind_oneof in case we decide to have non-CEL expressions
    10    oneof kind_oneof {
    11      google.api.expr.v1alpha1.CheckedExpr cel = 1;
    12    }
    13    string name = 2;
    14  }
    15  
    16  message DecodedZookie {
    17    uint32 version = 1;
    18    message V1Zookie {
    19      uint64 revision = 1;
    20    }
    21    message V2Zookie {
    22      string revision = 1;
    23    }
    24    oneof version_oneof {
    25      V1Zookie v1 = 2;
    26      V2Zookie v2 = 3;
    27    }
    28  }
    29  
    30  message DecodedZedToken {
    31    message V1Zookie {
    32      uint64 revision = 1;
    33    }
    34    message V1ZedToken {
    35      string revision = 1;
    36    }
    37    oneof version_oneof {
    38      V1Zookie deprecated_v1_zookie = 2;
    39      V1ZedToken v1 = 3;
    40    }
    41  }
    42  
    43  message DecodedCursor {
    44    // we do version_oneof in case we decide to add a new version.
    45    oneof version_oneof {
    46      V1Cursor v1 = 1;
    47    }
    48  }
    49  
    50  message V1Cursor {
    51    // revision is the string form of the revision for the cursor.
    52    string revision = 1;
    53  
    54    // sections are the sections of the dispatching cursor.
    55    repeated string sections = 2;
    56  
    57    // call_and_parameters_hash is a hash of the call that manufactured this cursor and all its
    58    // parameters, including limits and zedtoken, to ensure no inputs changed when using this cursor.
    59    string call_and_parameters_hash = 3;
    60  
    61    // dispatch_version is the version of the dispatcher which created the cursor.
    62    uint32 dispatch_version = 4;
    63  }
    64  
    65  message DocComment {
    66    string comment = 1;
    67  }
    68  
    69  message RelationMetadata {
    70    enum RelationKind {
    71      UNKNOWN_KIND = 0;
    72      RELATION = 1;
    73      PERMISSION = 2;
    74    }
    75  
    76    RelationKind kind = 1;
    77  }
    78  
    79  message NamespaceAndRevision {
    80    string namespace_name = 1;
    81    string revision = 2;
    82  }
    83  
    84  message V1Alpha1Revision {
    85    repeated NamespaceAndRevision ns_revisions = 1;
    86  }