@pidgr/proto 0.36.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.
@@ -0,0 +1,496 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
+ // @generated from file pidgr/v1/organization.proto (package pidgr.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
8
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
9
+ import type { WorkflowDefinition } from "./common_pb";
10
+ import { file_pidgr_v1_common } from "./common_pb";
11
+ import type { User } from "./user_pb";
12
+ import { file_pidgr_v1_user } from "./user_pb";
13
+ import type { Message } from "@bufbuild/protobuf";
14
+
15
+ /**
16
+ * Describes the file pidgr/v1/organization.proto.
17
+ */
18
+ export const file_pidgr_v1_organization: GenFile = /*@__PURE__*/
19
+ fileDesc("ChtwaWRnci92MS9vcmdhbml6YXRpb24ucHJvdG8SCHBpZGdyLnYxIj8KE1Nzb0F0dHJpYnV0ZU1hcHBpbmcSEQoJaWRwX2NsYWltGAEgASgJEhUKDXByb2ZpbGVfZmllbGQYAiABKAkiogIKDE9yZ2FuaXphdGlvbhIKCgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJEjYKEGRlZmF1bHRfd29ya2Zsb3cYAyABKAsyHC5waWRnci52MS5Xb3JrZmxvd0RlZmluaXRpb24SLgoKY3JlYXRlZF9hdBgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASJAoIaW5kdXN0cnkYBSABKA4yEi5waWRnci52MS5JbmR1c3RyeRIrCgxjb21wYW55X3NpemUYBiABKA4yFS5waWRnci52MS5Db21wYW55U2l6ZRI9ChZzc29fYXR0cmlidXRlX21hcHBpb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3IudjEuVXBkYXRlU3NvQXR0cmlidXRlTWFwcGluZ3NSZXF1ZXN0GiwucGlkZ3IudjEuVXBkYXRlU3NvQXR0cmlidXRlTWFwcGluZ3NSZXNwb25zZUI2WjRnaXRodWIuY29tL3BpZGdyL3BpZGdyLXByb3RvL2dlbi9nby9waWRnci92MTtwaWRncnYxYgZwcm90bzM", [file_google_protobuf_timestamp, file_pidgr_v1_common, file_pidgr_v1_user]);
20
+
21
+ /**
22
+ * Maps an identity provider claim to a user profile field.
23
+ * Used for automatic profile population when users authenticate via SSO/SAML.
24
+ *
25
+ * @generated from message pidgr.v1.SsoAttributeMapping
26
+ */
27
+ export type SsoAttributeMapping = Message<"pidgr.v1.SsoAttributeMapping"> & {
28
+ /**
29
+ * Claim name from the identity provider (e.g. "urn:oid:2.5.4.11", "given_name").
30
+ * Constraints: Max length 500 characters.
31
+ *
32
+ * @generated from field: string idp_claim = 1;
33
+ */
34
+ idpClaim: string;
35
+
36
+ /**
37
+ * Target UserProfile field name (e.g. "department", "first_name").
38
+ * For custom attributes, use "custom:" prefix (e.g. "custom:cost_center").
39
+ * Constraints: Max length 100 characters.
40
+ *
41
+ * @generated from field: string profile_field = 2;
42
+ */
43
+ profileField: string;
44
+ };
45
+
46
+ /**
47
+ * Describes the message pidgr.v1.SsoAttributeMapping.
48
+ * Use `create(SsoAttributeMappingSchema)` to create a new message.
49
+ */
50
+ export const SsoAttributeMappingSchema: GenMessage<SsoAttributeMapping> = /*@__PURE__*/
51
+ messageDesc(file_pidgr_v1_organization, 0);
52
+
53
+ /**
54
+ * An organization (tenant) in the Pidgr platform.
55
+ *
56
+ * @generated from message pidgr.v1.Organization
57
+ */
58
+ export type Organization = Message<"pidgr.v1.Organization"> & {
59
+ /**
60
+ * Unique identifier for the organization.
61
+ *
62
+ * @generated from field: string id = 1;
63
+ */
64
+ id: string;
65
+
66
+ /**
67
+ * Organization display name.
68
+ * Constraints: Max length 200 characters.
69
+ *
70
+ * @generated from field: string name = 2;
71
+ */
72
+ name: string;
73
+
74
+ /**
75
+ * Default workflow used when campaigns don't specify one.
76
+ *
77
+ * @generated from field: pidgr.v1.WorkflowDefinition default_workflow = 3;
78
+ */
79
+ defaultWorkflow?: WorkflowDefinition;
80
+
81
+ /**
82
+ * Timestamp when the organization was created.
83
+ *
84
+ * @generated from field: google.protobuf.Timestamp created_at = 4;
85
+ */
86
+ createdAt?: Timestamp;
87
+
88
+ /**
89
+ * Industry vertical.
90
+ *
91
+ * @generated from field: pidgr.v1.Industry industry = 5;
92
+ */
93
+ industry: Industry;
94
+
95
+ /**
96
+ * Employee headcount range.
97
+ *
98
+ * @generated from field: pidgr.v1.CompanySize company_size = 6;
99
+ */
100
+ companySize: CompanySize;
101
+
102
+ /**
103
+ * SSO identity provider claim-to-profile mappings.
104
+ * Empty when the organization does not use SSO.
105
+ *
106
+ * @generated from field: repeated pidgr.v1.SsoAttributeMapping sso_attribute_mappings = 7;
107
+ */
108
+ ssoAttributeMappings: SsoAttributeMapping[];
109
+ };
110
+
111
+ /**
112
+ * Describes the message pidgr.v1.Organization.
113
+ * Use `create(OrganizationSchema)` to create a new message.
114
+ */
115
+ export const OrganizationSchema: GenMessage<Organization> = /*@__PURE__*/
116
+ messageDesc(file_pidgr_v1_organization, 1);
117
+
118
+ /**
119
+ * Request to create a new organization with an admin user.
120
+ * Supports API key auth (service-to-service) and JWT auth (self-service onboarding).
121
+ *
122
+ * @generated from message pidgr.v1.CreateOrganizationRequest
123
+ */
124
+ export type CreateOrganizationRequest = Message<"pidgr.v1.CreateOrganizationRequest"> & {
125
+ /**
126
+ * Name for the new organization.
127
+ * Constraints: Max length 200 characters.
128
+ *
129
+ * @generated from field: string name = 1;
130
+ */
131
+ name: string;
132
+
133
+ /**
134
+ * Email address for the initial admin user.
135
+ * Only used with API key auth; ignored with JWT auth (email derived from identity provider subject).
136
+ *
137
+ * @generated from field: string admin_email = 2;
138
+ */
139
+ adminEmail: string;
140
+
141
+ /**
142
+ * Industry vertical for the organization.
143
+ *
144
+ * @generated from field: pidgr.v1.Industry industry = 3;
145
+ */
146
+ industry: Industry;
147
+
148
+ /**
149
+ * Employee headcount range.
150
+ *
151
+ * @generated from field: pidgr.v1.CompanySize company_size = 4;
152
+ */
153
+ companySize: CompanySize;
154
+
155
+ /**
156
+ * Access code required during early access (JWT auth only). Ignored with API key auth.
157
+ * Format: PIDGR-XXXXXXXX (8 alphanumeric characters).
158
+ *
159
+ * @generated from field: string access_code = 5;
160
+ */
161
+ accessCode: string;
162
+ };
163
+
164
+ /**
165
+ * Describes the message pidgr.v1.CreateOrganizationRequest.
166
+ * Use `create(CreateOrganizationRequestSchema)` to create a new message.
167
+ */
168
+ export const CreateOrganizationRequestSchema: GenMessage<CreateOrganizationRequest> = /*@__PURE__*/
169
+ messageDesc(file_pidgr_v1_organization, 2);
170
+
171
+ /**
172
+ * Response after creating an organization.
173
+ *
174
+ * @generated from message pidgr.v1.CreateOrganizationResponse
175
+ */
176
+ export type CreateOrganizationResponse = Message<"pidgr.v1.CreateOrganizationResponse"> & {
177
+ /**
178
+ * The newly created organization.
179
+ *
180
+ * @generated from field: pidgr.v1.Organization organization = 1;
181
+ */
182
+ organization?: Organization;
183
+
184
+ /**
185
+ * The admin user created for the organization.
186
+ *
187
+ * @generated from field: pidgr.v1.User admin_user = 2;
188
+ */
189
+ adminUser?: User;
190
+ };
191
+
192
+ /**
193
+ * Describes the message pidgr.v1.CreateOrganizationResponse.
194
+ * Use `create(CreateOrganizationResponseSchema)` to create a new message.
195
+ */
196
+ export const CreateOrganizationResponseSchema: GenMessage<CreateOrganizationResponse> = /*@__PURE__*/
197
+ messageDesc(file_pidgr_v1_organization, 3);
198
+
199
+ /**
200
+ * Request to retrieve the organization for the authenticated user.
201
+ *
202
+ * @generated from message pidgr.v1.GetOrganizationRequest
203
+ */
204
+ export type GetOrganizationRequest = Message<"pidgr.v1.GetOrganizationRequest"> & {
205
+ };
206
+
207
+ /**
208
+ * Describes the message pidgr.v1.GetOrganizationRequest.
209
+ * Use `create(GetOrganizationRequestSchema)` to create a new message.
210
+ */
211
+ export const GetOrganizationRequestSchema: GenMessage<GetOrganizationRequest> = /*@__PURE__*/
212
+ messageDesc(file_pidgr_v1_organization, 4);
213
+
214
+ /**
215
+ * Response containing the organization.
216
+ *
217
+ * @generated from message pidgr.v1.GetOrganizationResponse
218
+ */
219
+ export type GetOrganizationResponse = Message<"pidgr.v1.GetOrganizationResponse"> & {
220
+ /**
221
+ * The organization the authenticated user belongs to.
222
+ *
223
+ * @generated from field: pidgr.v1.Organization organization = 1;
224
+ */
225
+ organization?: Organization;
226
+ };
227
+
228
+ /**
229
+ * Describes the message pidgr.v1.GetOrganizationResponse.
230
+ * Use `create(GetOrganizationResponseSchema)` to create a new message.
231
+ */
232
+ export const GetOrganizationResponseSchema: GenMessage<GetOrganizationResponse> = /*@__PURE__*/
233
+ messageDesc(file_pidgr_v1_organization, 5);
234
+
235
+ /**
236
+ * Request to update organization settings.
237
+ *
238
+ * @generated from message pidgr.v1.UpdateOrganizationRequest
239
+ */
240
+ export type UpdateOrganizationRequest = Message<"pidgr.v1.UpdateOrganizationRequest"> & {
241
+ /**
242
+ * New organization name. Empty string leaves unchanged.
243
+ * Constraints: Max length 200 characters.
244
+ *
245
+ * @generated from field: string name = 1;
246
+ */
247
+ name: string;
248
+
249
+ /**
250
+ * New default workflow definition. Null leaves unchanged.
251
+ *
252
+ * @generated from field: pidgr.v1.WorkflowDefinition default_workflow = 2;
253
+ */
254
+ defaultWorkflow?: WorkflowDefinition;
255
+
256
+ /**
257
+ * New industry vertical. UNSPECIFIED leaves unchanged.
258
+ *
259
+ * @generated from field: pidgr.v1.Industry industry = 3;
260
+ */
261
+ industry: Industry;
262
+
263
+ /**
264
+ * New employee headcount range. UNSPECIFIED leaves unchanged.
265
+ *
266
+ * @generated from field: pidgr.v1.CompanySize company_size = 4;
267
+ */
268
+ companySize: CompanySize;
269
+ };
270
+
271
+ /**
272
+ * Describes the message pidgr.v1.UpdateOrganizationRequest.
273
+ * Use `create(UpdateOrganizationRequestSchema)` to create a new message.
274
+ */
275
+ export const UpdateOrganizationRequestSchema: GenMessage<UpdateOrganizationRequest> = /*@__PURE__*/
276
+ messageDesc(file_pidgr_v1_organization, 6);
277
+
278
+ /**
279
+ * Response after updating the organization.
280
+ *
281
+ * @generated from message pidgr.v1.UpdateOrganizationResponse
282
+ */
283
+ export type UpdateOrganizationResponse = Message<"pidgr.v1.UpdateOrganizationResponse"> & {
284
+ /**
285
+ * The updated organization.
286
+ *
287
+ * @generated from field: pidgr.v1.Organization organization = 1;
288
+ */
289
+ organization?: Organization;
290
+ };
291
+
292
+ /**
293
+ * Describes the message pidgr.v1.UpdateOrganizationResponse.
294
+ * Use `create(UpdateOrganizationResponseSchema)` to create a new message.
295
+ */
296
+ export const UpdateOrganizationResponseSchema: GenMessage<UpdateOrganizationResponse> = /*@__PURE__*/
297
+ messageDesc(file_pidgr_v1_organization, 7);
298
+
299
+ /**
300
+ * Request to replace all SSO attribute mappings for the organization.
301
+ *
302
+ * @generated from message pidgr.v1.UpdateSsoAttributeMappingsRequest
303
+ */
304
+ export type UpdateSsoAttributeMappingsRequest = Message<"pidgr.v1.UpdateSsoAttributeMappingsRequest"> & {
305
+ /**
306
+ * Complete list of SSO mappings (replaces all existing mappings).
307
+ *
308
+ * @generated from field: repeated pidgr.v1.SsoAttributeMapping sso_attribute_mappings = 1;
309
+ */
310
+ ssoAttributeMappings: SsoAttributeMapping[];
311
+ };
312
+
313
+ /**
314
+ * Describes the message pidgr.v1.UpdateSsoAttributeMappingsRequest.
315
+ * Use `create(UpdateSsoAttributeMappingsRequestSchema)` to create a new message.
316
+ */
317
+ export const UpdateSsoAttributeMappingsRequestSchema: GenMessage<UpdateSsoAttributeMappingsRequest> = /*@__PURE__*/
318
+ messageDesc(file_pidgr_v1_organization, 8);
319
+
320
+ /**
321
+ * Response after updating SSO attribute mappings.
322
+ *
323
+ * @generated from message pidgr.v1.UpdateSsoAttributeMappingsResponse
324
+ */
325
+ export type UpdateSsoAttributeMappingsResponse = Message<"pidgr.v1.UpdateSsoAttributeMappingsResponse"> & {
326
+ /**
327
+ * The updated organization with the new SSO mappings.
328
+ *
329
+ * @generated from field: pidgr.v1.Organization organization = 1;
330
+ */
331
+ organization?: Organization;
332
+ };
333
+
334
+ /**
335
+ * Describes the message pidgr.v1.UpdateSsoAttributeMappingsResponse.
336
+ * Use `create(UpdateSsoAttributeMappingsResponseSchema)` to create a new message.
337
+ */
338
+ export const UpdateSsoAttributeMappingsResponseSchema: GenMessage<UpdateSsoAttributeMappingsResponse> = /*@__PURE__*/
339
+ messageDesc(file_pidgr_v1_organization, 9);
340
+
341
+ /**
342
+ * Industry vertical for an organization.
343
+ *
344
+ * @generated from enum pidgr.v1.Industry
345
+ */
346
+ export enum Industry {
347
+ /**
348
+ * @generated from enum value: INDUSTRY_UNSPECIFIED = 0;
349
+ */
350
+ UNSPECIFIED = 0,
351
+
352
+ /**
353
+ * @generated from enum value: INDUSTRY_TECHNOLOGY = 1;
354
+ */
355
+ TECHNOLOGY = 1,
356
+
357
+ /**
358
+ * @generated from enum value: INDUSTRY_FINANCE = 2;
359
+ */
360
+ FINANCE = 2,
361
+
362
+ /**
363
+ * @generated from enum value: INDUSTRY_HEALTHCARE = 3;
364
+ */
365
+ HEALTHCARE = 3,
366
+
367
+ /**
368
+ * @generated from enum value: INDUSTRY_EDUCATION = 4;
369
+ */
370
+ EDUCATION = 4,
371
+
372
+ /**
373
+ * @generated from enum value: INDUSTRY_RETAIL = 5;
374
+ */
375
+ RETAIL = 5,
376
+
377
+ /**
378
+ * @generated from enum value: INDUSTRY_MANUFACTURING = 6;
379
+ */
380
+ MANUFACTURING = 6,
381
+
382
+ /**
383
+ * @generated from enum value: INDUSTRY_MEDIA = 7;
384
+ */
385
+ MEDIA = 7,
386
+
387
+ /**
388
+ * @generated from enum value: INDUSTRY_OTHER = 8;
389
+ */
390
+ OTHER = 8,
391
+ }
392
+
393
+ /**
394
+ * Describes the enum pidgr.v1.Industry.
395
+ */
396
+ export const IndustrySchema: GenEnum<Industry> = /*@__PURE__*/
397
+ enumDesc(file_pidgr_v1_organization, 0);
398
+
399
+ /**
400
+ * Employee headcount range for an organization.
401
+ *
402
+ * @generated from enum pidgr.v1.CompanySize
403
+ */
404
+ export enum CompanySize {
405
+ /**
406
+ * @generated from enum value: COMPANY_SIZE_UNSPECIFIED = 0;
407
+ */
408
+ COMPANY_SIZE_UNSPECIFIED = 0,
409
+
410
+ /**
411
+ * @generated from enum value: COMPANY_SIZE_1_200 = 1;
412
+ */
413
+ COMPANY_SIZE_1_200 = 1,
414
+
415
+ /**
416
+ * @generated from enum value: COMPANY_SIZE_200_500 = 2;
417
+ */
418
+ COMPANY_SIZE_200_500 = 2,
419
+
420
+ /**
421
+ * @generated from enum value: COMPANY_SIZE_500_1000 = 3;
422
+ */
423
+ COMPANY_SIZE_500_1000 = 3,
424
+
425
+ /**
426
+ * @generated from enum value: COMPANY_SIZE_1000_5000 = 4;
427
+ */
428
+ COMPANY_SIZE_1000_5000 = 4,
429
+
430
+ /**
431
+ * @generated from enum value: COMPANY_SIZE_5000_PLUS = 5;
432
+ */
433
+ COMPANY_SIZE_5000_PLUS = 5,
434
+ }
435
+
436
+ /**
437
+ * Describes the enum pidgr.v1.CompanySize.
438
+ */
439
+ export const CompanySizeSchema: GenEnum<CompanySize> = /*@__PURE__*/
440
+ enumDesc(file_pidgr_v1_organization, 1);
441
+
442
+ /**
443
+ * Manages organizations (tenants) in the Pidgr platform.
444
+ * Most RPCs operate within the caller's org (extracted from JWT).
445
+ * CreateOrganization supports API key auth or JWT auth (self-service onboarding).
446
+ *
447
+ * @generated from service pidgr.v1.OrganizationService
448
+ */
449
+ export const OrganizationService: GenService<{
450
+ /**
451
+ * Create a new organization with an initial admin user.
452
+ * Supports API key auth (service-to-service) and JWT auth (self-service onboarding).
453
+ *
454
+ * @generated from rpc pidgr.v1.OrganizationService.CreateOrganization
455
+ */
456
+ createOrganization: {
457
+ methodKind: "unary";
458
+ input: typeof CreateOrganizationRequestSchema;
459
+ output: typeof CreateOrganizationResponseSchema;
460
+ },
461
+ /**
462
+ * Retrieve the organization for the authenticated user.
463
+ * Authorization: Requires PERMISSION_ORG_READ.
464
+ *
465
+ * @generated from rpc pidgr.v1.OrganizationService.GetOrganization
466
+ */
467
+ getOrganization: {
468
+ methodKind: "unary";
469
+ input: typeof GetOrganizationRequestSchema;
470
+ output: typeof GetOrganizationResponseSchema;
471
+ },
472
+ /**
473
+ * Update organization settings (name, default workflow, industry, company size).
474
+ * Authorization: Requires PERMISSION_ORG_WRITE.
475
+ *
476
+ * @generated from rpc pidgr.v1.OrganizationService.UpdateOrganization
477
+ */
478
+ updateOrganization: {
479
+ methodKind: "unary";
480
+ input: typeof UpdateOrganizationRequestSchema;
481
+ output: typeof UpdateOrganizationResponseSchema;
482
+ },
483
+ /**
484
+ * Replace all SSO attribute mappings for the organization.
485
+ * Authorization: Requires PERMISSION_ORG_WRITE.
486
+ *
487
+ * @generated from rpc pidgr.v1.OrganizationService.UpdateSsoAttributeMappings
488
+ */
489
+ updateSsoAttributeMappings: {
490
+ methodKind: "unary";
491
+ input: typeof UpdateSsoAttributeMappingsRequestSchema;
492
+ output: typeof UpdateSsoAttributeMappingsResponseSchema;
493
+ },
494
+ }> = /*@__PURE__*/
495
+ serviceDesc(file_pidgr_v1_organization, 0);
496
+
@@ -0,0 +1,137 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
+ // @generated from file pidgr/v1/render.proto (package pidgr.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 type { Message as Message$1 } from "./common_pb";
8
+ import { file_pidgr_v1_common } from "./common_pb";
9
+ import type { Message } from "@bufbuild/protobuf";
10
+
11
+ /**
12
+ * Describes the file pidgr/v1/render.proto.
13
+ */
14
+ export const file_pidgr_v1_render: GenFile = /*@__PURE__*/
15
+ fileDesc("ChVwaWRnci92MS9yZW5kZXIucHJvdG8SCHBpZGdyLnYxIpUBChFVc2VyUmVuZGVyQ29udGV4dBIPCgd1c2VyX2lkGAEgASgJEj0KCXZhcmlhYmxlcxgCIAMoCzIqLnBpZGdyLnYxLlVzZXJSZW5kZXJDb250ZXh0LlZhcmlhYmxlc0VudHJ5GjAKDlZhcmlhYmxlc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiZgoSUmVuZGVyQmF0Y2hSZXF1ZXN0EhMKC3RlbXBsYXRlX2lkGAEgASgJEg8KB3ZlcnNpb24YAiABKAUSKgoFdXNlcnMYAyADKAsyGy5waWRnci52MS5Vc2VyUmVuZGVyQ29udGV4dCJZChNSZW5kZXJCYXRjaFJlc3BvbnNlEg8KB3VzZXJfaWQYASABKAkSIgoHbWVzc2FnZRgCIAEoCzIRLnBpZGdyLnYxLk1lc3NhZ2USDQoFZXJyb3IYAyABKAkyXQoNUmVuZGVyU2VydmljZRJMCgtSZW5kZXJCYXRjaBIcLnBpZGdyLnYxLlJlbmRlckJhdGNoUmVxdWVzdBodLnBpZGdyLnYxLlJlbmRlckJhdGNoUmVzcG9uc2UwAUI2WjRnaXRodWIuY29tL3BpZGdyL3BpZGdyLXByb3RvL2dlbi9nby9waWRnci92MTtwaWRncnYxYgZwcm90bzM", [file_pidgr_v1_common]);
16
+
17
+ /**
18
+ * Per-user rendering context containing variable substitutions.
19
+ *
20
+ * @generated from message pidgr.v1.UserRenderContext
21
+ */
22
+ export type UserRenderContext = Message<"pidgr.v1.UserRenderContext"> & {
23
+ /**
24
+ * ID of the user being rendered for.
25
+ *
26
+ * @generated from field: string user_id = 1;
27
+ */
28
+ userId: string;
29
+
30
+ /**
31
+ * Variable name-value pairs to substitute into the template.
32
+ * Constraints: Max 100 entries. Key max length 100 characters, value max length 10000 characters.
33
+ *
34
+ * @generated from field: map<string, string> variables = 2;
35
+ */
36
+ variables: { [key: string]: string };
37
+ };
38
+
39
+ /**
40
+ * Describes the message pidgr.v1.UserRenderContext.
41
+ * Use `create(UserRenderContextSchema)` to create a new message.
42
+ */
43
+ export const UserRenderContextSchema: GenMessage<UserRenderContext> = /*@__PURE__*/
44
+ messageDesc(file_pidgr_v1_render, 0);
45
+
46
+ /**
47
+ * Request to render a template for a batch of users.
48
+ *
49
+ * @generated from message pidgr.v1.RenderBatchRequest
50
+ */
51
+ export type RenderBatchRequest = Message<"pidgr.v1.RenderBatchRequest"> & {
52
+ /**
53
+ * ID of the template to render.
54
+ *
55
+ * @generated from field: string template_id = 1;
56
+ */
57
+ templateId: string;
58
+
59
+ /**
60
+ * Version of the template to render.
61
+ *
62
+ * @generated from field: int32 version = 2;
63
+ */
64
+ version: number;
65
+
66
+ /**
67
+ * Per-user rendering contexts with variable substitutions.
68
+ * Constraints: Max 10000 users per batch.
69
+ *
70
+ * @generated from field: repeated pidgr.v1.UserRenderContext users = 3;
71
+ */
72
+ users: UserRenderContext[];
73
+ };
74
+
75
+ /**
76
+ * Describes the message pidgr.v1.RenderBatchRequest.
77
+ * Use `create(RenderBatchRequestSchema)` to create a new message.
78
+ */
79
+ export const RenderBatchRequestSchema: GenMessage<RenderBatchRequest> = /*@__PURE__*/
80
+ messageDesc(file_pidgr_v1_render, 1);
81
+
82
+ /**
83
+ * Streamed response for each user's rendered message.
84
+ * One response is emitted per user in the batch.
85
+ *
86
+ * @generated from message pidgr.v1.RenderBatchResponse
87
+ */
88
+ export type RenderBatchResponse = Message<"pidgr.v1.RenderBatchResponse"> & {
89
+ /**
90
+ * ID of the user this result is for.
91
+ *
92
+ * @generated from field: string user_id = 1;
93
+ */
94
+ userId: string;
95
+
96
+ /**
97
+ * The rendered message (set on success).
98
+ *
99
+ * @generated from field: pidgr.v1.Message message = 2;
100
+ */
101
+ message?: Message$1;
102
+
103
+ /**
104
+ * Error message if rendering failed for this user (empty on success).
105
+ *
106
+ * @generated from field: string error = 3;
107
+ */
108
+ error: string;
109
+ };
110
+
111
+ /**
112
+ * Describes the message pidgr.v1.RenderBatchResponse.
113
+ * Use `create(RenderBatchResponseSchema)` to create a new message.
114
+ */
115
+ export const RenderBatchResponseSchema: GenMessage<RenderBatchResponse> = /*@__PURE__*/
116
+ messageDesc(file_pidgr_v1_render, 2);
117
+
118
+ /**
119
+ * Internal service for batch template rendering.
120
+ *
121
+ * @generated from service pidgr.v1.RenderService
122
+ */
123
+ export const RenderService: GenService<{
124
+ /**
125
+ * Render a template for multiple users, streaming results as each completes.
126
+ * Authorization: Internal server-to-server only. Not exposed to external clients.
127
+ *
128
+ * @generated from rpc pidgr.v1.RenderService.RenderBatch
129
+ */
130
+ renderBatch: {
131
+ methodKind: "server_streaming";
132
+ input: typeof RenderBatchRequestSchema;
133
+ output: typeof RenderBatchResponseSchema;
134
+ },
135
+ }> = /*@__PURE__*/
136
+ serviceDesc(file_pidgr_v1_render, 0);
137
+