@opsee/mcp-server 0.1.0

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.
Files changed (136) hide show
  1. package/bin/opsee-mcp.js +21 -0
  2. package/gen/api/v1/account_pb.d.ts +393 -0
  3. package/gen/api/v1/account_pb.js +111 -0
  4. package/gen/api/v1/activity_log_pb.d.ts +297 -0
  5. package/gen/api/v1/activity_log_pb.js +89 -0
  6. package/gen/api/v1/ai_run_status_pb.d.ts +237 -0
  7. package/gen/api/v1/ai_run_status_pb.js +89 -0
  8. package/gen/api/v1/ai_unit_category_pb.d.ts +237 -0
  9. package/gen/api/v1/ai_unit_category_pb.js +89 -0
  10. package/gen/api/v1/ai_unit_stage_pb.d.ts +347 -0
  11. package/gen/api/v1/ai_unit_stage_pb.js +117 -0
  12. package/gen/api/v1/ai_unit_status_pb.d.ts +237 -0
  13. package/gen/api/v1/ai_unit_status_pb.js +89 -0
  14. package/gen/api/v1/ai_workflow_run_pb.d.ts +542 -0
  15. package/gen/api/v1/ai_workflow_run_pb.js +159 -0
  16. package/gen/api/v1/ai_workflow_unit_pb.d.ts +431 -0
  17. package/gen/api/v1/ai_workflow_unit_pb.js +103 -0
  18. package/gen/api/v1/attachment_pb.d.ts +297 -0
  19. package/gen/api/v1/attachment_pb.js +89 -0
  20. package/gen/api/v1/billing_pb.d.ts +1206 -0
  21. package/gen/api/v1/billing_pb.js +288 -0
  22. package/gen/api/v1/board_column_pb.d.ts +282 -0
  23. package/gen/api/v1/board_column_pb.js +89 -0
  24. package/gen/api/v1/board_pb.d.ts +296 -0
  25. package/gen/api/v1/board_pb.js +96 -0
  26. package/gen/api/v1/comment_pb.d.ts +277 -0
  27. package/gen/api/v1/comment_pb.js +89 -0
  28. package/gen/api/v1/company_pb.d.ts +452 -0
  29. package/gen/api/v1/company_pb.js +110 -0
  30. package/gen/api/v1/component_pb.d.ts +267 -0
  31. package/gen/api/v1/component_pb.js +89 -0
  32. package/gen/api/v1/contact_pb.d.ts +58 -0
  33. package/gen/api/v1/contact_pb.js +28 -0
  34. package/gen/api/v1/country_pb.d.ts +257 -0
  35. package/gen/api/v1/country_pb.js +89 -0
  36. package/gen/api/v1/credit_transaction_pb.d.ts +277 -0
  37. package/gen/api/v1/credit_transaction_pb.js +89 -0
  38. package/gen/api/v1/cycle_pb.d.ts +281 -0
  39. package/gen/api/v1/cycle_pb.js +87 -0
  40. package/gen/api/v1/deployment_pb.d.ts +277 -0
  41. package/gen/api/v1/deployment_pb.js +89 -0
  42. package/gen/api/v1/doc_page_pb.d.ts +505 -0
  43. package/gen/api/v1/doc_page_pb.js +138 -0
  44. package/gen/api/v1/doc_page_version_pb.d.ts +287 -0
  45. package/gen/api/v1/doc_page_version_pb.js +89 -0
  46. package/gen/api/v1/doc_space_pb.d.ts +297 -0
  47. package/gen/api/v1/doc_space_pb.js +89 -0
  48. package/gen/api/v1/document_link_pb.d.ts +174 -0
  49. package/gen/api/v1/document_link_pb.js +61 -0
  50. package/gen/api/v1/document_pb.d.ts +548 -0
  51. package/gen/api/v1/document_pb.js +152 -0
  52. package/gen/api/v1/environment_pb.d.ts +277 -0
  53. package/gen/api/v1/environment_pb.js +89 -0
  54. package/gen/api/v1/filter_pb.d.ts +66 -0
  55. package/gen/api/v1/filter_pb.js +26 -0
  56. package/gen/api/v1/label_pb.d.ts +267 -0
  57. package/gen/api/v1/label_pb.js +89 -0
  58. package/gen/api/v1/models_pb.d.ts +3137 -0
  59. package/gen/api/v1/models_pb.js +357 -0
  60. package/gen/api/v1/notification_pb.d.ts +317 -0
  61. package/gen/api/v1/notification_pb.js +89 -0
  62. package/gen/api/v1/orchestrator_pb.d.ts +1813 -0
  63. package/gen/api/v1/orchestrator_pb.js +353 -0
  64. package/gen/api/v1/pagination_pb.d.ts +92 -0
  65. package/gen/api/v1/pagination_pb.js +33 -0
  66. package/gen/api/v1/permission_pb.d.ts +222 -0
  67. package/gen/api/v1/permission_pb.js +89 -0
  68. package/gen/api/v1/preference_pb.d.ts +109 -0
  69. package/gen/api/v1/preference_pb.js +42 -0
  70. package/gen/api/v1/project_membership_pb.d.ts +321 -0
  71. package/gen/api/v1/project_membership_pb.js +103 -0
  72. package/gen/api/v1/project_pb.d.ts +473 -0
  73. package/gen/api/v1/project_pb.js +145 -0
  74. package/gen/api/v1/reporting_pb.d.ts +1481 -0
  75. package/gen/api/v1/reporting_pb.js +373 -0
  76. package/gen/api/v1/role_pb.d.ts +252 -0
  77. package/gen/api/v1/role_pb.js +101 -0
  78. package/gen/api/v1/subscription_pb.d.ts +307 -0
  79. package/gen/api/v1/subscription_pb.js +89 -0
  80. package/gen/api/v1/swagger_pb.d.ts +11 -0
  81. package/gen/api/v1/swagger_pb.js +13 -0
  82. package/gen/api/v1/task_component_pb.d.ts +242 -0
  83. package/gen/api/v1/task_component_pb.js +89 -0
  84. package/gen/api/v1/task_contributor_pb.d.ts +252 -0
  85. package/gen/api/v1/task_contributor_pb.js +89 -0
  86. package/gen/api/v1/task_doc_page_pb.d.ts +186 -0
  87. package/gen/api/v1/task_doc_page_pb.js +73 -0
  88. package/gen/api/v1/task_document_pb.d.ts +186 -0
  89. package/gen/api/v1/task_document_pb.js +73 -0
  90. package/gen/api/v1/task_label_pb.d.ts +242 -0
  91. package/gen/api/v1/task_label_pb.js +89 -0
  92. package/gen/api/v1/task_pb.d.ts +780 -0
  93. package/gen/api/v1/task_pb.js +173 -0
  94. package/gen/api/v1/task_priority_pb.d.ts +267 -0
  95. package/gen/api/v1/task_priority_pb.js +89 -0
  96. package/gen/api/v1/task_repository_pb.d.ts +242 -0
  97. package/gen/api/v1/task_repository_pb.js +89 -0
  98. package/gen/api/v1/task_type_pb.d.ts +277 -0
  99. package/gen/api/v1/task_type_pb.js +89 -0
  100. package/gen/api/v1/test_run_pb.d.ts +277 -0
  101. package/gen/api/v1/test_run_pb.js +89 -0
  102. package/gen/api/v1/user_pb.d.ts +366 -0
  103. package/gen/api/v1/user_pb.js +117 -0
  104. package/gen/api/v1/vcs_connection_pb.d.ts +964 -0
  105. package/gen/api/v1/vcs_connection_pb.js +228 -0
  106. package/gen/api/v1/vcs_integration_pb.d.ts +479 -0
  107. package/gen/api/v1/vcs_integration_pb.js +125 -0
  108. package/gen/api/v1/vcs_pb.d.ts +36 -0
  109. package/gen/api/v1/vcs_pb.js +24 -0
  110. package/gen/api/v1/view_pb.d.ts +337 -0
  111. package/gen/api/v1/view_pb.js +102 -0
  112. package/gen/google/api/annotations_pb.d.ts +34 -0
  113. package/gen/google/api/annotations_pb.js +36 -0
  114. package/gen/google/api/http_pb.d.ts +477 -0
  115. package/gen/google/api/http_pb.js +47 -0
  116. package/gen/protoc-gen-openapiv2/options/annotations_pb.d.ts +63 -0
  117. package/gen/protoc-gen-openapiv2/options/annotations_pb.js +69 -0
  118. package/gen/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +1497 -0
  119. package/gen/protoc-gen-openapiv2/options/openapiv2_pb.js +232 -0
  120. package/gen/validate/validate_pb.d.ts +1953 -0
  121. package/gen/validate/validate_pb.js +223 -0
  122. package/package.json +37 -0
  123. package/src/auth/credentials.ts +65 -0
  124. package/src/auth/login.ts +96 -0
  125. package/src/auth/manager.ts +49 -0
  126. package/src/client/api.ts +91 -0
  127. package/src/index.ts +13 -0
  128. package/src/server.ts +26 -0
  129. package/src/tools/cycles.ts +77 -0
  130. package/src/tools/docs.ts +148 -0
  131. package/src/tools/projects.ts +40 -0
  132. package/src/tools/repositories.ts +41 -0
  133. package/src/tools/task-metadata.ts +96 -0
  134. package/src/tools/tasks.ts +228 -0
  135. package/src/tools/user.ts +33 -0
  136. package/src/utils/format.ts +141 -0
