@evalops/sdk-ts 0.1.13

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 (116) hide show
  1. package/README.md +15 -0
  2. package/dist/agentregistry/v1/service_pb.d.ts +458 -0
  3. package/dist/agentregistry/v1/service_pb.js +100 -0
  4. package/dist/agentruntime/v1/runtime_pb.d.ts +1809 -0
  5. package/dist/agentruntime/v1/runtime_pb.js +480 -0
  6. package/dist/agents/v1/agents_pb.d.ts +1151 -0
  7. package/dist/agents/v1/agents_pb.js +256 -0
  8. package/dist/approvals/v1/approvals_pb.d.ts +788 -0
  9. package/dist/approvals/v1/approvals_pb.js +212 -0
  10. package/dist/artifacts/v1/artifacts_pb.d.ts +1079 -0
  11. package/dist/artifacts/v1/artifacts_pb.js +292 -0
  12. package/dist/attestation/v1/attestation_pb.d.ts +359 -0
  13. package/dist/attestation/v1/attestation_pb.js +84 -0
  14. package/dist/attribution/v1/attribution_pb.d.ts +1312 -0
  15. package/dist/attribution/v1/attribution_pb.js +285 -0
  16. package/dist/audit/v1/audit_pb.d.ts +1151 -0
  17. package/dist/audit/v1/audit_pb.js +262 -0
  18. package/dist/buf/validate/validate_pb.d.ts +4827 -0
  19. package/dist/buf/validate/validate_pb.js +356 -0
  20. package/dist/catalogs/v1/catalogs_pb.d.ts +150 -0
  21. package/dist/catalogs/v1/catalogs_pb.js +38 -0
  22. package/dist/common/v1/analytics_pb.d.ts +134 -0
  23. package/dist/common/v1/analytics_pb.js +72 -0
  24. package/dist/common/v1/authz_pb.d.ts +23 -0
  25. package/dist/common/v1/authz_pb.js +26 -0
  26. package/dist/common/v1/delivery_pb.d.ts +36 -0
  27. package/dist/common/v1/delivery_pb.js +40 -0
  28. package/dist/common/v1/entity_pb.d.ts +44 -0
  29. package/dist/common/v1/entity_pb.js +48 -0
  30. package/dist/common/v1/risk_pb.d.ts +36 -0
  31. package/dist/common/v1/risk_pb.js +40 -0
  32. package/dist/compliance/v1/compliance_pb.d.ts +866 -0
  33. package/dist/compliance/v1/compliance_pb.js +240 -0
  34. package/dist/config/v1/config_pb.d.ts +589 -0
  35. package/dist/config/v1/config_pb.js +164 -0
  36. package/dist/connectors/v1/connectors_pb.d.ts +653 -0
  37. package/dist/connectors/v1/connectors_pb.js +236 -0
  38. package/dist/entities/v1/entities_pb.d.ts +784 -0
  39. package/dist/entities/v1/entities_pb.js +197 -0
  40. package/dist/evalpipeline/v1/evalpipeline_pb.d.ts +943 -0
  41. package/dist/evalpipeline/v1/evalpipeline_pb.js +227 -0
  42. package/dist/events/v1/change_pb.d.ts +60 -0
  43. package/dist/events/v1/change_pb.js +14 -0
  44. package/dist/events/v1/cloudevent_pb.d.ts +63 -0
  45. package/dist/events/v1/cloudevent_pb.js +14 -0
  46. package/dist/events/v1/evaluation_pb.d.ts +124 -0
  47. package/dist/events/v1/evaluation_pb.js +24 -0
  48. package/dist/fermata/v1/fermata_pb.d.ts +1869 -0
  49. package/dist/fermata/v1/fermata_pb.js +515 -0
  50. package/dist/fermata/v1/worker_pb.d.ts +223 -0
  51. package/dist/fermata/v1/worker_pb.js +55 -0
  52. package/dist/gate/v1/audit_pb.d.ts +243 -0
  53. package/dist/gate/v1/audit_pb.js +60 -0
  54. package/dist/gate/v1/connector_pb.d.ts +360 -0
  55. package/dist/gate/v1/connector_pb.js +91 -0
  56. package/dist/gate/v1/controlplane_pb.d.ts +345 -0
  57. package/dist/gate/v1/controlplane_pb.js +19 -0
  58. package/dist/gate/v1/identity_group_pb.d.ts +255 -0
  59. package/dist/gate/v1/identity_group_pb.js +90 -0
  60. package/dist/gate/v1/recording_pb.d.ts +93 -0
  61. package/dist/gate/v1/recording_pb.js +35 -0
  62. package/dist/gate/v1/resource_policy_pb.d.ts +541 -0
  63. package/dist/gate/v1/resource_policy_pb.js +145 -0
  64. package/dist/gate/v1/tenant_pb.d.ts +273 -0
  65. package/dist/gate/v1/tenant_pb.js +101 -0
  66. package/dist/gate/v1/webhook_access_pb.d.ts +359 -0
  67. package/dist/gate/v1/webhook_access_pb.js +105 -0
  68. package/dist/google/api/annotations_pb.d.ts +13 -0
  69. package/dist/google/api/annotations_pb.js +26 -0
  70. package/dist/google/api/http_pb.d.ts +440 -0
  71. package/dist/google/api/http_pb.js +33 -0
  72. package/dist/governance/v1/governance_pb.d.ts +1219 -0
  73. package/dist/governance/v1/governance_pb.js +376 -0
  74. package/dist/identity/v1/organizations_pb.d.ts +621 -0
  75. package/dist/identity/v1/organizations_pb.js +166 -0
  76. package/dist/identity/v1/sessions_pb.d.ts +78 -0
  77. package/dist/identity/v1/sessions_pb.js +19 -0
  78. package/dist/identity/v1/tokens_pb.d.ts +332 -0
  79. package/dist/identity/v1/tokens_pb.js +56 -0
  80. package/dist/ingest/v1/admin_pb.d.ts +471 -0
  81. package/dist/ingest/v1/admin_pb.js +112 -0
  82. package/dist/ingest/v1/event_pb.d.ts +155 -0
  83. package/dist/ingest/v1/event_pb.js +24 -0
  84. package/dist/keys/v1/keys_pb.d.ts +241 -0
  85. package/dist/keys/v1/keys_pb.js +52 -0
  86. package/dist/llmgateway/v1/gateway_pb.d.ts +393 -0
  87. package/dist/llmgateway/v1/gateway_pb.js +79 -0
  88. package/dist/memory/v1/memory_pb.d.ts +1260 -0
  89. package/dist/memory/v1/memory_pb.js +243 -0
  90. package/dist/meter/v1/meter_pb.d.ts +1691 -0
  91. package/dist/meter/v1/meter_pb.js +263 -0
  92. package/dist/notifications/v1/notifications_pb.d.ts +777 -0
  93. package/dist/notifications/v1/notifications_pb.js +257 -0
  94. package/dist/objectives/v1/objectives_pb.d.ts +1000 -0
  95. package/dist/objectives/v1/objectives_pb.js +340 -0
  96. package/dist/posture/v1/posture_pb.d.ts +357 -0
  97. package/dist/posture/v1/posture_pb.js +88 -0
  98. package/dist/prompts/v1/prompts_pb.d.ts +864 -0
  99. package/dist/prompts/v1/prompts_pb.js +156 -0
  100. package/dist/relationships/v1/relationships_pb.d.ts +367 -0
  101. package/dist/relationships/v1/relationships_pb.js +96 -0
  102. package/dist/secretbroker/v1/broker_pb.d.ts +888 -0
  103. package/dist/secretbroker/v1/broker_pb.js +168 -0
  104. package/dist/skills/v1/skills_pb.d.ts +652 -0
  105. package/dist/skills/v1/skills_pb.js +164 -0
  106. package/dist/tap/v1/admin_pb.d.ts +530 -0
  107. package/dist/tap/v1/admin_pb.js +132 -0
  108. package/dist/tap/v1/event_pb.d.ts +141 -0
  109. package/dist/tap/v1/event_pb.js +27 -0
  110. package/dist/toolexecution/v1/toolexecution_pb.d.ts +994 -0
  111. package/dist/toolexecution/v1/toolexecution_pb.js +315 -0
  112. package/dist/traces/v1/traces_pb.d.ts +633 -0
  113. package/dist/traces/v1/traces_pb.js +163 -0
  114. package/dist/workflows/v1/workflows_pb.d.ts +1784 -0
  115. package/dist/workflows/v1/workflows_pb.js +431 -0
  116. package/package.json +272 -0
