@alphauspkgs/blue-sdk-ts 1.0.15 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ // @generated by protoc-gen-es v2.7.0 with parameter "target=ts"
3
+ // @generated from file flagger/v1/flagger.proto (package blueapi.flagger.v1, syntax proto3)
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Flagger = exports.EvaluateVariantFlagResponseSchema = exports.EvaluateVariantFlagRequestSchema = exports.EvaluateBooleanFlagResponseSchema = exports.EvaluateBooleanFlagRequestSchema = exports.file_flagger_v1_flagger = void 0;
7
+ const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
8
+ const annotations_pb_1 = require("../../google/api/annotations_pb");
9
+ const wkt_1 = require("@bufbuild/protobuf/wkt");
10
+ const annotations_pb_2 = require("../../protoc-gen-openapiv2/options/annotations_pb");
11
+ /**
12
+ * Describes the file flagger/v1/flagger.proto.
13
+ */
14
+ exports.file_flagger_v1_flagger = (0, codegenv2_1.fileDesc)("ChhmbGFnZ2VyL3YxL2ZsYWdnZXIucHJvdG8SEmJsdWVhcGkuZmxhZ2dlci52MSLPAQoaRXZhbHVhdGVCb29sZWFuRmxhZ1JlcXVlc3QSFAoMbmFtZXNwYWNlX2lkGAEgASgJEgoKAmlkGAIgASgJEhQKB3NlZ21lbnQYAyABKAlIAIgBARJCCgJrdhgEIAMoCzI2LmJsdWVhcGkuZmxhZ2dlci52MS5FdmFsdWF0ZUJvb2xlYW5GbGFnUmVxdWVzdC5LdkVudHJ5GikKB0t2RW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4AUIKCghfc2VnbWVudCIsChtFdmFsdWF0ZUJvb2xlYW5GbGFnUmVzcG9uc2USDQoFdmFsdWUYASABKAgirQEKGkV2YWx1YXRlVmFyaWFudEZsYWdSZXF1ZXN0EhQKDG5hbW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pOChJTZXJ2aWNlIGRlZmluaXRpb24SOGh0dHBzOi8vZ2l0aHViLmNvbS9hbHBoYXVzbGFicy9ibHVlYXBpL3RyZWUvbWFpbi9mbGFnZ2VyQlEKGWNsb3VkLmFscGhhdXMuYXBpLmZsYWdnZXJCDEZsYWdnZXJQcm90b1omZ2l0aHViLmNvbS9hbHBoYXVzbGFicy9ibHVlYXBpL2ZsYWdnZXJiBnByb3RvMw", [annotations_pb_1.file_google_api_annotations, wkt_1.file_google_protobuf_empty, annotations_pb_2.file_protoc_gen_openapiv2_options_annotations]);
15
+ /**
16
+ * Describes the message blueapi.flagger.v1.EvaluateBooleanFlagRequest.
17
+ * Use `create(EvaluateBooleanFlagRequestSchema)` to create a new message.
18
+ */
19
+ exports.EvaluateBooleanFlagRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_flagger_v1_flagger, 0);
20
+ /**
21
+ * Describes the message blueapi.flagger.v1.EvaluateBooleanFlagResponse.
22
+ * Use `create(EvaluateBooleanFlagResponseSchema)` to create a new message.
23
+ */
24
+ exports.EvaluateBooleanFlagResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_flagger_v1_flagger, 1);
25
+ /**
26
+ * Describes the message blueapi.flagger.v1.EvaluateVariantFlagRequest.
27
+ * Use `create(EvaluateVariantFlagRequestSchema)` to create a new message.
28
+ */
29
+ exports.EvaluateVariantFlagRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_flagger_v1_flagger, 2);
30
+ /**
31
+ * Describes the message blueapi.flagger.v1.EvaluateVariantFlagResponse.
32
+ * Use `create(EvaluateVariantFlagResponseSchema)` to create a new message.
33
+ */
34
+ exports.EvaluateVariantFlagResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_flagger_v1_flagger, 3);
35
+ /**
36
+ * Flagger service definition.
37
+ *
38
+ * @generated from service blueapi.flagger.v1.Flagger
39
+ */
40
+ exports.Flagger = (0, codegenv2_1.serviceDesc)(exports.file_flagger_v1_flagger, 0);
@@ -0,0 +1,164 @@
1
+ // @generated by protoc-gen-es v2.7.0 with parameter "target=ts"
2
+ // @generated from file flagger/v1/flagger.proto (package blueapi.flagger.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import { file_google_api_annotations } from "../../google/api/annotations_pb";
8
+ import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
9
+ import { file_protoc_gen_openapiv2_options_annotations } from "../../protoc-gen-openapiv2/options/annotations_pb";
10
+ import type { Message } from "@bufbuild/protobuf";
11
+
12
+ /**
13
+ * Describes the file flagger/v1/flagger.proto.
14
+ */
15
+ export const file_flagger_v1_flagger: GenFile = /*@__PURE__*/
16
+ fileDesc("ChhmbGFnZ2VyL3YxL2ZsYWdnZXIucHJvdG8SEmJsdWVhcGkuZmxhZ2dlci52MSLPAQoaRXZhbHVhdGVCb29sZWFuRmxhZ1JlcXVlc3QSFAoMbmFtZXNwYWNlX2lkGAEgASgJEgoKAmlkGAIgASgJEhQKB3NlZ21lbnQYAyABKAlIAIgBARJCCgJrdhgEIAMoCzI2LmJsdWVhcGkuZmxhZ2dlci52MS5FdmFsdWF0ZUJvb2xlYW5GbGFnUmVxdWVzdC5LdkVudHJ5GikKB0t2RW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4AUIKCghfc2VnbWVudCIsChtFdmFsdWF0ZUJvb2xlYW5GbGFnUmVzcG9uc2USDQoFdmFsdWUYASABKAgirQEKGkV2YWx1YXRlVmFyaWFudEZsYWdSZXF1ZXN0EhQKDG5hbWVzcGFjZV9pZBgBIAEoCRIKCgJpZBgCIAEoCRJCCgJrdhgDIAMoCzI2LmJsdWVhcGkuZmxhZ2dlci52MS5FdmFsdWF0ZVZhcmlhbnRGbGFnUmVxdWVzdC5LdkVudHJ5GikKB0t2RW50cnkSCwoDa2V5GAEgASgJEg0KB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omZ2l0aHViLmNvbS9hbHBoYXVzbGFicy9ibHVlYXBpL2ZsYWdnZXJiBnByb3RvMw", [file_google_api_annotations, file_google_protobuf_empty, file_protoc_gen_openapiv2_options_annotations]);
17
+
18
+ /**
19
+ * @generated from message blueapi.flagger.v1.EvaluateBooleanFlagRequest
20
+ */
21
+ export type EvaluateBooleanFlagRequest = Message<"blueapi.flagger.v1.EvaluateBooleanFlagRequest"> & {
22
+ /**
23
+ * Required. The namespaceId that the flag belongs to.
24
+ *
25
+ * @generated from field: string namespace_id = 1;
26
+ */
27
+ namespaceId: string;
28
+
29
+ /**
30
+ * Required. The flagId
31
+ *
32
+ * @generated from field: string id = 2;
33
+ */
34
+ id: string;
35
+
36
+ /**
37
+ * Optional. The segment to evaluate the flag for. If not provided, the default value of the flag will be returned.
38
+ *
39
+ * @generated from field: optional string segment = 3;
40
+ */
41
+ segment?: string;
42
+
43
+ /**
44
+ * Optional. Key-value pairs for additional context when evaluating the flag. Must be provided if segment is present.
45
+ *
46
+ * @generated from field: map<string, string> kv = 4;
47
+ */
48
+ kv: { [key: string]: string };
49
+ };
50
+
51
+ /**
52
+ * Describes the message blueapi.flagger.v1.EvaluateBooleanFlagRequest.
53
+ * Use `create(EvaluateBooleanFlagRequestSchema)` to create a new message.
54
+ */
55
+ export const EvaluateBooleanFlagRequestSchema: GenMessage<EvaluateBooleanFlagRequest> = /*@__PURE__*/
56
+ messageDesc(file_flagger_v1_flagger, 0);
57
+
58
+ /**
59
+ * @generated from message blueapi.flagger.v1.EvaluateBooleanFlagResponse
60
+ */
61
+ export type EvaluateBooleanFlagResponse = Message<"blueapi.flagger.v1.EvaluateBooleanFlagResponse"> & {
62
+ /**
63
+ * The boolean value of the flag.
64
+ *
65
+ * @generated from field: bool value = 1;
66
+ */
67
+ value: boolean;
68
+ };
69
+
70
+ /**
71
+ * Describes the message blueapi.flagger.v1.EvaluateBooleanFlagResponse.
72
+ * Use `create(EvaluateBooleanFlagResponseSchema)` to create a new message.
73
+ */
74
+ export const EvaluateBooleanFlagResponseSchema: GenMessage<EvaluateBooleanFlagResponse> = /*@__PURE__*/
75
+ messageDesc(file_flagger_v1_flagger, 1);
76
+
77
+ /**
78
+ * @generated from message blueapi.flagger.v1.EvaluateVariantFlagRequest
79
+ */
80
+ export type EvaluateVariantFlagRequest = Message<"blueapi.flagger.v1.EvaluateVariantFlagRequest"> & {
81
+ /**
82
+ * Required. The namespaceId that the flag belongs to.
83
+ *
84
+ * @generated from field: string namespace_id = 1;
85
+ */
86
+ namespaceId: string;
87
+
88
+ /**
89
+ * Required. The flagId
90
+ *
91
+ * @generated from field: string id = 2;
92
+ */
93
+ id: string;
94
+
95
+ /**
96
+ * Optional. Key-value pairs for additional context when evaluating the flag.
97
+ *
98
+ * @generated from field: map<string, string> kv = 3;
99
+ */
100
+ kv: { [key: string]: string };
101
+ };
102
+
103
+ /**
104
+ * Describes the message blueapi.flagger.v1.EvaluateVariantFlagRequest.
105
+ * Use `create(EvaluateVariantFlagRequestSchema)` to create a new message.
106
+ */
107
+ export const EvaluateVariantFlagRequestSchema: GenMessage<EvaluateVariantFlagRequest> = /*@__PURE__*/
108
+ messageDesc(file_flagger_v1_flagger, 2);
109
+
110
+ /**
111
+ * @generated from message blueapi.flagger.v1.EvaluateVariantFlagResponse
112
+ */
113
+ export type EvaluateVariantFlagResponse = Message<"blueapi.flagger.v1.EvaluateVariantFlagResponse"> & {
114
+ /**
115
+ * The variant value of the flag. Empty string if no match is found.
116
+ *
117
+ * @generated from field: string value = 1;
118
+ */
119
+ value: string;
120
+
121
+ /**
122
+ * Optional. The attachment attached to the returned variant.
123
+ *
124
+ * @generated from field: map<string, string> attachment = 2;
125
+ */
126
+ attachment: { [key: string]: string };
127
+ };
128
+
129
+ /**
130
+ * Describes the message blueapi.flagger.v1.EvaluateVariantFlagResponse.
131
+ * Use `create(EvaluateVariantFlagResponseSchema)` to create a new message.
132
+ */
133
+ export const EvaluateVariantFlagResponseSchema: GenMessage<EvaluateVariantFlagResponse> = /*@__PURE__*/
134
+ messageDesc(file_flagger_v1_flagger, 3);
135
+
136
+ /**
137
+ * Flagger service definition.
138
+ *
139
+ * @generated from service blueapi.flagger.v1.Flagger
140
+ */
141
+ export const Flagger: GenService<{
142
+ /**
143
+ * EvaluateBooleanFlag returns the boolean value of a flag for a given namespace.
144
+ *
145
+ * @generated from rpc blueapi.flagger.v1.Flagger.EvaluateBooleanFlag
146
+ */
147
+ evaluateBooleanFlag: {
148
+ methodKind: "unary";
149
+ input: typeof EvaluateBooleanFlagRequestSchema;
150
+ output: typeof EvaluateBooleanFlagResponseSchema;
151
+ },
152
+ /**
153
+ * EvaluateVariantFlag returns the variant value of a flag for a given namespace.
154
+ *
155
+ * @generated from rpc blueapi.flagger.v1.Flagger.EvaluateVariantFlag
156
+ */
157
+ evaluateVariantFlag: {
158
+ methodKind: "unary";
159
+ input: typeof EvaluateVariantFlagRequestSchema;
160
+ output: typeof EvaluateVariantFlagResponseSchema;
161
+ },
162
+ }> = /*@__PURE__*/
163
+ serviceDesc(file_flagger_v1_flagger, 0);
164
+
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ // @generated by protoc-gen-es v2.7.0 with parameter "target=ts"
3
+ // @generated from file flags/v1/flags.proto (package blueapi.flags.v1, syntax proto3)
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Flags = exports.EvaluateVariantFlagResponseSchema = exports.EvaluateVariantFlagRequestSchema = exports.EvaluateBooleanFlagResponseSchema = exports.EvaluateBooleanFlagRequestSchema = exports.file_flags_v1_flags = void 0;
7
+ const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
8
+ const annotations_pb_1 = require("../../google/api/annotations_pb");
9
+ const wkt_1 = require("@bufbuild/protobuf/wkt");
10
+ const annotations_pb_2 = require("../../protoc-gen-openapiv2/options/annotations_pb");
11
+ /**
12
+ * Describes the file flags/v1/flags.proto.
13
+ */
14
+ exports.file_flags_v1_flags = (0, codegenv2_1.fileDesc)("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bnQve2lkfTpldmFsGpABkkGMARI8KEFMUEhBKSBGbGFnIEFQSS4gQmFzZSBVUkw6IGh0dHBzOi8vYXBpLmFscGhhdXMuY2xvdWQvbS9ibHVlGkwKElNlcnZpY2UgZGVmaW5pdGlvbhI2aHR0cHM6Ly9naXRodWIuY29tL2FscGhhdXNsYWJzL2JsdWVhcGkvdHJlZS9tYWluL2ZsYWdzQksKF2Nsb3VkLmFscGhhdXMuYXBpLmZsYWdzQgpGbGFnc1Byb3RvWiRnaXRodWIuY29tL2FscGhhdXNsYWJzL2JsdWVhcGkvZmxhZ3NiBnByb3RvMw", [annotations_pb_1.file_google_api_annotations, wkt_1.file_google_protobuf_empty, wkt_1.file_google_protobuf_struct, annotations_pb_2.file_protoc_gen_openapiv2_options_annotations]);
15
+ /**
16
+ * Describes the message blueapi.flags.v1.EvaluateBooleanFlagRequest.
17
+ * Use `create(EvaluateBooleanFlagRequestSchema)` to create a new message.
18
+ */
19
+ exports.EvaluateBooleanFlagRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_flags_v1_flags, 0);
20
+ /**
21
+ * Describes the message blueapi.flags.v1.EvaluateBooleanFlagResponse.
22
+ * Use `create(EvaluateBooleanFlagResponseSchema)` to create a new message.
23
+ */
24
+ exports.EvaluateBooleanFlagResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_flags_v1_flags, 1);
25
+ /**
26
+ * Describes the message blueapi.flags.v1.EvaluateVariantFlagRequest.
27
+ * Use `create(EvaluateVariantFlagRequestSchema)` to create a new message.
28
+ */
29
+ exports.EvaluateVariantFlagRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_flags_v1_flags, 2);
30
+ /**
31
+ * Describes the message blueapi.flags.v1.EvaluateVariantFlagResponse.
32
+ * Use `create(EvaluateVariantFlagResponseSchema)` to create a new message.
33
+ */
34
+ exports.EvaluateVariantFlagResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_flags_v1_flags, 3);
35
+ /**
36
+ * Flags service definition.
37
+ *
38
+ * @generated from service blueapi.flags.v1.Flags
39
+ */
40
+ exports.Flags = (0, codegenv2_1.serviceDesc)(exports.file_flags_v1_flags, 0);
@@ -0,0 +1,164 @@
1
+ // @generated by protoc-gen-es v2.7.0 with parameter "target=ts"
2
+ // @generated from file flags/v1/flags.proto (package blueapi.flags.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import { file_google_api_annotations } from "../../google/api/annotations_pb";
8
+ import { file_google_protobuf_empty, file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
9
+ import { file_protoc_gen_openapiv2_options_annotations } from "../../protoc-gen-openapiv2/options/annotations_pb";
10
+ import type { JsonObject, Message } from "@bufbuild/protobuf";
11
+
12
+ /**
13
+ * Describes the file flags/v1/flags.proto.
14
+ */
15
+ export const file_flags_v1_flags: GenFile = /*@__PURE__*/
16
+ fileDesc("ChRmbGFncy92MS9mbGFncy5wcm90bxIQYmx1ZWFwaS5mbGFncy52MSKNAQoaRXZhbHVhdGVCb29sZWFuRmxhZ1JlcXVlc3QSFAoMbmFtZXNwYWNlX2lkGAEgASgJEgoKAmlkGAIgASgJEhQKB3NlZ21lbnQYAyABKAlIAIgBARIrCgphdHRyaWJ1dGVzGAQgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdEIKCghfc2VnbWVudCIsChtFdmFsdWF0ZUJvb2xlYW5GbGFnUmVzcG9uc2USDQoFdmFsdWUYASABKAgiawoaRXZhbHVhdGVWYXJpYW50RmxhZ1JlcXVlc3QSFAoMbmFtZXNwYWNlX2lkGAEgASgJEgoKAmlkGAIgASgJEisKCmF0dHJpYnV0ZXMYAyABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0IlkKG0V2YWx1YXRlVmFyaWFudEZsYWdSZXNwb25zZRINCgV2YWx1ZRgBIAEoCRIrCgphdHRhY2htZW50GAIgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdDKGBAoFRmxhZ3MSswEKE0V2YWx1YXRlQm9vbGVhbkZsYWcSLC5ibHVlYXBpLmZsYWdzLnYxLkV2YWx1YXRlQm9vbGVhbkZsYWdSZXF1ZXN0Gi0uYmx1ZWFwaS5mbGFncy52MS5FdmFsdWF0ZUJvb2xlYW5GbGFnUmVzcG9uc2UiP4LT5JMCOToBKiI0L2ZsYWdzL3YxL25hbWVzcGFjZS97bmFtZXNwYWNlX2lkfS9ib29sZWFuL3tpZH06ZXZhbBKzAQoTRXZhbHVhdGVWYXJpYW50RmxhZxIsLmJsdWVhcGkuZmxhZ3MudjEuRXZhbHVhdGVWYXJpYW50RmxhZ1JlcXVlc3QaLS5ibHVlYXBpLmZsYWdzLnYxLkV2YWx1YXRlVmFyaWFudEZsYWdSZXNwb25zZSI/gtPkkwI5OgEqIjQvZmxhZ3MvdjEvbmFtZXNwYWNlL3tuYW1lc3BhY2VfaWR9L3ZhcmlhbnQve2lkfTpldmFsGpABkkGMARI8KEFMUEhBKSBGbGFnIEFQSS4gQmFzZSBVUkw6IGh0dHBzOi8vYXBpLmFscGhhdXMuY2xvdWQvbS9ibHVlGkwKElNlcnZpY2UgZGVmaW5pdGlvbhI2aHR0cHM6Ly9naXRodWIuY29tL2FscGhhdXNsYWJzL2JsdWVhcGkvdHJlZS9tYWluL2ZsYWdzQksKF2Nsb3VkLmFscGhhdXMuYXBpLmZsYWdzQgpGbGFnc1Byb3RvWiRnaXRodWIuY29tL2FscGhhdXNsYWJzL2JsdWVhcGkvZmxhZ3NiBnByb3RvMw", [file_google_api_annotations, file_google_protobuf_empty, file_google_protobuf_struct, file_protoc_gen_openapiv2_options_annotations]);
17
+
18
+ /**
19
+ * @generated from message blueapi.flags.v1.EvaluateBooleanFlagRequest
20
+ */
21
+ export type EvaluateBooleanFlagRequest = Message<"blueapi.flags.v1.EvaluateBooleanFlagRequest"> & {
22
+ /**
23
+ * Required. The namespaceId that the flag belongs to.
24
+ *
25
+ * @generated from field: string namespace_id = 1;
26
+ */
27
+ namespaceId: string;
28
+
29
+ /**
30
+ * Required. The flagId
31
+ *
32
+ * @generated from field: string id = 2;
33
+ */
34
+ id: string;
35
+
36
+ /**
37
+ * Optional. The segment to evaluate the flag for. If not provided, the default value of the flag will be returned.
38
+ *
39
+ * @generated from field: optional string segment = 3;
40
+ */
41
+ segment?: string;
42
+
43
+ /**
44
+ * Optional. Key-value pairs for additional context when evaluating the flag. Must be provided if segment is present.
45
+ *
46
+ * @generated from field: google.protobuf.Struct attributes = 4;
47
+ */
48
+ attributes?: JsonObject;
49
+ };
50
+
51
+ /**
52
+ * Describes the message blueapi.flags.v1.EvaluateBooleanFlagRequest.
53
+ * Use `create(EvaluateBooleanFlagRequestSchema)` to create a new message.
54
+ */
55
+ export const EvaluateBooleanFlagRequestSchema: GenMessage<EvaluateBooleanFlagRequest> = /*@__PURE__*/
56
+ messageDesc(file_flags_v1_flags, 0);
57
+
58
+ /**
59
+ * @generated from message blueapi.flags.v1.EvaluateBooleanFlagResponse
60
+ */
61
+ export type EvaluateBooleanFlagResponse = Message<"blueapi.flags.v1.EvaluateBooleanFlagResponse"> & {
62
+ /**
63
+ * The boolean value of the flag.
64
+ *
65
+ * @generated from field: bool value = 1;
66
+ */
67
+ value: boolean;
68
+ };
69
+
70
+ /**
71
+ * Describes the message blueapi.flags.v1.EvaluateBooleanFlagResponse.
72
+ * Use `create(EvaluateBooleanFlagResponseSchema)` to create a new message.
73
+ */
74
+ export const EvaluateBooleanFlagResponseSchema: GenMessage<EvaluateBooleanFlagResponse> = /*@__PURE__*/
75
+ messageDesc(file_flags_v1_flags, 1);
76
+
77
+ /**
78
+ * @generated from message blueapi.flags.v1.EvaluateVariantFlagRequest
79
+ */
80
+ export type EvaluateVariantFlagRequest = Message<"blueapi.flags.v1.EvaluateVariantFlagRequest"> & {
81
+ /**
82
+ * Required. The namespaceId that the flag belongs to.
83
+ *
84
+ * @generated from field: string namespace_id = 1;
85
+ */
86
+ namespaceId: string;
87
+
88
+ /**
89
+ * Required. The flagId
90
+ *
91
+ * @generated from field: string id = 2;
92
+ */
93
+ id: string;
94
+
95
+ /**
96
+ * Optional. Key-value pairs for additional context when evaluating the flag.
97
+ *
98
+ * @generated from field: google.protobuf.Struct attributes = 3;
99
+ */
100
+ attributes?: JsonObject;
101
+ };
102
+
103
+ /**
104
+ * Describes the message blueapi.flags.v1.EvaluateVariantFlagRequest.
105
+ * Use `create(EvaluateVariantFlagRequestSchema)` to create a new message.
106
+ */
107
+ export const EvaluateVariantFlagRequestSchema: GenMessage<EvaluateVariantFlagRequest> = /*@__PURE__*/
108
+ messageDesc(file_flags_v1_flags, 2);
109
+
110
+ /**
111
+ * @generated from message blueapi.flags.v1.EvaluateVariantFlagResponse
112
+ */
113
+ export type EvaluateVariantFlagResponse = Message<"blueapi.flags.v1.EvaluateVariantFlagResponse"> & {
114
+ /**
115
+ * The variant value of the flag. Empty string if no match is found.
116
+ *
117
+ * @generated from field: string value = 1;
118
+ */
119
+ value: string;
120
+
121
+ /**
122
+ * Optional. The attachment attached to the returned variant.
123
+ *
124
+ * @generated from field: google.protobuf.Struct attachment = 2;
125
+ */
126
+ attachment?: JsonObject;
127
+ };
128
+
129
+ /**
130
+ * Describes the message blueapi.flags.v1.EvaluateVariantFlagResponse.
131
+ * Use `create(EvaluateVariantFlagResponseSchema)` to create a new message.
132
+ */
133
+ export const EvaluateVariantFlagResponseSchema: GenMessage<EvaluateVariantFlagResponse> = /*@__PURE__*/
134
+ messageDesc(file_flags_v1_flags, 3);
135
+
136
+ /**
137
+ * Flags service definition.
138
+ *
139
+ * @generated from service blueapi.flags.v1.Flags
140
+ */
141
+ export const Flags: GenService<{
142
+ /**
143
+ * EvaluateBooleanFlag returns the boolean value of a flag for a given namespace.
144
+ *
145
+ * @generated from rpc blueapi.flags.v1.Flags.EvaluateBooleanFlag
146
+ */
147
+ evaluateBooleanFlag: {
148
+ methodKind: "unary";
149
+ input: typeof EvaluateBooleanFlagRequestSchema;
150
+ output: typeof EvaluateBooleanFlagResponseSchema;
151
+ },
152
+ /**
153
+ * EvaluateVariantFlag returns the variant value of a flag for a given namespace.
154
+ *
155
+ * @generated from rpc blueapi.flags.v1.Flags.EvaluateVariantFlag
156
+ */
157
+ evaluateVariantFlag: {
158
+ methodKind: "unary";
159
+ input: typeof EvaluateVariantFlagRequestSchema;
160
+ output: typeof EvaluateVariantFlagResponseSchema;
161
+ },
162
+ }> = /*@__PURE__*/
163
+ serviceDesc(file_flags_v1_flags, 0);
164
+