@@ -0,0 +1,222 @@
1
+ // @generated by protoc-gen-es v2.2.3
2
+ // @generated from file api/v1/permission.proto (package api.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
6
+ import type { Message } from "@bufbuild/protobuf";
7
+ import type { Pagination } from "./pagination_pb";
8
+ import type { FilterOptions } from "./filter_pb";
9
+ import type { Permission } from "./models_pb";
10
+ import type { EmptySchema } from "@bufbuild/protobuf/wkt";
11
+
12
+ /**
13
+ * Describes the file api/v1/permission.proto.
14
+ */
15
+ export declare const file_api_v1_permission: GenFile;
16
+
17
+ /**
18
+ * Request definitions
19
+ *
20
+ * @generated from message api.v1.AddPermissionRequest
21
+ */
22
+ export declare type AddPermissionRequest = Message<"api.v1.AddPermissionRequest"> & {
23
+ /**
24
+ * @generated from field: string name = 1;
25
+ */
26
+ name: string;
27
+ };
28
+
29
+ /**
30
+ * Describes the message api.v1.AddPermissionRequest.
31
+ * Use `create(AddPermissionRequestSchema)` to create a new message.
32
+ */
33
+ export declare const AddPermissionRequestSchema: GenMessage<AddPermissionRequest>;
34
+
35
+ /**
36
+ * @generated from message api.v1.EditPermissionRequest
37
+ */
38
+ export declare type EditPermissionRequest = Message<"api.v1.EditPermissionRequest"> & {
39
+ /**
40
+ * @generated from field: uint32 id = 1;
41
+ */
42
+ id: number;
43
+
44
+ /**
45
+ * @generated from field: string name = 2;
46
+ */
47
+ name: string;
48
+ };
49
+
50
+ /**
51
+ * Describes the message api.v1.EditPermissionRequest.
52
+ * Use `create(EditPermissionRequestSchema)` to create a new message.
53
+ */
54
+ export declare const EditPermissionRequestSchema: GenMessage<EditPermissionRequest>;
55
+
56
+ /**
57
+ * @generated from message api.v1.GetPermissionRequest
58
+ */
59
+ export declare type GetPermissionRequest = Message<"api.v1.GetPermissionRequest"> & {
60
+ /**
61
+ * @generated from field: uint32 id = 1;
62
+ */
63
+ id: number;
64
+ };
65
+
66
+ /**
67
+ * Describes the message api.v1.GetPermissionRequest.
68
+ * Use `create(GetPermissionRequestSchema)` to create a new message.
69
+ */
70
+ export declare const GetPermissionRequestSchema: GenMessage<GetPermissionRequest>;
71
+
72
+ /**
73
+ * @generated from message api.v1.GetPermissionsRequest
74
+ */
75
+ export declare type GetPermissionsRequest = Message<"api.v1.GetPermissionsRequest"> & {
76
+ /**
77
+ * @generated from field: api.v1.Pagination pagination = 1;
78
+ */
79
+ pagination?: Pagination;
80
+
81
+ /**
82
+ * @generated from field: api.v1.FilterOptions filter_options = 2;
83
+ */
84
+ filterOptions?: FilterOptions;
85
+ };
86
+
87
+ /**
88
+ * Describes the message api.v1.GetPermissionsRequest.
89
+ * Use `create(GetPermissionsRequestSchema)` to create a new message.
90
+ */
91
+ export declare const GetPermissionsRequestSchema: GenMessage<GetPermissionsRequest>;
92
+
93
+ /**
94
+ * @generated from message api.v1.DeletePermissionRequest
95
+ */
96
+ export declare type DeletePermissionRequest = Message<"api.v1.DeletePermissionRequest"> & {
97
+ /**
98
+ * @generated from field: uint32 id = 1;
99
+ */
100
+ id: number;
101
+ };
102
+
103
+ /**
104
+ * Describes the message api.v1.DeletePermissionRequest.
105
+ * Use `create(DeletePermissionRequestSchema)` to create a new message.
106
+ */
107
+ export declare const DeletePermissionRequestSchema: GenMessage<DeletePermissionRequest>;
108
+
109
+ /**
110
+ * Response definitions
111
+ *
112
+ * @generated from message api.v1.GetPermissionsResponse
113
+ */
114
+ export declare type GetPermissionsResponse = Message<"api.v1.GetPermissionsResponse"> & {
115
+ /**
116
+ * @generated from field: repeated api.v1.Permission permissions = 1;
117
+ */
118
+ permissions: Permission[];
119
+ };
120
+
121
+ /**
122
+ * Describes the message api.v1.GetPermissionsResponse.
123
+ * Use `create(GetPermissionsResponseSchema)` to create a new message.
124
+ */
125
+ export declare const GetPermissionsResponseSchema: GenMessage<GetPermissionsResponse>;
126
+
127
+ /**
128
+ * @generated from message api.v1.GetPermissionResponse
129
+ */
130
+ export declare type GetPermissionResponse = Message<"api.v1.GetPermissionResponse"> & {
131
+ /**
132
+ * @generated from field: api.v1.Permission permission = 1;
133
+ */
134
+ permission?: Permission;
135
+ };
136
+
137
+ /**
138
+ * Describes the message api.v1.GetPermissionResponse.
139
+ * Use `create(GetPermissionResponseSchema)` to create a new message.
140
+ */
141
+ export declare const GetPermissionResponseSchema: GenMessage<GetPermissionResponse>;
142
+
143
+ /**
144
+ * @generated from message api.v1.AddPermissionResponse
145
+ */
146
+ export declare type AddPermissionResponse = Message<"api.v1.AddPermissionResponse"> & {
147
+ /**
148
+ * @generated from field: api.v1.Permission permission = 1;
149
+ */
150
+ permission?: Permission;
151
+ };
152
+
153
+ /**
154
+ * Describes the message api.v1.AddPermissionResponse.
155
+ * Use `create(AddPermissionResponseSchema)` to create a new message.
156
+ */
157
+ export declare const AddPermissionResponseSchema: GenMessage<AddPermissionResponse>;
158
+
159
+ /**
160
+ * @generated from message api.v1.EditPermissionResponse
161
+ */
162
+ export declare type EditPermissionResponse = Message<"api.v1.EditPermissionResponse"> & {
163
+ /**
164
+ * @generated from field: api.v1.Permission permission = 1;
165
+ */
166
+ permission?: Permission;
167
+ };
168
+
169
+ /**
170
+ * Describes the message api.v1.EditPermissionResponse.
171
+ * Use `create(EditPermissionResponseSchema)` to create a new message.
172
+ */
173
+ export declare const EditPermissionResponseSchema: GenMessage<EditPermissionResponse>;
174
+
175
+ /**
176
+ * Service definition
177
+ *
178
+ * @generated from service api.v1.PermissionService
179
+ */
180
+ export declare const PermissionService: GenService<{
181
+ /**
182
+ * @generated from rpc api.v1.PermissionService.AddPermission
183
+ */
184
+ addPermission: {
185
+ methodKind: "unary";
186
+ input: typeof AddPermissionRequestSchema;
187
+ output: typeof AddPermissionResponseSchema;
188
+ },
189
+ /**
190
+ * @generated from rpc api.v1.PermissionService.EditPermission
191
+ */
192
+ editPermission: {
193
+ methodKind: "unary";
194
+ input: typeof EditPermissionRequestSchema;
195
+ output: typeof EditPermissionResponseSchema;
196
+ },
197
+ /**
198
+ * @generated from rpc api.v1.PermissionService.GetPermission
199
+ */
200
+ getPermission: {
201
+ methodKind: "unary";
202
+ input: typeof GetPermissionRequestSchema;
203
+ output: typeof GetPermissionResponseSchema;
204
+ },
205
+ /**
206
+ * @generated from rpc api.v1.PermissionService.GetPermissions
207
+ */
208
+ getPermissions: {
209
+ methodKind: "unary";
210
+ input: typeof GetPermissionsRequestSchema;
211
+ output: typeof GetPermissionsResponseSchema;
212
+ },
213
+ /**
214
+ * @generated from rpc api.v1.PermissionService.DeletePermission
215
+ */
216
+ deletePermission: {
217
+ methodKind: "unary";
218
+ input: typeof DeletePermissionRequestSchema;
219
+ output: typeof EmptySchema;
220
+ },
221
+ }>;
222
+
@@ -0,0 +1,89 @@
1
+ // @generated by protoc-gen-es v2.2.3
2
+ // @generated from file api/v1/permission.proto (package api.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
6
+ import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
7
+ import { file_google_api_annotations } from "../../google/api/annotations_pb";
8
+ import { file_validate_validate } from "../../validate/validate_pb";
9
+ import { file_api_v1_pagination } from "./pagination_pb";
10
+ import { file_api_v1_filter } from "./filter_pb";
11
+ import { file_api_v1_models } from "./models_pb";
12
+
13
+ /**
14
+ * Describes the file api/v1/permission.proto.
15
+ */
16
+ export const file_api_v1_permission = /*@__PURE__*/
17
+ fileDesc("ChdhcGkvdjEvcGVybWlzc2lvbi5wcm90bxIGYXBpLnYxIi0KFEFkZFBlcm1pc3Npb25SZXF1ZXN0EhUKBG5hbWUYASABKAlCB/pCBHICEAEiQwoVRWRpdFBlcm1pc3Npb25SZXF1ZXN0EhMKAmlkGAEgASgNQgf6QgQqAigBEhUKBG5hbWUYAiABKAlCB/pCBHICEAEiKwoUR2V0UGVybWlzc2lvblJlcXVlc3QSEwoCaWQYASABKA1CB/pCBCoCKAEieAoVR2V0UGVybWlzc2lvbnNSZXF1ZXN0EjAKCnBhZ2luYXRpb24YASABKAsyEi5hcGkudjEuUGFnaW5hdGlvbkII+kIFigECEAESLQoOZmlsdGVyX29wdGlvbnMYAiABKAsyFS5hcGkudjEuRmlsdGVyT3B0aW9ucyIuChdEZWxldGVQZXJtaXNzaW9uUmVxdWVzdBITCgJpZBgBIAEoDUIH+kIEKgIoASJBChZHZXRQZXJtaXNzaW9uc1Jlc3BvbnNlEicKC3Blcm1pc3Npb25zGAEgAygLMhIuYXBpLnYxLlBlcm1pc3Npb24iPwoVR2V0UGVybWlzc2lvblJlc3BvbnNlEiYKCnBlcm1pc3Npb24YASABKAsyEi5hcGkudjEuUGVybWlzc2lvbiI/ChVBZGRQZXJtaXNzaW9uUmVzcG9uc2USJgoKcGVybWlzc2lvbhgBIAEoCzISLmFwaS52MS5QZXJtaXNzaW9uIkAKFkVkaXRQZXJtaXNzaW9uUmVzcG9uc2USJgoKcGVybWlzc2lvbhgBIAEoCzISLmFwaS52MS5QZXJtaXNzaW9uMsQEChFQZXJtaXNzaW9uU2VydmljZRJsCg1BZGRQZXJtaXNzaW9uEhwuYXBpLnYxLkFkZFBlcm1pc3Npb25SZXF1ZXN0Gh0uYXBpLnYxLkFkZFBlcm1pc3Npb25SZXNwb25zZSIegtPkkwIYOgEqIhMvYXBpL3YxL3Blcm1pc3Npb25zEnQKDkVkaXRQZXJtaXNzaW9uEh0uYXBpLnYxLkVkaXRQZXJtaXNzaW9uUmVxdWVzdBoeLmFwaS52MS5FZGl0UGVybWlzc2lvblJlc3BvbnNlIiOC0+STAh06ASoaGC9hcGkvdjEvcGVybWlzc2lvbnMve2lkfRJuCg1HZXRQZXJtaXNzaW9uEhwuYXBpLnYxLkdldFBlcm1pc3Npb25SZXF1ZXN0Gh0uYXBpLnYxLkdldFBlcm1pc3Npb25SZXNwb25zZSIggtPkkwIaEhgvYXBpL3YxL3Blcm1pc3Npb25zL3tpZH0SbAoOR2V0UGVybWlzc2lvbnMSHS5hcGkudjEuR2V0UGVybWlzc2lvbnNSZXF1ZXN0Gh4uYXBpLnYxLkdldFBlcm1pc3Npb25zUmVzcG9uc2UiG4LT5JMCFRITL2FwaS92MS9wZXJtaXNzaW9ucxJtChBEZWxldGVQZXJtaXNzaW9uEh8uYXBpLnYxLkRlbGV0ZVBlcm1pc3Npb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IiCC0+STAhoqGC9hcGkvdjEvcGVybWlzc2lvbnMve2lkfUJ0Cgpjb20uYXBpLnYxQg9QZXJtaXNzaW9uUHJvdG9QAVocb3BzZWUvYmFja2VuZC9nZW4vYXBpL3YxO2dlbqICA0FYWKoCBkFwaS5WMcoCBkFwaVxWMeICEkFwaVxWMVxHUEJNZXRhZGF0YeoCB0FwaTo6VjFiBnByb3RvMw", [file_google_protobuf_empty, file_google_api_annotations, file_validate_validate, file_api_v1_pagination, file_api_v1_filter, file_api_v1_models]);
18
+
19
+ /**
20
+ * Describes the message api.v1.AddPermissionRequest.
21
+ * Use `create(AddPermissionRequestSchema)` to create a new message.
22
+ */
23
+ export const AddPermissionRequestSchema = /*@__PURE__*/
24
+ messageDesc(file_api_v1_permission, 0);
25
+
26
+ /**
27
+ * Describes the message api.v1.EditPermissionRequest.
28
+ * Use `create(EditPermissionRequestSchema)` to create a new message.
29
+ */
30
+ export const EditPermissionRequestSchema = /*@__PURE__*/
31
+ messageDesc(file_api_v1_permission, 1);
32
+
33
+ /**
34
+ * Describes the message api.v1.GetPermissionRequest.
35
+ * Use `create(GetPermissionRequestSchema)` to create a new message.
36
+ */
37
+ export const GetPermissionRequestSchema = /*@__PURE__*/
38
+ messageDesc(file_api_v1_permission, 2);
39
+
40
+ /**
41
+ * Describes the message api.v1.GetPermissionsRequest.
42
+ * Use `create(GetPermissionsRequestSchema)` to create a new message.
43
+ */
44
+ export const GetPermissionsRequestSchema = /*@__PURE__*/
45
+ messageDesc(file_api_v1_permission, 3);
46
+
47
+ /**
48
+ * Describes the message api.v1.DeletePermissionRequest.
49
+ * Use `create(DeletePermissionRequestSchema)` to create a new message.
50
+ */
51
+ export const DeletePermissionRequestSchema = /*@__PURE__*/
52
+ messageDesc(file_api_v1_permission, 4);
53
+
54
+ /**
55
+ * Describes the message api.v1.GetPermissionsResponse.
56
+ * Use `create(GetPermissionsResponseSchema)` to create a new message.
57
+ */
58
+ export const GetPermissionsResponseSchema = /*@__PURE__*/
59
+ messageDesc(file_api_v1_permission, 5);
60
+
61
+ /**
62
+ * Describes the message api.v1.GetPermissionResponse.
63
+ * Use `create(GetPermissionResponseSchema)` to create a new message.
64
+ */
65
+ export const GetPermissionResponseSchema = /*@__PURE__*/
66
+ messageDesc(file_api_v1_permission, 6);
67
+
68
+ /**
69
+ * Describes the message api.v1.AddPermissionResponse.
70
+ * Use `create(AddPermissionResponseSchema)` to create a new message.
71
+ */
72
+ export const AddPermissionResponseSchema = /*@__PURE__*/
73
+ messageDesc(file_api_v1_permission, 7);
74
+
75
+ /**
76
+ * Describes the message api.v1.EditPermissionResponse.
77
+ * Use `create(EditPermissionResponseSchema)` to create a new message.
78
+ */
79
+ export const EditPermissionResponseSchema = /*@__PURE__*/
80
+ messageDesc(file_api_v1_permission, 8);
81
+
82
+ /**
83
+ * Service definition
84
+ *
85
+ * @generated from service api.v1.PermissionService
86
+ */
87
+ export const PermissionService = /*@__PURE__*/
88
+ serviceDesc(file_api_v1_permission, 0);
89
+
@@ -0,0 +1,109 @@
1
+ // @generated by protoc-gen-es v2.2.3
2
+ // @generated from file api/v1/preference.proto (package api.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
6
+ import type { Message } from "@bufbuild/protobuf";
7
+ import type { EmptySchema } from "@bufbuild/protobuf/wkt";
8
+
9
+ /**
10
+ * Describes the file api/v1/preference.proto.
11
+ */
12
+ export declare const file_api_v1_preference: GenFile;
13
+
14
+ /**
15
+ * @generated from message api.v1.GetPreferenceRequest
16
+ */
17
+ export declare type GetPreferenceRequest = Message<"api.v1.GetPreferenceRequest"> & {
18
+ /**
19
+ * @generated from field: string key = 1;
20
+ */
21
+ key: string;
22
+ };
23
+
24
+ /**
25
+ * Describes the message api.v1.GetPreferenceRequest.
26
+ * Use `create(GetPreferenceRequestSchema)` to create a new message.
27
+ */
28
+ export declare const GetPreferenceRequestSchema: GenMessage<GetPreferenceRequest>;
29
+
30
+ /**
31
+ * @generated from message api.v1.GetPreferenceResponse
32
+ */
33
+ export declare type GetPreferenceResponse = Message<"api.v1.GetPreferenceResponse"> & {
34
+ /**
35
+ * @generated from field: string key = 1;
36
+ */
37
+ key: string;
38
+
39
+ /**
40
+ * JSON value
41
+ *
42
+ * @generated from field: string value = 2;
43
+ */
44
+ value: string;
45
+
46
+ /**
47
+ * True if returned company default because user pref not found
48
+ *
49
+ * @generated from field: bool is_default = 3;
50
+ */
51
+ isDefault: boolean;
52
+ };
53
+
54
+ /**
55
+ * Describes the message api.v1.GetPreferenceResponse.
56
+ * Use `create(GetPreferenceResponseSchema)` to create a new message.
57
+ */
58
+ export declare const GetPreferenceResponseSchema: GenMessage<GetPreferenceResponse>;
59
+
60
+ /**
61
+ * @generated from message api.v1.SetPreferenceRequest
62
+ */
63
+ export declare type SetPreferenceRequest = Message<"api.v1.SetPreferenceRequest"> & {
64
+ /**
65
+ * @generated from field: string key = 1;
66
+ */
67
+ key: string;
68
+
69
+ /**
70
+ * @generated from field: string value = 2;
71
+ */
72
+ value: string;
73
+
74
+ /**
75
+ * If true, sets for company (admin only validation needed on server)
76
+ *
77
+ * @generated from field: bool is_company_default = 3;
78
+ */
79
+ isCompanyDefault: boolean;
80
+ };
81
+
82
+ /**
83
+ * Describes the message api.v1.SetPreferenceRequest.
84
+ * Use `create(SetPreferenceRequestSchema)` to create a new message.
85
+ */
86
+ export declare const SetPreferenceRequestSchema: GenMessage<SetPreferenceRequest>;
87
+
88
+ /**
89
+ * @generated from service api.v1.PreferenceService
90
+ */
91
+ export declare const PreferenceService: GenService<{
92
+ /**
93
+ * @generated from rpc api.v1.PreferenceService.GetPreference
94
+ */
95
+ getPreference: {
96
+ methodKind: "unary";
97
+ input: typeof GetPreferenceRequestSchema;
98
+ output: typeof GetPreferenceResponseSchema;
99
+ },
100
+ /**
101
+ * @generated from rpc api.v1.PreferenceService.SetPreference
102
+ */
103
+ setPreference: {
104
+ methodKind: "unary";
105
+ input: typeof SetPreferenceRequestSchema;
106
+ output: typeof EmptySchema;
107
+ },
108
+ }>;
109
+
@@ -0,0 +1,42 @@
1
+ // @generated by protoc-gen-es v2.2.3
2
+ // @generated from file api/v1/preference.proto (package api.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
6
+ import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
7
+ import { file_google_api_annotations } from "../../google/api/annotations_pb";
8
+ import { file_validate_validate } from "../../validate/validate_pb";
9
+
10
+ /**
11
+ * Describes the file api/v1/preference.proto.
12
+ */
13
+ export const file_api_v1_preference = /*@__PURE__*/
14
+ fileDesc("ChdhcGkvdjEvcHJlZmVyZW5jZS5wcm90bxIGYXBpLnYxIiwKFEdldFByZWZlcmVuY2VSZXF1ZXN0EhQKA2tleRgBIAEoCUIH+kIEcgIQASJHChVHZXRQcmVmZXJlbmNlUmVzcG9uc2USCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJEhIKCmlzX2RlZmF1bHQYAyABKAgiYAoUU2V0UHJlZmVyZW5jZVJlcXVlc3QSFAoDa2V5GAEgASgJQgf6QgRyAhABEhYKBXZhbHVlGAIgASgJQgf6QgRyAhABEhoKEmlzX2NvbXBhbnlfZGVmYXVsdBgDIAEoCDLrAQoRUHJlZmVyZW5jZVNlcnZpY2USbwoNR2V0UHJlZmVyZW5jZRIcLmFwaS52MS5HZXRQcmVmZXJlbmNlUmVxdWVzdBodLmFwaS52MS5HZXRQcmVmZXJlbmNlUmVzcG9uc2UiIYLT5JMCGxIZL2FwaS92MS9wcmVmZXJlbmNlcy97a2V5fRJlCg1TZXRQcmVmZXJlbmNlEhwuYXBpLnYxLlNldFByZWZlcmVuY2VSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Ih6C0+STAhg6ASoiEy9hcGkvdjEvcHJlZmVyZW5jZXNCdAoKY29tLmFwaS52MUIPUHJlZmVyZW5jZVByb3RvUAFaHG9wc2VlL2JhY2tlbmQvZ2VuL2FwaS92MTtnZW6iAgNBWFiqAgZBcGkuVjHKAgZBcGlcVjHiAhJBcGlcVjFcR1BCTWV0YWRhdGHqAgdBcGk6OlYxYgZwcm90bzM", [file_google_protobuf_empty, file_google_api_annotations, file_validate_validate]);
15
+
16
+ /**
17
+ * Describes the message api.v1.GetPreferenceRequest.
18
+ * Use `create(GetPreferenceRequestSchema)` to create a new message.
19
+ */
20
+ export const GetPreferenceRequestSchema = /*@__PURE__*/
21
+ messageDesc(file_api_v1_preference, 0);
22
+
23
+ /**
24
+ * Describes the message api.v1.GetPreferenceResponse.
25
+ * Use `create(GetPreferenceResponseSchema)` to create a new message.
26
+ */
27
+ export const GetPreferenceResponseSchema = /*@__PURE__*/
28
+ messageDesc(file_api_v1_preference, 1);
29
+
30
+ /**
31
+ * Describes the message api.v1.SetPreferenceRequest.
32
+ * Use `create(SetPreferenceRequestSchema)` to create a new message.
33
+ */
34
+ export const SetPreferenceRequestSchema = /*@__PURE__*/
35
+ messageDesc(file_api_v1_preference, 2);
36
+
37
+ /**
38
+ * @generated from service api.v1.PreferenceService
39
+ */
40
+ export const PreferenceService = /*@__PURE__*/
41
+ serviceDesc(file_api_v1_preference, 0);
42
+