@xeonr/pipelines-sdk 0.2.0 → 0.4.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 (115) hide show
  1. package/README.md +231 -22
  2. package/dist/auth.d.ts +1 -1
  3. package/dist/client.d.ts +73 -10
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/client.js +47 -4
  6. package/dist/client.js.map +1 -1
  7. package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.d.ts +179 -16
  8. package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.d.ts.map +1 -1
  9. package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.js +45 -28
  10. package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.js.map +1 -1
  11. package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.d.ts +136 -17
  12. package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.d.ts.map +1 -1
  13. package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.js +42 -35
  14. package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.js.map +1 -1
  15. package/dist/gen/xeonr/pipelines/private/v1/worker_pb.d.ts +224 -8
  16. package/dist/gen/xeonr/pipelines/private/v1/worker_pb.d.ts.map +1 -1
  17. package/dist/gen/xeonr/pipelines/private/v1/worker_pb.js +43 -9
  18. package/dist/gen/xeonr/pipelines/private/v1/worker_pb.js.map +1 -1
  19. package/dist/gen/xeonr/pipelines/v1/common_pb.d.ts +64 -8
  20. package/dist/gen/xeonr/pipelines/v1/common_pb.d.ts.map +1 -1
  21. package/dist/gen/xeonr/pipelines/v1/common_pb.js +62 -5
  22. package/dist/gen/xeonr/pipelines/v1/common_pb.js.map +1 -1
  23. package/dist/gen/xeonr/pipelines/v1/definition_pb.d.ts +312 -9
  24. package/dist/gen/xeonr/pipelines/v1/definition_pb.d.ts.map +1 -1
  25. package/dist/gen/xeonr/pipelines/v1/definition_pb.js +100 -7
  26. package/dist/gen/xeonr/pipelines/v1/definition_pb.js.map +1 -1
  27. package/dist/gen/xeonr/pipelines/v1/pipelines_pb.d.ts +1072 -0
  28. package/dist/gen/xeonr/pipelines/v1/pipelines_pb.d.ts.map +1 -0
  29. package/dist/gen/xeonr/pipelines/v1/pipelines_pb.js +299 -0
  30. package/dist/gen/xeonr/pipelines/v1/pipelines_pb.js.map +1 -0
  31. package/dist/gen/xeonr/pipelines/v1/pools_pb.d.ts +103 -8
  32. package/dist/gen/xeonr/pipelines/v1/pools_pb.d.ts.map +1 -1
  33. package/dist/gen/xeonr/pipelines/v1/pools_pb.js +32 -24
  34. package/dist/gen/xeonr/pipelines/v1/pools_pb.js.map +1 -1
  35. package/dist/gen/xeonr/pipelines/v1/queues_pb.d.ts +711 -0
  36. package/dist/gen/xeonr/pipelines/v1/queues_pb.d.ts.map +1 -0
  37. package/dist/gen/xeonr/pipelines/v1/queues_pb.js +185 -0
  38. package/dist/gen/xeonr/pipelines/v1/queues_pb.js.map +1 -0
  39. package/dist/gen/xeonr/pipelines/v1/registry_pb.d.ts +92 -23
  40. package/dist/gen/xeonr/pipelines/v1/registry_pb.d.ts.map +1 -1
  41. package/dist/gen/xeonr/pipelines/v1/registry_pb.js +36 -33
  42. package/dist/gen/xeonr/pipelines/v1/registry_pb.js.map +1 -1
  43. package/dist/gen/xeonr/pipelines/v1/runs_pb.d.ts +1191 -33
  44. package/dist/gen/xeonr/pipelines/v1/runs_pb.d.ts.map +1 -1
  45. package/dist/gen/xeonr/pipelines/v1/runs_pb.js +419 -35
  46. package/dist/gen/xeonr/pipelines/v1/runs_pb.js.map +1 -1
  47. package/dist/gen/xeonr/pipelines/v1/schedule_targets_pb.d.ts +194 -0
  48. package/dist/gen/xeonr/pipelines/v1/schedule_targets_pb.d.ts.map +1 -0
  49. package/dist/gen/xeonr/pipelines/v1/schedule_targets_pb.js +100 -0
  50. package/dist/gen/xeonr/pipelines/v1/schedule_targets_pb.js.map +1 -0
  51. package/dist/gen/xeonr/pipelines/v1/schedules_pb.d.ts +1186 -0
  52. package/dist/gen/xeonr/pipelines/v1/schedules_pb.d.ts.map +1 -0
  53. package/dist/gen/xeonr/pipelines/v1/schedules_pb.js +335 -0
  54. package/dist/gen/xeonr/pipelines/v1/schedules_pb.js.map +1 -0
  55. package/dist/gen/xeonr/pipelines/v1/secrets_pb.d.ts +32 -5
  56. package/dist/gen/xeonr/pipelines/v1/secrets_pb.d.ts.map +1 -1
  57. package/dist/gen/xeonr/pipelines/v1/secrets_pb.js +12 -3
  58. package/dist/gen/xeonr/pipelines/v1/secrets_pb.js.map +1 -1
  59. package/dist/gen/xeonr/pipelines/v1/sinks_pb.d.ts +270 -27
  60. package/dist/gen/xeonr/pipelines/v1/sinks_pb.d.ts.map +1 -1
  61. package/dist/gen/xeonr/pipelines/v1/sinks_pb.js +163 -24
  62. package/dist/gen/xeonr/pipelines/v1/sinks_pb.js.map +1 -1
  63. package/dist/gen/xeonr/pipelines/v1/tenant_policies_pb.d.ts +391 -0
  64. package/dist/gen/xeonr/pipelines/v1/tenant_policies_pb.d.ts.map +1 -0
  65. package/dist/gen/xeonr/pipelines/v1/tenant_policies_pb.js +100 -0
  66. package/dist/gen/xeonr/pipelines/v1/tenant_policies_pb.js.map +1 -0
  67. package/dist/gen/xeonr/platform/v1/options_pb.d.ts +137 -1
  68. package/dist/gen/xeonr/platform/v1/options_pb.d.ts.map +1 -1
  69. package/dist/gen/xeonr/platform/v1/options_pb.js +104 -1
  70. package/dist/gen/xeonr/platform/v1/options_pb.js.map +1 -1
  71. package/dist/handler.d.ts +51 -1
  72. package/dist/handler.d.ts.map +1 -1
  73. package/dist/handler.js +27 -0
  74. package/dist/handler.js.map +1 -1
  75. package/dist/index.d.ts +13 -2
  76. package/dist/index.d.ts.map +1 -1
  77. package/dist/index.js +7 -2
  78. package/dist/index.js.map +1 -1
  79. package/dist/queues.d.ts +158 -0
  80. package/dist/queues.d.ts.map +1 -0
  81. package/dist/queues.js +117 -0
  82. package/dist/queues.js.map +1 -0
  83. package/dist/reporter.d.ts +120 -0
  84. package/dist/reporter.d.ts.map +1 -0
  85. package/dist/reporter.js +323 -0
  86. package/dist/reporter.js.map +1 -0
  87. package/dist/schedules.d.ts +193 -0
  88. package/dist/schedules.d.ts.map +1 -0
  89. package/dist/schedules.js +126 -0
  90. package/dist/schedules.js.map +1 -0
  91. package/dist/testing/cron.d.ts +33 -0
  92. package/dist/testing/cron.d.ts.map +1 -0
  93. package/dist/testing/cron.js +177 -0
  94. package/dist/testing/cron.js.map +1 -0
  95. package/dist/testing/index.d.ts +229 -7
  96. package/dist/testing/index.d.ts.map +1 -1
  97. package/dist/testing/index.js +1304 -103
  98. package/dist/testing/index.js.map +1 -1
  99. package/dist/testing/pipelines.d.ts +99 -0
  100. package/dist/testing/pipelines.d.ts.map +1 -0
  101. package/dist/testing/pipelines.js +445 -0
  102. package/dist/testing/pipelines.js.map +1 -0
  103. package/dist/testing/queues.d.ts +49 -0
  104. package/dist/testing/queues.d.ts.map +1 -0
  105. package/dist/testing/queues.js +72 -0
  106. package/dist/testing/queues.js.map +1 -0
  107. package/dist/testing/schedules.d.ts +125 -0
  108. package/dist/testing/schedules.d.ts.map +1 -0
  109. package/dist/testing/schedules.js +422 -0
  110. package/dist/testing/schedules.js.map +1 -0
  111. package/dist/worker.d.ts +48 -7
  112. package/dist/worker.d.ts.map +1 -1
  113. package/dist/worker.js +59 -9
  114. package/dist/worker.js.map +1 -1
  115. package/package.json +1 -1
