diff --git a/docs/openapiv2/apidocs.swagger.json b/docs/openapiv2/apidocs.swagger.json index 91539b92..1bf97265 100644 --- a/docs/openapiv2/apidocs.swagger.json +++ b/docs/openapiv2/apidocs.swagger.json @@ -1821,7 +1821,8 @@ "invalid_contextual_tuple", "duplicate_contextual_tuple", "invalid_authorization_model", - "unsupported_schema_version" + "unsupported_schema_version", + "cancelled" ], "default": "no_error" }, @@ -1887,7 +1888,6 @@ "enum": [ "no_internal_error", "internal_error", - "cancelled", "deadline_exceeded", "already_exists", "resource_exhausted", diff --git a/openfga/v1/errors_ignore.proto b/openfga/v1/errors_ignore.proto index cbf58af9..d0cc764e 100644 --- a/openfga/v1/errors_ignore.proto +++ b/openfga/v1/errors_ignore.proto @@ -69,6 +69,7 @@ enum ErrorCode { duplicate_contextual_tuple = 2055; invalid_authorization_model = 2056; unsupported_schema_version = 2057; + cancelled = 2058; } enum UnprocessableContentErrorCode { @@ -85,7 +86,6 @@ enum InternalErrorCode { // 4000 level errors are returned due to internal error internal_error = 4000; - cancelled = 4003; deadline_exceeded = 4004; already_exists = 4005; resource_exhausted = 4006; diff --git a/proto/openfga/v1/errors_ignore.pb.go b/proto/openfga/v1/errors_ignore.pb.go index c1546371..b31f9962 100644 --- a/proto/openfga/v1/errors_ignore.pb.go +++ b/proto/openfga/v1/errors_ignore.pb.go @@ -136,6 +136,7 @@ const ( ErrorCode_duplicate_contextual_tuple ErrorCode = 2055 ErrorCode_invalid_authorization_model ErrorCode = 2056 ErrorCode_unsupported_schema_version ErrorCode = 2057 + ErrorCode_cancelled ErrorCode = 2058 ) // Enum value maps for ErrorCode. @@ -189,6 +190,7 @@ var ( 2055: "duplicate_contextual_tuple", 2056: "invalid_authorization_model", 2057: "unsupported_schema_version", + 2058: "cancelled", } ErrorCode_value = map[string]int32{ "no_error": 0, @@ -239,6 +241,7 @@ var ( "duplicate_contextual_tuple": 2055, "invalid_authorization_model": 2056, "unsupported_schema_version": 2057, + "cancelled": 2058, } ) @@ -320,7 +323,6 @@ type InternalErrorCode int32 const ( InternalErrorCode_no_internal_error InternalErrorCode = 0 InternalErrorCode_internal_error InternalErrorCode = 4000 - InternalErrorCode_cancelled InternalErrorCode = 4003 InternalErrorCode_deadline_exceeded InternalErrorCode = 4004 InternalErrorCode_already_exists InternalErrorCode = 4005 InternalErrorCode_resource_exhausted InternalErrorCode = 4006 @@ -336,7 +338,6 @@ var ( InternalErrorCode_name = map[int32]string{ 0: "no_internal_error", 4000: "internal_error", - 4003: "cancelled", 4004: "deadline_exceeded", 4005: "already_exists", 4006: "resource_exhausted", @@ -349,7 +350,6 @@ var ( InternalErrorCode_value = map[string]int32{ "no_internal_error": 0, "internal_error": 4000, - "cancelled": 4003, "deadline_exceeded": 4004, "already_exists": 4005, "resource_exhausted": 4006, @@ -965,7 +965,7 @@ var file_openfga_v1_errors_ignore_proto_rawDesc = []byte{ 0x72, 0x65, 0x72, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x10, 0xed, 0x07, 0x12, 0x19, 0x0a, 0x14, 0x62, 0x65, 0x61, 0x72, 0x65, 0x72, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x10, 0xf2, 0x07, 0x12, 0x14, 0x0a, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, - 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x10, 0xdc, 0x0b, 0x2a, 0xfa, 0x0b, + 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x10, 0xdc, 0x0b, 0x2a, 0x8a, 0x0c, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x6e, 0x6f, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x10, 0xd0, 0x0f, @@ -1061,18 +1061,18 @@ var file_openfga_v1_errors_ignore_proto_rawDesc = []byte{ 0x69, 0x64, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x10, 0x88, 0x10, 0x12, 0x1f, 0x0a, 0x1a, 0x75, 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x10, 0x89, 0x10, 0x2a, 0x5a, 0x0a, 0x1d, 0x55, 0x6e, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x10, 0x89, 0x10, 0x12, 0x0e, 0x0a, 0x09, 0x63, 0x61, + 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x10, 0x8a, 0x10, 0x2a, 0x5a, 0x0a, 0x1d, 0x55, 0x6e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x6e, 0x6f, 0x5f, 0x74, 0x68, 0x72, 0x6f, 0x74, 0x74, 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x17, 0x74, 0x68, 0x72, 0x6f, 0x74, 0x74, 0x6c, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x10, 0xac, 0x1b, 0x2a, 0xf2, 0x01, 0x0a, 0x11, 0x49, 0x6e, 0x74, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x10, 0xac, 0x1b, 0x2a, 0xe2, 0x01, 0x0a, 0x11, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x6e, 0x6f, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x10, 0xa0, 0x1f, 0x12, 0x0e, 0x0a, 0x09, 0x63, 0x61, 0x6e, 0x63, - 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x10, 0xa3, 0x1f, 0x12, 0x16, 0x0a, 0x11, 0x64, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x10, 0xa0, 0x1f, 0x12, 0x16, 0x0a, 0x11, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x65, 0x78, 0x63, 0x65, 0x65, 0x64, 0x65, 0x64, 0x10, 0xa4, 0x1f, 0x12, 0x13, 0x0a, 0x0e, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x10, 0xa5, 0x1f, 0x12, 0x17, 0x0a, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,