diff --git a/.changelog/v2.0.1/bug-fixes/12-entitlements-queries.md b/.changelog/v2.0.1/bug-fixes/12-entitlements-queries.md new file mode 100644 index 0000000..0c19a6c --- /dev/null +++ b/.changelog/v2.0.1/bug-fixes/12-entitlements-queries.md @@ -0,0 +1 @@ +- Switch entitlements method input to a query string. ([#13](https://github.com/noble-assets/halo/pull/13)) diff --git a/.changelog/v2.0.1/summary.md b/.changelog/v2.0.1/summary.md new file mode 100644 index 0000000..a78530e --- /dev/null +++ b/.changelog/v2.0.1/summary.md @@ -0,0 +1,3 @@ +*Nov 13, 2024* + +This is a non-consensus breaking patch to the `v2` release line. diff --git a/CHANGELOG.md b/CHANGELOG.md index cf30aea..2b12af7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # CHANGELOG +## v2.0.1 + +*Nov 13, 2024* + +This is a non-consensus breaking patch to the `v2` release line. + +### BUG FIXES + +- Switch entitlements method input to a query string. ([#13](https://github.com/noble-assets/halo/pull/13)) + ## v2.0.0 *Nov 10, 2024* diff --git a/api/entitlements/v1/query.pulsar.go b/api/entitlements/v1/query.pulsar.go index 7bb4042..9c17d98 100644 --- a/api/entitlements/v1/query.pulsar.go +++ b/api/entitlements/v1/query.pulsar.go @@ -4674,7 +4674,7 @@ var file_halo_entitlements_v1_query_proto_rawDesc = []byte{ 0x12, 0x30, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x68, 0x61, 0x6c, 0x6f, 0x2e, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, - 0x65, 0x73, 0x32, 0x9d, 0x06, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x7d, 0x0a, 0x05, + 0x65, 0x73, 0x32, 0x8b, 0x06, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x7d, 0x0a, 0x05, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x20, 0x2e, 0x68, 0x61, 0x6c, 0x6f, 0x2e, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x1a, 0x28, 0x2e, 0x68, 0x61, 0x6c, 0x6f, 0x2e, 0x65, @@ -4691,54 +4691,53 @@ var file_halo_entitlements_v1_query_proto_rawDesc = []byte{ 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x68, 0x61, 0x6c, 0x6f, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x12, - 0xb3, 0x01, 0x0a, 0x10, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, + 0xaa, 0x01, 0x0a, 0x10, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x2b, 0x2e, 0x68, 0x61, 0x6c, 0x6f, 0x2e, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x1a, 0x33, 0x2e, 0x68, 0x61, 0x6c, 0x6f, 0x2e, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x68, 0x61, 0x6c, 0x6f, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x68, 0x61, 0x6c, 0x6f, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2f, 0x7b, 0x6d, 0x65, - 0x74, 0x68, 0x6f, 0x64, 0x7d, 0x12, 0xab, 0x01, 0x0a, 0x0e, 0x52, 0x6f, 0x6c, 0x65, 0x43, 0x61, - 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x29, 0x2e, 0x68, 0x61, 0x6c, 0x6f, 0x2e, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x1a, 0x31, 0x2e, 0x68, 0x61, 0x6c, 0x6f, 0x2e, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x52, 0x6f, 0x6c, 0x65, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3b, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x68, 0x61, 0x6c, 0x6f, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, - 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2f, 0x7b, 0x6d, 0x65, 0x74, 0x68, - 0x6f, 0x64, 0x7d, 0x12, 0xac, 0x01, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x29, 0x2e, 0x68, 0x61, 0x6c, 0x6f, 0x2e, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x1a, 0x31, 0x2e, 0x68, 0x61, 0x6c, 0x6f, 0x2e, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, - 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x31, 0x12, 0x2f, 0x2f, 0x68, 0x61, 0x6c, 0x6f, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x63, 0x61, - 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x7d, 0x42, 0xe1, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x61, 0x6c, 0x6f, 0x2e, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x42, - 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x47, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, - 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x68, 0x61, 0x6c, 0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x68, 0x61, 0x6c, 0x6f, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x48, 0x45, 0x58, 0xaa, 0x02, 0x14, 0x48, - 0x61, 0x6c, 0x6f, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x2e, 0x56, 0x31, 0xca, 0x02, 0x14, 0x48, 0x61, 0x6c, 0x6f, 0x5c, 0x45, 0x6e, 0x74, 0x69, 0x74, - 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x20, 0x48, 0x61, 0x6c, - 0x6f, 0x5c, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5c, 0x56, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, - 0x48, 0x61, 0x6c, 0x6f, 0x3a, 0x3a, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x63, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0xa2, 0x01, 0x0a, + 0x0e, 0x52, 0x6f, 0x6c, 0x65, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, + 0x29, 0x2e, 0x68, 0x61, 0x6c, 0x6f, 0x2e, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, + 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x1a, 0x31, 0x2e, 0x68, 0x61, 0x6c, + 0x6f, 0x2e, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x43, 0x61, 0x70, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x88, + 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x68, 0x61, 0x6c, + 0x6f, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x76, + 0x31, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x12, 0xac, 0x01, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x12, 0x29, 0x2e, 0x68, 0x61, 0x6c, 0x6f, 0x2e, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x1a, + 0x31, 0x2e, 0x68, 0x61, 0x6c, 0x6f, 0x2e, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, + 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x3c, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, + 0x2f, 0x2f, 0x68, 0x61, 0x6c, 0x6f, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x63, 0x61, 0x70, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, + 0x42, 0xe1, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x61, 0x6c, 0x6f, 0x2e, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x47, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x61, 0x73, + 0x73, 0x65, 0x74, 0x73, 0x2f, 0x68, 0x61, 0x6c, 0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x68, 0x61, 0x6c, 0x6f, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x48, 0x45, 0x58, 0xaa, 0x02, 0x14, 0x48, 0x61, 0x6c, + 0x6f, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x14, 0x48, 0x61, 0x6c, 0x6f, 0x5c, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x20, 0x48, 0x61, 0x6c, 0x6f, 0x5c, + 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5c, 0x56, 0x31, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x48, 0x61, + 0x6c, 0x6f, 0x3a, 0x3a, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto/halo/entitlements/v1/query.proto b/proto/halo/entitlements/v1/query.proto index b2cbc62..ec85651 100644 --- a/proto/halo/entitlements/v1/query.proto +++ b/proto/halo/entitlements/v1/query.proto @@ -21,12 +21,12 @@ service Query { rpc PublicCapability(QueryPublicCapability) returns (QueryPublicCapabilityResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/halo/entitlements/v1/public_capability/{method}"; + option (google.api.http).get = "/halo/entitlements/v1/public_capability"; } rpc RoleCapability(QueryRoleCapability) returns (QueryRoleCapabilityResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/halo/entitlements/v1/role_capability/{method}"; + option (google.api.http).get = "/halo/entitlements/v1/role_capability"; } rpc UserCapability(QueryUserCapability) returns (QueryUserCapabilityResponse) { diff --git a/types/entitlements/query.pb.go b/types/entitlements/query.pb.go index 7a02c08..1f2584e 100644 --- a/types/entitlements/query.pb.go +++ b/types/entitlements/query.pb.go @@ -469,42 +469,41 @@ func init() { func init() { proto.RegisterFile("halo/entitlements/v1/query.proto", fileDescriptor_100425b19d4cf80d) } var fileDescriptor_100425b19d4cf80d = []byte{ - // 547 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0x4f, 0x8b, 0xd3, 0x40, - 0x18, 0xc6, 0x77, 0x94, 0x76, 0xf5, 0x55, 0x8b, 0x8c, 0xab, 0x94, 0x74, 0x37, 0xd4, 0x5c, 0xec, - 0xae, 0x6c, 0xa6, 0xed, 0x9e, 0x44, 0xbd, 0xe8, 0x55, 0x58, 0x0d, 0x78, 0xf1, 0x22, 0x93, 0x76, - 0x68, 0x03, 0x69, 0x26, 0x66, 0x26, 0x95, 0x22, 0x3d, 0xe8, 0xc9, 0xa3, 0xe0, 0xd9, 0x4f, 0xa0, - 0x07, 0xc1, 0x2f, 0xe1, 0x71, 0xc1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xbe, 0x77, 0x0b, 0xdf, 0x2e, 0xb6, 0xf5, 0xbe, 0xc9, 0x76, 0x69, 0x6d, 0x3f, - 0x21, 0x68, 0x6c, 0xac, 0x7b, 0x95, 0x6d, 0x19, 0xad, 0xb4, 0xd5, 0xbf, 0x13, 0xd6, 0xbd, 0xc2, - 0xb6, 0x87, 0x89, 0xde, 0x36, 0x16, 0x2c, 0x2a, 0xd9, 0xe6, 0xef, 0xdb, 0xfc, 0xc1, 0xa3, 0xaf, - 0x0b, 0x13, 0x9d, 0x2c, 0x4c, 0xf4, 0x63, 0x61, 0xa2, 0x77, 0x4b, 0x73, 0xeb, 0x64, 0x69, 0x6e, - 0x7d, 0x5f, 0x9a, 0x5b, 0xcf, 0xfa, 0x23, 0x4f, 0x8e, 0x63, 0xd7, 0x1e, 0xf0, 0x09, 0x09, 0xb8, - 0xeb, 0xb3, 0x43, 0x2a, 0x04, 0x93, 0x22, 0x6b, 0x98, 0xf6, 0x89, 0x9c, 0x85, 0x4c, 0x94, 0xaa, - 0xdc, 0x7a, 0xfa, 0x69, 0x3d, 0xfa, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xf5, 0x26, 0x80, 0x0a, 0xf8, - 0x05, 0x00, 0x00, + // 544 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0x4d, 0x8b, 0xd3, 0x40, + 0x18, 0xc7, 0x77, 0x94, 0x76, 0xf5, 0x51, 0x8b, 0x8c, 0xab, 0x94, 0x74, 0x37, 0xd4, 0x80, 0xb4, + 0x5d, 0xd9, 0x8c, 0xcd, 0x7a, 0x11, 0x3c, 0xe9, 0x55, 0x58, 0x0d, 0x78, 0xf1, 0x22, 0x93, 0x76, + 0x68, 0x03, 0x69, 0x26, 0x66, 0x26, 0x95, 0x22, 0x7b, 0xd0, 0x93, 0xe0, 0x45, 0xf0, 0x1b, 0x78, + 0x14, 0x0f, 0x7e, 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xd7, 0xb4, + 0x0a, 0xcd, 0x1e, 0xbe, 0xa5, 0xd6, 0x8c, 0x97, 0xaa, 0x2c, 0xf9, 0x19, 0x41, 0x6b, 0x63, 0xb9, + 0xeb, 0x24, 0xab, 0x68, 0xad, 0xa4, 0xfa, 0x0d, 0x30, 0xee, 0x17, 0x92, 0x43, 0x4c, 0xd4, 0x92, + 0x91, 0x60, 0x61, 0x49, 0x92, 0xbc, 0xca, 0xde, 0xae, 0xe3, 0x07, 0x8f, 0xbe, 0x2e, 0x75, 0x74, + 0xb2, 0xd4, 0xd1, 0x8f, 0xa5, 0x8e, 0xde, 0xaf, 0xf4, 0xad, 0x93, 0x95, 0xbe, 0xf5, 0x7d, 0xa5, + 0x6f, 0x3d, 0xb3, 0x26, 0xae, 0x9c, 0x46, 0x8e, 0x39, 0xe2, 0x33, 0xe2, 0x73, 0xc7, 0x63, 0x07, + 0x54, 0x08, 0x26, 0x45, 0xda, 0x30, 0xb7, 0x88, 0x5c, 0x04, 0x4c, 0x54, 0xaa, 0x9c, 0x66, 0xf2, + 0x21, 0x3d, 0xfc, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x9e, 0x16, 0xe3, 0x1c, 0xe6, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/types/entitlements/query.pb.gw.go b/types/entitlements/query.pb.gw.go index 06c0c09..4535078 100644 --- a/types/entitlements/query.pb.gw.go +++ b/types/entitlements/query.pb.gw.go @@ -69,26 +69,19 @@ func local_request_Query_Paused_0(ctx context.Context, marshaler runtime.Marshal } +var ( + filter_Query_PublicCapability_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + func request_Query_PublicCapability_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryPublicCapability var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["method"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "method") + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - - protoReq.Method, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "method", err) + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PublicCapability_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := client.PublicCapability(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -100,22 +93,11 @@ func local_request_Query_PublicCapability_0(ctx context.Context, marshaler runti var protoReq QueryPublicCapability var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["method"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "method") + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - - protoReq.Method, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "method", err) + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PublicCapability_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := server.PublicCapability(ctx, &protoReq) @@ -123,26 +105,19 @@ func local_request_Query_PublicCapability_0(ctx context.Context, marshaler runti } +var ( + filter_Query_RoleCapability_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + func request_Query_RoleCapability_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryRoleCapability var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["method"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "method") + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - - protoReq.Method, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "method", err) + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_RoleCapability_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := client.RoleCapability(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -154,22 +129,11 @@ func local_request_Query_RoleCapability_0(ctx context.Context, marshaler runtime var protoReq QueryRoleCapability var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["method"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "method") + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - - protoReq.Method, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "method", err) + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_RoleCapability_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := server.RoleCapability(ctx, &protoReq) @@ -501,9 +465,9 @@ var ( pattern_Query_Paused_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"halo", "entitlements", "v1", "paused"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_PublicCapability_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"halo", "entitlements", "v1", "public_capability", "method"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_PublicCapability_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"halo", "entitlements", "v1", "public_capability"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_RoleCapability_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"halo", "entitlements", "v1", "role_capability", "method"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_RoleCapability_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"halo", "entitlements", "v1", "role_capability"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_UserCapability_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"halo", "entitlements", "v1", "user_capability", "address"}, "", runtime.AssumeColonVerbOpt(false))) )