@@ -0,0 +1,621 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file identity/v1/organizations.proto.
6
+ */
7
+ export declare const file_identity_v1_organizations: GenFile;
8
+ /**
9
+ * Organization is the canonical org/workspace type.
10
+ * Unifies gate's Organization (tenant.proto) and chat's WorkspaceInfo (auth.proto).
11
+ *
12
+ * @generated from message identity.v1.Organization
13
+ */
14
+ export type Organization = Message<"identity.v1.Organization"> & {
15
+ /**
16
+ * @generated from field: string id = 1;
17
+ */
18
+ id: string;
19
+ /**
20
+ * @generated from field: string name = 2;
21
+ */
22
+ name: string;
23
+ /**
24
+ * @generated from field: string slug = 3;
25
+ */
26
+ slug: string;
27
+ /**
28
+ * @generated from field: google.protobuf.Timestamp created_at = 4;
29
+ */
30
+ createdAt?: Timestamp;
31
+ };
32
+ /**
33
+ * Describes the message identity.v1.Organization.
34
+ * Use `create(OrganizationSchema)` to create a new message.
35
+ */
36
+ export declare const OrganizationSchema: GenMessage<Organization>;
37
+ /**
38
+ * OrganizationMembership is the canonical "org plus this user's role in it"
39
+ * view. It replaces chat's WorkspaceInfo without pushing membership-scoped
40
+ * fields onto Organization itself.
41
+ *
42
+ * @generated from message identity.v1.OrganizationMembership
43
+ */
44
+ export type OrganizationMembership = Message<"identity.v1.OrganizationMembership"> & {
45
+ /**
46
+ * @generated from field: identity.v1.Organization organization = 1;
47
+ */
48
+ organization?: Organization;
49
+ /**
50
+ * @generated from field: string role = 2;
51
+ */
52
+ role: string;
53
+ };
54
+ /**
55
+ * Describes the message identity.v1.OrganizationMembership.
56
+ * Use `create(OrganizationMembershipSchema)` to create a new message.
57
+ */
58
+ export declare const OrganizationMembershipSchema: GenMessage<OrganizationMembership>;
59
+ /**
60
+ * Member is the canonical org membership type.
61
+ * Unifies gate's OrgMember and chat's WorkspaceMemberInfo.
62
+ *
63
+ * @generated from message identity.v1.Member
64
+ */
65
+ export type Member = Message<"identity.v1.Member"> & {
66
+ /**
67
+ * @generated from field: string user_id = 1;
68
+ */
69
+ userId: string;
70
+ /**
71
+ * @generated from field: string organization_id = 2;
72
+ */
73
+ organizationId: string;
74
+ /**
75
+ * @generated from field: string email = 3;
76
+ */
77
+ email: string;
78
+ /**
79
+ * @generated from field: string name = 4;
80
+ */
81
+ name: string;
82
+ /**
83
+ * @generated from field: string picture = 5;
84
+ */
85
+ picture: string;
86
+ /**
87
+ * @generated from field: string role = 6;
88
+ */
89
+ role: string;
90
+ /**
91
+ * @generated from field: string status = 7;
92
+ */
93
+ status: string;
94
+ /**
95
+ * @generated from field: string identity_provider = 8;
96
+ */
97
+ identityProvider: string;
98
+ /**
99
+ * @generated from field: string provisioning_source = 9;
100
+ */
101
+ provisioningSource: string;
102
+ /**
103
+ * @generated from field: google.protobuf.Timestamp created_at = 10;
104
+ */
105
+ createdAt?: Timestamp;
106
+ };
107
+ /**
108
+ * Describes the message identity.v1.Member.
109
+ * Use `create(MemberSchema)` to create a new message.
110
+ */
111
+ export declare const MemberSchema: GenMessage<Member>;
112
+ /**
113
+ * APIKey is the canonical API key type.
114
+ * Unifies gate's APIKey (tenant.proto) and chat's APIKeyInfo (auth.proto).
115
+ *
116
+ * @generated from message identity.v1.APIKey
117
+ */
118
+ export type APIKey = Message<"identity.v1.APIKey"> & {
119
+ /**
120
+ * @generated from field: string id = 1;
121
+ */
122
+ id: string;
123
+ /**
124
+ * @generated from field: string organization_id = 2;
125
+ */
126
+ organizationId: string;
127
+ /**
128
+ * @generated from field: string name = 3;
129
+ */
130
+ name: string;
131
+ /**
132
+ * @generated from field: string prefix = 4;
133
+ */
134
+ prefix: string;
135
+ /**
136
+ * @generated from field: string provider = 5;
137
+ */
138
+ provider: string;
139
+ /**
140
+ * @generated from field: string role = 6;
141
+ */
142
+ role: string;
143
+ /**
144
+ * @generated from field: string label = 7;
145
+ */
146
+ label: string;
147
+ /**
148
+ * @generated from field: google.protobuf.Timestamp created_at = 8;
149
+ */
150
+ createdAt?: Timestamp;
151
+ /**
152
+ * @generated from field: google.protobuf.Timestamp expires_at = 9;
153
+ */
154
+ expiresAt?: Timestamp;
155
+ };
156
+ /**
157
+ * Describes the message identity.v1.APIKey.
158
+ * Use `create(APIKeySchema)` to create a new message.
159
+ */
160
+ export declare const APIKeySchema: GenMessage<APIKey>;
161
+ /**
162
+ * Permission is a resource/action rule that a role can allow or deny.
163
+ *
164
+ * @generated from message identity.v1.Permission
165
+ */
166
+ export type Permission = Message<"identity.v1.Permission"> & {
167
+ /**
168
+ * @generated from field: string resource = 1;
169
+ */
170
+ resource: string;
171
+ /**
172
+ * @generated from field: string action = 2;
173
+ */
174
+ action: string;
175
+ /**
176
+ * @generated from field: identity.v1.PermissionEffect effect = 3;
177
+ */
178
+ effect: PermissionEffect;
179
+ };
180
+ /**
181
+ * Describes the message identity.v1.Permission.
182
+ * Use `create(PermissionSchema)` to create a new message.
183
+ */
184
+ export declare const PermissionSchema: GenMessage<Permission>;
185
+ /**
186
+ * Role is a named bundle of permissions assignable within an organization.
187
+ *
188
+ * @generated from message identity.v1.Role
189
+ */
190
+ export type Role = Message<"identity.v1.Role"> & {
191
+ /**
192
+ * @generated from field: string name = 1;
193
+ */
194
+ name: string;
195
+ /**
196
+ * @generated from field: string display_name = 2;
197
+ */
198
+ displayName: string;
199
+ /**
200
+ * @generated from field: string description = 3;
201
+ */
202
+ description: string;
203
+ /**
204
+ * @generated from field: repeated identity.v1.Permission permissions = 4;
205
+ */
206
+ permissions: Permission[];
207
+ /**
208
+ * @generated from field: bool built_in = 5;
209
+ */
210
+ builtIn: boolean;
211
+ };
212
+ /**
213
+ * Describes the message identity.v1.Role.
214
+ * Use `create(RoleSchema)` to create a new message.
215
+ */
216
+ export declare const RoleSchema: GenMessage<Role>;
217
+ /**
218
+ * RoleAssignment attaches a role to a principal at organization or team scope.
219
+ *
220
+ * @generated from message identity.v1.RoleAssignment
221
+ */
222
+ export type RoleAssignment = Message<"identity.v1.RoleAssignment"> & {
223
+ /**
224
+ * @generated from field: string id = 1;
225
+ */
226
+ id: string;
227
+ /**
228
+ * @generated from field: string organization_id = 2;
229
+ */
230
+ organizationId: string;
231
+ /**
232
+ * @generated from field: string team_id = 3;
233
+ */
234
+ teamId: string;
235
+ /**
236
+ * @generated from field: identity.v1.PrincipalType principal_type = 4;
237
+ */
238
+ principalType: PrincipalType;
239
+ /**
240
+ * @generated from field: string principal_id = 5;
241
+ */
242
+ principalId: string;
243
+ /**
244
+ * @generated from field: string role_name = 6;
245
+ */
246
+ roleName: string;
247
+ /**
248
+ * @generated from field: string created_by = 7;
249
+ */
250
+ createdBy: string;
251
+ /**
252
+ * @generated from field: google.protobuf.Timestamp created_at = 8;
253
+ */
254
+ createdAt?: Timestamp;
255
+ /**
256
+ * @generated from field: google.protobuf.Timestamp updated_at = 9;
257
+ */
258
+ updatedAt?: Timestamp;
259
+ };
260
+ /**
261
+ * Describes the message identity.v1.RoleAssignment.
262
+ * Use `create(RoleAssignmentSchema)` to create a new message.
263
+ */
264
+ export declare const RoleAssignmentSchema: GenMessage<RoleAssignment>;
265
+ /**
266
+ * ListRolesRequest lists roles available for assignment.
267
+ *
268
+ * @generated from message identity.v1.ListRolesRequest
269
+ */
270
+ export type ListRolesRequest = Message<"identity.v1.ListRolesRequest"> & {
271
+ /**
272
+ * @generated from field: string organization_id = 1;
273
+ */
274
+ organizationId: string;
275
+ };
276
+ /**
277
+ * Describes the message identity.v1.ListRolesRequest.
278
+ * Use `create(ListRolesRequestSchema)` to create a new message.
279
+ */
280
+ export declare const ListRolesRequestSchema: GenMessage<ListRolesRequest>;
281
+ /**
282
+ * ListRolesResponse returns the available RBAC roles.
283
+ *
284
+ * @generated from message identity.v1.ListRolesResponse
285
+ */
286
+ export type ListRolesResponse = Message<"identity.v1.ListRolesResponse"> & {
287
+ /**
288
+ * @generated from field: repeated identity.v1.Role roles = 1;
289
+ */
290
+ roles: Role[];
291
+ };
292
+ /**
293
+ * Describes the message identity.v1.ListRolesResponse.
294
+ * Use `create(ListRolesResponseSchema)` to create a new message.
295
+ */
296
+ export declare const ListRolesResponseSchema: GenMessage<ListRolesResponse>;
297
+ /**
298
+ * AssignRoleRequest assigns a built-in role to a principal.
299
+ *
300
+ * @generated from message identity.v1.AssignRoleRequest
301
+ */
302
+ export type AssignRoleRequest = Message<"identity.v1.AssignRoleRequest"> & {
303
+ /**
304
+ * @generated from field: string organization_id = 1;
305
+ */
306
+ organizationId: string;
307
+ /**
308
+ * @generated from field: string team_id = 2;
309
+ */
310
+ teamId: string;
311
+ /**
312
+ * @generated from field: identity.v1.PrincipalType principal_type = 3;
313
+ */
314
+ principalType: PrincipalType;
315
+ /**
316
+ * @generated from field: string principal_id = 4;
317
+ */
318
+ principalId: string;
319
+ /**
320
+ * @generated from field: string role_name = 5;
321
+ */
322
+ roleName: string;
323
+ };
324
+ /**
325
+ * Describes the message identity.v1.AssignRoleRequest.
326
+ * Use `create(AssignRoleRequestSchema)` to create a new message.
327
+ */
328
+ export declare const AssignRoleRequestSchema: GenMessage<AssignRoleRequest>;
329
+ /**
330
+ * AssignRoleResponse returns the stored role assignment.
331
+ *
332
+ * @generated from message identity.v1.AssignRoleResponse
333
+ */
334
+ export type AssignRoleResponse = Message<"identity.v1.AssignRoleResponse"> & {
335
+ /**
336
+ * @generated from field: identity.v1.RoleAssignment assignment = 1;
337
+ */
338
+ assignment?: RoleAssignment;
339
+ };
340
+ /**
341
+ * Describes the message identity.v1.AssignRoleResponse.
342
+ * Use `create(AssignRoleResponseSchema)` to create a new message.
343
+ */
344
+ export declare const AssignRoleResponseSchema: GenMessage<AssignRoleResponse>;
345
+ /**
346
+ * RevokeRoleRequest removes one role assignment from a principal.
347
+ *
348
+ * @generated from message identity.v1.RevokeRoleRequest
349
+ */
350
+ export type RevokeRoleRequest = Message<"identity.v1.RevokeRoleRequest"> & {
351
+ /**
352
+ * @generated from field: string organization_id = 1;
353
+ */
354
+ organizationId: string;
355
+ /**
356
+ * @generated from field: string team_id = 2;
357
+ */
358
+ teamId: string;
359
+ /**
360
+ * @generated from field: identity.v1.PrincipalType principal_type = 3;
361
+ */
362
+ principalType: PrincipalType;
363
+ /**
364
+ * @generated from field: string principal_id = 4;
365
+ */
366
+ principalId: string;
367
+ /**
368
+ * @generated from field: string role_name = 5;
369
+ */
370
+ roleName: string;
371
+ };
372
+ /**
373
+ * Describes the message identity.v1.RevokeRoleRequest.
374
+ * Use `create(RevokeRoleRequestSchema)` to create a new message.
375
+ */
376
+ export declare const RevokeRoleRequestSchema: GenMessage<RevokeRoleRequest>;
377
+ /**
378
+ * RevokeRoleResponse reports whether a matching assignment was removed.
379
+ *
380
+ * @generated from message identity.v1.RevokeRoleResponse
381
+ */
382
+ export type RevokeRoleResponse = Message<"identity.v1.RevokeRoleResponse"> & {
383
+ /**
384
+ * @generated from field: bool revoked = 1;
385
+ */
386
+ revoked: boolean;
387
+ };
388
+ /**
389
+ * Describes the message identity.v1.RevokeRoleResponse.
390
+ * Use `create(RevokeRoleResponseSchema)` to create a new message.
391
+ */
392
+ export declare const RevokeRoleResponseSchema: GenMessage<RevokeRoleResponse>;
393
+ /**
394
+ * ListRoleAssignmentsRequest lists assignments for an organization or principal.
395
+ *
396
+ * @generated from message identity.v1.ListRoleAssignmentsRequest
397
+ */
398
+ export type ListRoleAssignmentsRequest = Message<"identity.v1.ListRoleAssignmentsRequest"> & {
399
+ /**
400
+ * @generated from field: string organization_id = 1;
401
+ */
402
+ organizationId: string;
403
+ /**
404
+ * @generated from field: string team_id = 2;
405
+ */
406
+ teamId: string;
407
+ /**
408
+ * @generated from field: identity.v1.PrincipalType principal_type = 3;
409
+ */
410
+ principalType: PrincipalType;
411
+ /**
412
+ * @generated from field: string principal_id = 4;
413
+ */
414
+ principalId: string;
415
+ };
416
+ /**
417
+ * Describes the message identity.v1.ListRoleAssignmentsRequest.
418
+ * Use `create(ListRoleAssignmentsRequestSchema)` to create a new message.
419
+ */
420
+ export declare const ListRoleAssignmentsRequestSchema: GenMessage<ListRoleAssignmentsRequest>;
421
+ /**
422
+ * ListRoleAssignmentsResponse returns matching role assignments.
423
+ *
424
+ * @generated from message identity.v1.ListRoleAssignmentsResponse
425
+ */
426
+ export type ListRoleAssignmentsResponse = Message<"identity.v1.ListRoleAssignmentsResponse"> & {
427
+ /**
428
+ * @generated from field: repeated identity.v1.RoleAssignment assignments = 1;
429
+ */
430
+ assignments: RoleAssignment[];
431
+ };
432
+ /**
433
+ * Describes the message identity.v1.ListRoleAssignmentsResponse.
434
+ * Use `create(ListRoleAssignmentsResponseSchema)` to create a new message.
435
+ */
436
+ export declare const ListRoleAssignmentsResponseSchema: GenMessage<ListRoleAssignmentsResponse>;
437
+ /**
438
+ * CheckPermissionRequest checks one resource/action permission for a principal.
439
+ *
440
+ * @generated from message identity.v1.CheckPermissionRequest
441
+ */
442
+ export type CheckPermissionRequest = Message<"identity.v1.CheckPermissionRequest"> & {
443
+ /**
444
+ * @generated from field: string organization_id = 1;
445
+ */
446
+ organizationId: string;
447
+ /**
448
+ * @generated from field: string team_id = 2;
449
+ */
450
+ teamId: string;
451
+ /**
452
+ * @generated from field: identity.v1.PrincipalType principal_type = 3;
453
+ */
454
+ principalType: PrincipalType;
455
+ /**
456
+ * @generated from field: string principal_id = 4;
457
+ */
458
+ principalId: string;
459
+ /**
460
+ * @generated from field: string resource = 5;
461
+ */
462
+ resource: string;
463
+ /**
464
+ * @generated from field: string action = 6;
465
+ */
466
+ action: string;
467
+ };
468
+ /**
469
+ * Describes the message identity.v1.CheckPermissionRequest.
470
+ * Use `create(CheckPermissionRequestSchema)` to create a new message.
471
+ */
472
+ export declare const CheckPermissionRequestSchema: GenMessage<CheckPermissionRequest>;
473
+ /**
474
+ * CheckPermissionResponse returns the RBAC decision and matched role.
475
+ *
476
+ * @generated from message identity.v1.CheckPermissionResponse
477
+ */
478
+ export type CheckPermissionResponse = Message<"identity.v1.CheckPermissionResponse"> & {
479
+ /**
480
+ * @generated from field: bool allowed = 1;
481
+ */
482
+ allowed: boolean;
483
+ /**
484
+ * @generated from field: string reason = 2;
485
+ */
486
+ reason: string;
487
+ /**
488
+ * @generated from field: string matched_role = 3;
489
+ */
490
+ matchedRole: string;
491
+ /**
492
+ * @generated from field: identity.v1.Permission matched_permission = 4;
493
+ */
494
+ matchedPermission?: Permission;
495
+ };
496
+ /**
497
+ * Describes the message identity.v1.CheckPermissionResponse.
498
+ * Use `create(CheckPermissionResponseSchema)` to create a new message.
499
+ */
500
+ export declare const CheckPermissionResponseSchema: GenMessage<CheckPermissionResponse>;
501
+ /**
502
+ * PermissionEffect describes whether a permission grants or denies access.
503
+ *
504
+ * @generated from enum identity.v1.PermissionEffect
505
+ */
506
+ export declare enum PermissionEffect {
507
+ /**
508
+ * PERMISSION_EFFECT_UNSPECIFIED is rejected by RBAC mutation APIs.
509
+ *
510
+ * @generated from enum value: PERMISSION_EFFECT_UNSPECIFIED = 0;
511
+ */
512
+ UNSPECIFIED = 0,
513
+ /**
514
+ * PERMISSION_EFFECT_ALLOW grants access when the resource and action match.
515
+ *
516
+ * @generated from enum value: PERMISSION_EFFECT_ALLOW = 1;
517
+ */
518
+ ALLOW = 1,
519
+ /**
520
+ * PERMISSION_EFFECT_DENY denies access when the resource and action match.
521
+ *
522
+ * @generated from enum value: PERMISSION_EFFECT_DENY = 2;
523
+ */
524
+ DENY = 2
525
+ }
526
+ /**
527
+ * Describes the enum identity.v1.PermissionEffect.
528
+ */
529
+ export declare const PermissionEffectSchema: GenEnum<PermissionEffect>;
530
+ /**
531
+ * PrincipalType identifies the kind of actor receiving a role assignment.
532
+ *
533
+ * @generated from enum identity.v1.PrincipalType
534
+ */
535
+ export declare enum PrincipalType {
536
+ /**
537
+ * PRINCIPAL_TYPE_UNSPECIFIED is rejected by RBAC mutation APIs.
538
+ *
539
+ * @generated from enum value: PRINCIPAL_TYPE_UNSPECIFIED = 0;
540
+ */
541
+ UNSPECIFIED = 0,
542
+ /**
543
+ * PRINCIPAL_TYPE_USER represents a human user in an organization.
544
+ *
545
+ * @generated from enum value: PRINCIPAL_TYPE_USER = 1;
546
+ */
547
+ USER = 1,
548
+ /**
549
+ * PRINCIPAL_TYPE_SERVICE_ACCOUNT represents a non-human service account.
550
+ *
551
+ * @generated from enum value: PRINCIPAL_TYPE_SERVICE_ACCOUNT = 2;
552
+ */
553
+ SERVICE_ACCOUNT = 2,
554
+ /**
555
+ * PRINCIPAL_TYPE_AGENT represents a registered agent identity.
556
+ *
557
+ * @generated from enum value: PRINCIPAL_TYPE_AGENT = 3;
558
+ */
559
+ AGENT = 3
560
+ }
561
+ /**
562
+ * Describes the enum identity.v1.PrincipalType.
563
+ */
564
+ export declare const PrincipalTypeSchema: GenEnum<PrincipalType>;
565
+ /**
566
+ * RBACService manages organization-scoped roles and permission checks.
567
+ *
568
+ * @generated from service identity.v1.RBACService
569
+ */
570
+ export declare const RBACService: GenService<{
571
+ /**
572
+ * ListRoles returns built-in roles available for an organization.
573
+ *
574
+ * @generated from rpc identity.v1.RBACService.ListRoles
575
+ */
576
+ listRoles: {
577
+ methodKind: "unary";
578
+ input: typeof ListRolesRequestSchema;
579
+ output: typeof ListRolesResponseSchema;
580
+ };
581
+ /**
582
+ * AssignRole assigns a role to a user, service account, or agent.
583
+ *
584
+ * @generated from rpc identity.v1.RBACService.AssignRole
585
+ */
586
+ assignRole: {
587
+ methodKind: "unary";
588
+ input: typeof AssignRoleRequestSchema;
589
+ output: typeof AssignRoleResponseSchema;
590
+ };
591
+ /**
592
+ * RevokeRole removes a role assignment.
593
+ *
594
+ * @generated from rpc identity.v1.RBACService.RevokeRole
595
+ */
596
+ revokeRole: {
597
+ methodKind: "unary";
598
+ input: typeof RevokeRoleRequestSchema;
599
+ output: typeof RevokeRoleResponseSchema;
600
+ };
601
+ /**
602
+ * ListRoleAssignments lists assignments for an organization or principal.
603
+ *
604
+ * @generated from rpc identity.v1.RBACService.ListRoleAssignments
605
+ */
606
+ listRoleAssignments: {
607
+ methodKind: "unary";
608
+ input: typeof ListRoleAssignmentsRequestSchema;
609
+ output: typeof ListRoleAssignmentsResponseSchema;
610
+ };
611
+ /**
612
+ * CheckPermission evaluates whether a principal can perform an action.
613
+ *
614
+ * @generated from rpc identity.v1.RBACService.CheckPermission
615
+ */
616
+ checkPermission: {
617
+ methodKind: "unary";
618
+ input: typeof CheckPermissionRequestSchema;
619
+ output: typeof CheckPermissionResponseSchema;
620
+ };
621
+ }>;