@@ -0,0 +1,391 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Duration, Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import type { FactMatcher } from "./secrets_pb.js";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file xeonr/pipelines/v1/tenant_policies.proto.
7
+ */
8
+ export declare const file_xeonr_pipelines_v1_tenant_policies: GenFile;
9
+ /**
10
+ * TierRule assigns a tier to the attempts it matches. It matches when every
11
+ * matcher of `when` matches the run's attested facts and, when `packages` is
12
+ * set, the attempt's step package is one of them. A rule sets at least one
13
+ * of the two.
14
+ *
15
+ * @generated from message xeonr.pipelines.v1.TierRule
16
+ */
17
+ export type TierRule = Message<"xeonr.pipelines.v1.TierRule"> & {
18
+ /**
19
+ * Tier is the tier a matching attempt gets. Pools serve one tier each
20
+ * (Pool.tier) and secrets name the tiers they may reach
21
+ * (SecretPolicy.allowed_tiers); ListTiers lists every tier any tenant's
22
+ * policy assigns.
23
+ *
24
+ * @generated from field: string tier = 1;
25
+ */
26
+ tier: string;
27
+ /**
28
+ * When are matchers on the run's attested facts; every one must match. A
29
+ * fact that is absent never matches, and values compare by type (`true`
30
+ * is not `"true"`). Empty matches any facts.
31
+ *
32
+ * @generated from field: repeated xeonr.pipelines.v1.FactMatcher when = 2;
33
+ */
34
+ when: FactMatcher[];
35
+ /**
36
+ * Packages, when set, are the only step packages (`<namespace>/<name>`,
37
+ * any version) the rule applies to.
38
+ *
39
+ * @generated from field: repeated string packages = 3;
40
+ */
41
+ packages: string[];
42
+ };
43
+ /**
44
+ * Describes the message xeonr.pipelines.v1.TierRule.
45
+ * Use `create(TierRuleSchema)` to create a new message.
46
+ */
47
+ export declare const TierRuleSchema: GenMessage<TierRule>;
48
+ /**
49
+ * TierPolicy is one tenant's tier rules, in order. The forge's would read:
50
+ *
51
+ * rules: [
52
+ * {tier: "deploy", when: [{fact: "protected", any_of: [true]}],
53
+ * packages: ["ci/gitops-flux", "ci/strata-migrate"]},
54
+ * {tier: "trusted", when: [{fact: "protected", any_of: [true]}]}
55
+ * ]
56
+ *
57
+ * The first rule that matches wins; when none does, the attempt gets the
58
+ * least trusted tier.
59
+ *
60
+ * @generated from message xeonr.pipelines.v1.TierPolicy
61
+ */
62
+ export type TierPolicy = Message<"xeonr.pipelines.v1.TierPolicy"> & {
63
+ /**
64
+ * Tenant is the team URN the policy belongs to.
65
+ *
66
+ * @generated from field: string tenant = 8;
67
+ */
68
+ tenant: string;
69
+ /**
70
+ * Rules are tried in order.
71
+ *
72
+ * @generated from field: repeated xeonr.pipelines.v1.TierRule rules = 2;
73
+ */
74
+ rules: TierRule[];
75
+ /**
76
+ * UpdatedAt is when it was last set; unset for a tenant that never set
77
+ * one.
78
+ *
79
+ * @generated from field: google.protobuf.Timestamp updated_at = 3;
80
+ */
81
+ updatedAt?: Timestamp | undefined;
82
+ /**
83
+ * UpdatedBy is the subject URN that last set it.
84
+ *
85
+ * @generated from field: string updated_by = 4;
86
+ */
87
+ updatedBy: string;
88
+ /**
89
+ * PoolsOnlyTiers are the tiers whose attempts run only on runner pools,
90
+ * never on container-platform. An attempt of such a tier goes to the
91
+ * runner queue even when no pool can claim it yet, and CreateRun refuses a
92
+ * run with a node at such a tier that no pool record of the run's tenant
93
+ * could claim. Other tiers run on a pool when one could claim
94
+ * the attempt (judged on pool records, not on runners being online), and
95
+ * otherwise on container-platform where the deployment runs it.
96
+ *
97
+ * @generated from field: repeated string pools_only_tiers = 5;
98
+ */
99
+ poolsOnlyTiers: string[];
100
+ /**
101
+ * OfferTimeout bounds how long an attempt of this tenant's runs may wait
102
+ * on the runner queue for a pool's worker to claim it. When it passes
103
+ * unclaimed, the attempt fails with FAILURE_CLASS_NO_WORKER, which is never
104
+ * retried, and its message names the pools that could have claimed it.
105
+ * It never falls back to container-platform. Unset or zero waits until the
106
+ * run is cancelled.
107
+ *
108
+ * @generated from field: google.protobuf.Duration offer_timeout = 6;
109
+ */
110
+ offerTimeout?: Duration | undefined;
111
+ /**
112
+ * FairnessFact names the attested fact whose string value is a run's
113
+ * fairness key: a dot-separated path into the facts attested for the run
114
+ * at CreateRun, such as `group.path`. Runs of one tenant with different
115
+ * values there are different lanes: a pool's claim is fair between them,
116
+ * and the per-key run quota counts each on its own, so one group's burst
117
+ * does not delay every other group of the tenant. Empty means runs
118
+ * are fair by tenant alone, as is a run whose facts hold no string at the
119
+ * path. The key is read when the run is created and kept with it
120
+ * (`Run.fairness_key`), so a change takes effect for runs created
121
+ * afterwards. A job has no facts and names its key itself
122
+ * (`CreateJobRequest.fairness_key`). PIPE-128.
123
+ *
124
+ * @generated from field: string fairness_fact = 7;
125
+ */
126
+ fairnessFact: string;
127
+ };
128
+ /**
129
+ * Describes the message xeonr.pipelines.v1.TierPolicy.
130
+ * Use `create(TierPolicySchema)` to create a new message.
131
+ */
132
+ export declare const TierPolicySchema: GenMessage<TierPolicy>;
133
+ /**
134
+ * IdTokenAudiencePolicy is the audiences one tenant's runs may ask job
135
+ * identity tokens for.
136
+ *
137
+ * @generated from message xeonr.pipelines.v1.IdTokenAudiencePolicy
138
+ */
139
+ export type IdTokenAudiencePolicy = Message<"xeonr.pipelines.v1.IdTokenAudiencePolicy"> & {
140
+ /**
141
+ * Tenant is the team URN the policy belongs to.
142
+ *
143
+ * @generated from field: string tenant = 5;
144
+ */
145
+ tenant: string;
146
+ /**
147
+ * Audiences, in the order they were set.
148
+ *
149
+ * @generated from field: repeated string audiences = 2;
150
+ */
151
+ audiences: string[];
152
+ /**
153
+ * UpdatedAt is when it was last set; unset for a tenant that never set
154
+ * one.
155
+ *
156
+ * @generated from field: google.protobuf.Timestamp updated_at = 3;
157
+ */
158
+ updatedAt?: Timestamp | undefined;
159
+ /**
160
+ * UpdatedBy is the subject URN that last set it.
161
+ *
162
+ * @generated from field: string updated_by = 4;
163
+ */
164
+ updatedBy: string;
165
+ };
166
+ /**
167
+ * Describes the message xeonr.pipelines.v1.IdTokenAudiencePolicy.
168
+ * Use `create(IdTokenAudiencePolicySchema)` to create a new message.
169
+ */
170
+ export declare const IdTokenAudiencePolicySchema: GenMessage<IdTokenAudiencePolicy>;
171
+ /**
172
+ * @generated from message xeonr.pipelines.v1.SetTierPolicyRequest
173
+ */
174
+ export type SetTierPolicyRequest = Message<"xeonr.pipelines.v1.SetTierPolicyRequest"> & {
175
+ /**
176
+ * Tenant is the team URN (`urn:xeonr:auth:team:<uuid>`) whose policy is set.
177
+ *
178
+ * @generated from field: string tenant = 6;
179
+ */
180
+ tenant: string;
181
+ /**
182
+ * Rules replace the policy's, in order. Empty clears it.
183
+ *
184
+ * @generated from field: repeated xeonr.pipelines.v1.TierRule rules = 2;
185
+ */
186
+ rules: TierRule[];
187
+ /**
188
+ * PoolsOnlyTiers replace the policy's (TierPolicy.pools_only_tiers). Left
189
+ * out, the policy has none: the whole policy is replaced.
190
+ *
191
+ * @generated from field: repeated string pools_only_tiers = 3;
192
+ */
193
+ poolsOnlyTiers: string[];
194
+ /**
195
+ * OfferTimeout replaces the policy's (TierPolicy.offer_timeout). Left
196
+ * out, attempts wait unbounded.
197
+ *
198
+ * @generated from field: google.protobuf.Duration offer_timeout = 4;
199
+ */
200
+ offerTimeout?: Duration | undefined;
201
+ /**
202
+ * FairnessFact replaces the policy's (TierPolicy.fairness_fact): the
203
+ * dot-separated path of the attested fact whose string value is a run's
204
+ * fairness key, such as `group.path`. Left out or empty, runs are fair by
205
+ * tenant alone: the whole policy is replaced.
206
+ *
207
+ * @generated from field: string fairness_fact = 5;
208
+ */
209
+ fairnessFact: string;
210
+ };
211
+ /**
212
+ * Describes the message xeonr.pipelines.v1.SetTierPolicyRequest.
213
+ * Use `create(SetTierPolicyRequestSchema)` to create a new message.
214
+ */
215
+ export declare const SetTierPolicyRequestSchema: GenMessage<SetTierPolicyRequest>;
216
+ /**
217
+ * @generated from message xeonr.pipelines.v1.SetTierPolicyResponse
218
+ */
219
+ export type SetTierPolicyResponse = Message<"xeonr.pipelines.v1.SetTierPolicyResponse"> & {
220
+ /**
221
+ * @generated from field: xeonr.pipelines.v1.TierPolicy policy = 1;
222
+ */
223
+ policy?: TierPolicy | undefined;
224
+ };
225
+ /**
226
+ * Describes the message xeonr.pipelines.v1.SetTierPolicyResponse.
227
+ * Use `create(SetTierPolicyResponseSchema)` to create a new message.
228
+ */
229
+ export declare const SetTierPolicyResponseSchema: GenMessage<SetTierPolicyResponse>;
230
+ /**
231
+ * @generated from message xeonr.pipelines.v1.GetTierPolicyRequest
232
+ */
233
+ export type GetTierPolicyRequest = Message<"xeonr.pipelines.v1.GetTierPolicyRequest"> & {
234
+ /**
235
+ * Tenant is the team URN (`urn:xeonr:auth:team:<uuid>`) whose policy is read.
236
+ *
237
+ * @generated from field: string tenant = 2;
238
+ */
239
+ tenant: string;
240
+ };
241
+ /**
242
+ * Describes the message xeonr.pipelines.v1.GetTierPolicyRequest.
243
+ * Use `create(GetTierPolicyRequestSchema)` to create a new message.
244
+ */
245
+ export declare const GetTierPolicyRequestSchema: GenMessage<GetTierPolicyRequest>;
246
+ /**
247
+ * @generated from message xeonr.pipelines.v1.GetTierPolicyResponse
248
+ */
249
+ export type GetTierPolicyResponse = Message<"xeonr.pipelines.v1.GetTierPolicyResponse"> & {
250
+ /**
251
+ * @generated from field: xeonr.pipelines.v1.TierPolicy policy = 1;
252
+ */
253
+ policy?: TierPolicy | undefined;
254
+ };
255
+ /**
256
+ * Describes the message xeonr.pipelines.v1.GetTierPolicyResponse.
257
+ * Use `create(GetTierPolicyResponseSchema)` to create a new message.
258
+ */
259
+ export declare const GetTierPolicyResponseSchema: GenMessage<GetTierPolicyResponse>;
260
+ /**
261
+ * @generated from message xeonr.pipelines.v1.SetIdTokenAudiencePolicyRequest
262
+ */
263
+ export type SetIdTokenAudiencePolicyRequest = Message<"xeonr.pipelines.v1.SetIdTokenAudiencePolicyRequest"> & {
264
+ /**
265
+ * Tenant is the team URN (`urn:xeonr:auth:team:<uuid>`) whose policy is set.
266
+ *
267
+ * @generated from field: string tenant = 3;
268
+ */
269
+ tenant: string;
270
+ /**
271
+ * Audiences replace the policy's. Empty clears it. Each must belong
272
+ * to the tenant (see SetIdTokenAudiencePolicy).
273
+ *
274
+ * @generated from field: repeated string audiences = 2;
275
+ */
276
+ audiences: string[];
277
+ };
278
+ /**
279
+ * Describes the message xeonr.pipelines.v1.SetIdTokenAudiencePolicyRequest.
280
+ * Use `create(SetIdTokenAudiencePolicyRequestSchema)` to create a new message.
281
+ */
282
+ export declare const SetIdTokenAudiencePolicyRequestSchema: GenMessage<SetIdTokenAudiencePolicyRequest>;
283
+ /**
284
+ * @generated from message xeonr.pipelines.v1.SetIdTokenAudiencePolicyResponse
285
+ */
286
+ export type SetIdTokenAudiencePolicyResponse = Message<"xeonr.pipelines.v1.SetIdTokenAudiencePolicyResponse"> & {
287
+ /**
288
+ * @generated from field: xeonr.pipelines.v1.IdTokenAudiencePolicy policy = 1;
289
+ */
290
+ policy?: IdTokenAudiencePolicy | undefined;
291
+ };
292
+ /**
293
+ * Describes the message xeonr.pipelines.v1.SetIdTokenAudiencePolicyResponse.
294
+ * Use `create(SetIdTokenAudiencePolicyResponseSchema)` to create a new message.
295
+ */
296
+ export declare const SetIdTokenAudiencePolicyResponseSchema: GenMessage<SetIdTokenAudiencePolicyResponse>;
297
+ /**
298
+ * @generated from message xeonr.pipelines.v1.GetIdTokenAudiencePolicyRequest
299
+ */
300
+ export type GetIdTokenAudiencePolicyRequest = Message<"xeonr.pipelines.v1.GetIdTokenAudiencePolicyRequest"> & {
301
+ /**
302
+ * Tenant is the team URN (`urn:xeonr:auth:team:<uuid>`) whose policy is read.
303
+ *
304
+ * @generated from field: string tenant = 2;
305
+ */
306
+ tenant: string;
307
+ };
308
+ /**
309
+ * Describes the message xeonr.pipelines.v1.GetIdTokenAudiencePolicyRequest.
310
+ * Use `create(GetIdTokenAudiencePolicyRequestSchema)` to create a new message.
311
+ */
312
+ export declare const GetIdTokenAudiencePolicyRequestSchema: GenMessage<GetIdTokenAudiencePolicyRequest>;
313
+ /**
314
+ * @generated from message xeonr.pipelines.v1.GetIdTokenAudiencePolicyResponse
315
+ */
316
+ export type GetIdTokenAudiencePolicyResponse = Message<"xeonr.pipelines.v1.GetIdTokenAudiencePolicyResponse"> & {
317
+ /**
318
+ * @generated from field: xeonr.pipelines.v1.IdTokenAudiencePolicy policy = 1;
319
+ */
320
+ policy?: IdTokenAudiencePolicy | undefined;
321
+ };
322
+ /**
323
+ * Describes the message xeonr.pipelines.v1.GetIdTokenAudiencePolicyResponse.
324
+ * Use `create(GetIdTokenAudiencePolicyResponseSchema)` to create a new message.
325
+ */
326
+ export declare const GetIdTokenAudiencePolicyResponseSchema: GenMessage<GetIdTokenAudiencePolicyResponse>;
327
+ /**
328
+ * TenantPoliciesService holds the policies a tenant sets for its own runs:
329
+ * how its attempts' trust tier is computed, where they run and what they are
330
+ * fair by (TierPolicy), and which audiences its nodes may ask job identity
331
+ * tokens for (IdTokenAudiencePolicy). PIPE-87.
332
+ *
333
+ * A tenant is a consuming service: the one platform team it runs all of its
334
+ * pipelines under (the forge's is team `forge`). Each policy is a singleton
335
+ * of its tenant: one tier policy and one audience policy per tenant, each
336
+ * replaced whole by its Set RPC and read by its Get RPC. A change takes
337
+ * effect for attempts offered afterwards, without a restart of pipelines.
338
+ *
339
+ * Ownership. A policy belongs to one tenant, a Xeonr Auth team. It is set and
340
+ * read by that tenant's own members that are service accounts (a service's
341
+ * service accounts are members of its own team), and by the platform's
342
+ * operators (people, members of the operators' team). `tenant` is always
343
+ * named. Anyone else, a person who is a member of the tenant but not an
344
+ * operator included, is refused with `permission_denied`: people who are not
345
+ * operators never write a policy, and a policy is the consuming service's
346
+ * configuration, not something its end users see.
347
+ *
348
+ * Why a service of its own: neither policy is a pool's, a secret's or a
349
+ * sink's. SinksService is about where events go; PoolsService is about where
350
+ * attempts run. A tenant's policies are one resource family, so they share
351
+ * one service and one pair of scopes.
352
+ *
353
+ * Verbs outside api.rpc-naming's: none.
354
+ *
355
+ * @generated from service xeonr.pipelines.v1.TenantPoliciesService
356
+ */
357
+ export declare const TenantPoliciesService: GenService<{
358
+ /**
359
+ * @generated from rpc xeonr.pipelines.v1.TenantPoliciesService.SetTierPolicy
360
+ */
361
+ setTierPolicy: {
362
+ methodKind: "unary";
363
+ input: typeof SetTierPolicyRequestSchema;
364
+ output: typeof SetTierPolicyResponseSchema;
365
+ };
366
+ /**
367
+ * @generated from rpc xeonr.pipelines.v1.TenantPoliciesService.GetTierPolicy
368
+ */
369
+ getTierPolicy: {
370
+ methodKind: "unary";
371
+ input: typeof GetTierPolicyRequestSchema;
372
+ output: typeof GetTierPolicyResponseSchema;
373
+ };
374
+ /**
375
+ * @generated from rpc xeonr.pipelines.v1.TenantPoliciesService.SetIdTokenAudiencePolicy
376
+ */
377
+ setIdTokenAudiencePolicy: {
378
+ methodKind: "unary";
379
+ input: typeof SetIdTokenAudiencePolicyRequestSchema;
380
+ output: typeof SetIdTokenAudiencePolicyResponseSchema;
381
+ };
382
+ /**
383
+ * @generated from rpc xeonr.pipelines.v1.TenantPoliciesService.GetIdTokenAudiencePolicy
384
+ */
385
+ getIdTokenAudiencePolicy: {
386
+ methodKind: "unary";
387
+ input: typeof GetIdTokenAudiencePolicyRequestSchema;
388
+ output: typeof GetIdTokenAudiencePolicyResponseSchema;
389
+ };
390
+ }>;
391
+ //# sourceMappingURL=tenant_policies_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenant_policies_pb.d.ts","sourceRoot":"","sources":["../../../../../src/gen/xeonr/pipelines/v1/tenant_policies_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAIpF,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAElE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,uCAAuC,EAAE,OACmzR,CAAC;AAE12R;;;;;;;GAOG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,6BAA6B,CAAC,GAAG;IAC9D;;;;;;;OAOG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;OAMG;IACH,IAAI,EAAE,WAAW,EAAE,CAAC;IAEpB;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF;;;GAGG;AAC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,EAAE,OAAO,sCAAsC,CAAC;KACvD,CAAC;CACH,CACwD,CAAC"}
@@ -0,0 +1,100 @@
1
+ // @generated by protoc-gen-es v2.17.0 with parameter "target=ts,import_extension=.js"
2
+ // @generated from file xeonr/pipelines/v1/tenant_policies.proto (package xeonr.pipelines.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js";
6
+ import { file_gnostic_openapi_v3_annotations } from "../../../gnostic/openapi/v3/annotations_pb.js";
7
+ import { file_google_protobuf_duration, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
8
+ import { file_xeonr_pipelines_v1_secrets } from "./secrets_pb.js";
9
+ import { file_xeonr_platform_v1_options } from "../../platform/v1/options_pb.js";
10
+ /**
11
+ * Describes the file xeonr/pipelines/v1/tenant_policies.proto.
12
+ */
13
+ export const file_xeonr_pipelines_v1_tenant_policies = /*@__PURE__*/ fileDesc("Cih4ZW9uci9waXBlbGluZXMvdjEvdGVuYW50X3BvbGljaWVzLnByb3RvEhJ4ZW9uci5waXBlbGluZXMudjEiogMKCFRpZXJSdWxlEj4KBHRpZXIYASABKAlCMLpHDToLEgkidHJ1c3RlZCK6SB1yGxABGD8yFV5bYS16MC05XVthLXowLTlfLV0qJBI3CgR3aGVuGAIgAygLMh8ueGVvbnIucGlwZWxpbmVzLnYxLkZhY3RNYXRjaGVyQgi6SAWSAQIQEBJVCghwYWNrYWdlcxgDIAMoCUJDukhAkgE9EEAYASI3cjUYfzIxXlthLXowLTldW2EtejAtOS1dezAsNjJ9L1thLXowLTldW2EtejAtOS1dezAsNjJ9JDrFAbpIwQEavgEKGHRpZXJfcnVsZS5ub3RfZXZlcnl0aGluZxJyYSBydWxlIG5lZWRzIHdoZW4gb3IgcGFja2FnZXM6IG9uZSB3aXRoIG5laXRoZXIgbWF0Y2hlcyBldmVyeSBhdHRlbXB0LCB3aGlj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2xpY3k6ZWRpdIDrBAGS6wQcaWRfdG9rZW5fYXVkaWVuY2VfcG9saWN5LnNldBLiAwoYR2V0SWRUb2tlbkF1ZGllbmNlUG9saWN5EjMueGVvbnIucGlwZWxpbmVzLnYxLkdldElkVG9rZW5BdWRpZW5jZVBvbGljeVJlcXVlc3QaNC54ZW9uci5waXBlbGluZXMudjEuR2V0SWRUb2tlbkF1ZGllbmNlUG9saWN5UmVzcG9uc2Ui2gK6R7kCEhxHZXQgSUQgVG9rZW4gQXVkaWVuY2UgUG9saWN5GpgCUmVhZHMgdGhlIGF1ZGllbmNlcyBhIHRlbmFudCdzIHJ1bnMgbWF5IGFzayBqb2IgaWRlbnRpdHkgdG9rZW5zIGZvci4gQSB0ZW5hbnQgdGhhdCBoYXMgbmV2ZXIgc2V0IHRoZW0gcmVhZHMgYXMgYSBwb2xpY3kgd2l0aCBubyBhdWRpZW5jZXMgYW5kIG5vIGB1cGRhdGVkX2F0YC4gUmVhZCBieSB0aGUgdGVuYW50J3Mgc2VydmljZS1hY2NvdW50IG1lbWJlcnMgYW5kIGJ5IG9wZXJhdG9ycy4gTWlsZXN0b25lIDIuCgoqKlJlcXVpcmVkIHNjb3BlczoqKiBgcGlwZWxpbmVzOnBvbGljeTpyZWFkYOrqBBVwaXBlbGluZXM6cG9saWN5OnJlYWSA6wQBQllaV3Byb3RvLnByb2Qud3RmL2dlbi9nby94ZW9uci9waXBlbGluZXMvcHJvdG9jb2xidWZmZXJzL2dvL3hlb25yL3BpcGVsaW5lcy92MTtwaXBlbGluZXN2MWIGcHJvdG8z", [file_buf_validate_validate, file_gnostic_openapi_v3_annotations, file_google_protobuf_duration, file_google_protobuf_timestamp, file_xeonr_pipelines_v1_secrets, file_xeonr_platform_v1_options]);
14
+ /**
15
+ * Describes the message xeonr.pipelines.v1.TierRule.
16
+ * Use `create(TierRuleSchema)` to create a new message.
17
+ */
18
+ export const TierRuleSchema = /*@__PURE__*/ messageDesc(file_xeonr_pipelines_v1_tenant_policies, 0);
19
+ /**
20
+ * Describes the message xeonr.pipelines.v1.TierPolicy.
21
+ * Use `create(TierPolicySchema)` to create a new message.
22
+ */
23
+ export const TierPolicySchema = /*@__PURE__*/ messageDesc(file_xeonr_pipelines_v1_tenant_policies, 1);
24
+ /**
25
+ * Describes the message xeonr.pipelines.v1.IdTokenAudiencePolicy.
26
+ * Use `create(IdTokenAudiencePolicySchema)` to create a new message.
27
+ */
28
+ export const IdTokenAudiencePolicySchema = /*@__PURE__*/ messageDesc(file_xeonr_pipelines_v1_tenant_policies, 2);
29
+ /**
30
+ * Describes the message xeonr.pipelines.v1.SetTierPolicyRequest.
31
+ * Use `create(SetTierPolicyRequestSchema)` to create a new message.
32
+ */
33
+ export const SetTierPolicyRequestSchema = /*@__PURE__*/ messageDesc(file_xeonr_pipelines_v1_tenant_policies, 3);
34
+ /**
35
+ * Describes the message xeonr.pipelines.v1.SetTierPolicyResponse.
36
+ * Use `create(SetTierPolicyResponseSchema)` to create a new message.
37
+ */
38
+ export const SetTierPolicyResponseSchema = /*@__PURE__*/ messageDesc(file_xeonr_pipelines_v1_tenant_policies, 4);
39
+ /**
40
+ * Describes the message xeonr.pipelines.v1.GetTierPolicyRequest.
41
+ * Use `create(GetTierPolicyRequestSchema)` to create a new message.
42
+ */
43
+ export const GetTierPolicyRequestSchema = /*@__PURE__*/ messageDesc(file_xeonr_pipelines_v1_tenant_policies, 5);
44
+ /**
45
+ * Describes the message xeonr.pipelines.v1.GetTierPolicyResponse.
46
+ * Use `create(GetTierPolicyResponseSchema)` to create a new message.
47
+ */
48
+ export const GetTierPolicyResponseSchema = /*@__PURE__*/ messageDesc(file_xeonr_pipelines_v1_tenant_policies, 6);
49
+ /**
50
+ * Describes the message xeonr.pipelines.v1.SetIdTokenAudiencePolicyRequest.
51
+ * Use `create(SetIdTokenAudiencePolicyRequestSchema)` to create a new message.
52
+ */
53
+ export const SetIdTokenAudiencePolicyRequestSchema = /*@__PURE__*/ messageDesc(file_xeonr_pipelines_v1_tenant_policies, 7);
54
+ /**
55
+ * Describes the message xeonr.pipelines.v1.SetIdTokenAudiencePolicyResponse.
56
+ * Use `create(SetIdTokenAudiencePolicyResponseSchema)` to create a new message.
57
+ */
58
+ export const SetIdTokenAudiencePolicyResponseSchema = /*@__PURE__*/ messageDesc(file_xeonr_pipelines_v1_tenant_policies, 8);
59
+ /**
60
+ * Describes the message xeonr.pipelines.v1.GetIdTokenAudiencePolicyRequest.
61
+ * Use `create(GetIdTokenAudiencePolicyRequestSchema)` to create a new message.
62
+ */
63
+ export const GetIdTokenAudiencePolicyRequestSchema = /*@__PURE__*/ messageDesc(file_xeonr_pipelines_v1_tenant_policies, 9);
64
+ /**
65
+ * Describes the message xeonr.pipelines.v1.GetIdTokenAudiencePolicyResponse.
66
+ * Use `create(GetIdTokenAudiencePolicyResponseSchema)` to create a new message.
67
+ */
68
+ export const GetIdTokenAudiencePolicyResponseSchema = /*@__PURE__*/ messageDesc(file_xeonr_pipelines_v1_tenant_policies, 10);
69
+ /**
70
+ * TenantPoliciesService holds the policies a tenant sets for its own runs:
71
+ * how its attempts' trust tier is computed, where they run and what they are
72
+ * fair by (TierPolicy), and which audiences its nodes may ask job identity
73
+ * tokens for (IdTokenAudiencePolicy). PIPE-87.
74
+ *
75
+ * A tenant is a consuming service: the one platform team it runs all of its
76
+ * pipelines under (the forge's is team `forge`). Each policy is a singleton
77
+ * of its tenant: one tier policy and one audience policy per tenant, each
78
+ * replaced whole by its Set RPC and read by its Get RPC. A change takes
79
+ * effect for attempts offered afterwards, without a restart of pipelines.
80
+ *
81
+ * Ownership. A policy belongs to one tenant, a Xeonr Auth team. It is set and
82
+ * read by that tenant's own members that are service accounts (a service's
83
+ * service accounts are members of its own team), and by the platform's
84
+ * operators (people, members of the operators' team). `tenant` is always
85
+ * named. Anyone else, a person who is a member of the tenant but not an
86
+ * operator included, is refused with `permission_denied`: people who are not
87
+ * operators never write a policy, and a policy is the consuming service's
88
+ * configuration, not something its end users see.
89
+ *
90
+ * Why a service of its own: neither policy is a pool's, a secret's or a
91
+ * sink's. SinksService is about where events go; PoolsService is about where
92
+ * attempts run. A tenant's policies are one resource family, so they share
93
+ * one service and one pair of scopes.
94
+ *
95
+ * Verbs outside api.rpc-naming's: none.
96
+ *
97
+ * @generated from service xeonr.pipelines.v1.TenantPoliciesService
98
+ */
99
+ export const TenantPoliciesService = /*@__PURE__*/ serviceDesc(file_xeonr_pipelines_v1_tenant_policies, 0);
100
+ //# sourceMappingURL=tenant_policies_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenant_policies_pb.js","sourceRoot":"","sources":["../../../../../src/gen/xeonr/pipelines/v1/tenant_policies_pb.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,4GAA4G;AAC5G,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAClF,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,mCAAmC,EAAE,MAAM,+CAA+C,CAAC;AAEpG,OAAO,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAEvG,OAAO,EAAE,+BAA+B,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAGjF;;GAEG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAY,aAAa,CAC3E,QAAQ,CAAC,0pRAA0pR,EAAE,CAAC,0BAA0B,EAAE,mCAAmC,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,8BAA8B,CAAC,CAAC,CAAC;AAuC12R;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAyB,aAAa,CAC/D,WAAW,CAAC,uCAAuC,EAAE,CAAC,CAAC,CAAC;AAyF1D;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA2B,aAAa,CACnE,WAAW,CAAC,uCAAu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