@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.
- package/package.json +21 -0
- package/pidgr/v1/access_code_pb.ts +247 -0
- package/pidgr/v1/action_pb.ts +94 -0
- package/pidgr/v1/api_key_pb.ts +264 -0
- package/pidgr/v1/campaign_pb.ts +761 -0
- package/pidgr/v1/common_pb.ts +904 -0
- package/pidgr/v1/device_pb.ts +374 -0
- package/pidgr/v1/group_pb.ts +672 -0
- package/pidgr/v1/heatmap_pb.ts +579 -0
- package/pidgr/v1/inbox_pb.ts +254 -0
- package/pidgr/v1/member_pb.ts +495 -0
- package/pidgr/v1/organization_pb.ts +496 -0
- package/pidgr/v1/render_pb.ts +137 -0
- package/pidgr/v1/replay_pb.ts +229 -0
- package/pidgr/v1/role_pb.ts +254 -0
- package/pidgr/v1/sso_pb.ts +409 -0
- package/pidgr/v1/team_pb.ts +590 -0
- package/pidgr/v1/template_pb.ts +517 -0
- package/pidgr/v1/user_pb.ts +290 -0
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file pidgr/v1/template.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 { Pagination, PaginationMeta } from "./common_pb";
|
|
10
|
+
import { file_pidgr_v1_common } from "./common_pb";
|
|
11
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Describes the file pidgr/v1/template.pro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YXRlVGVtcGxhdGVSZXNwb25zZRJTCg5VcGRhdGVUZW1wbGF0ZRIfLnBpZGdyLnYxLlVwZGF0ZVRlbXBsYXRlUmVxdWVzdBogLnBpZGdyLnYxLlVwZGF0ZVRlbXBsYXRlUmVzcG9uc2USSgoLR2V0VGVtcGxhdGUSHC5waWRnci52MS5HZXRUZW1wbGF0ZVJlcXVlc3QaHS5waWRnci52MS5HZXRUZW1wbGF0ZVJlc3BvbnNlElAKDUxpc3RUZW1wbGF0ZXMSHi5waWRnci52MS5MaXN0VGVtcGxhdGVzUmVxdWVzdBofLnBpZGdyLnYxLkxpc3RUZW1wbGF0ZXNSZXNwb25zZUI2WjRnaXRodWIuY29tL3BpZGdyL3BpZGdyLXByb3RvL2dlbi9nby9waWRnci92MTtwaWRncnYxYgZwcm90bzM", [file_google_protobuf_timestamp, file_pidgr_v1_common]);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* A variable placeholder within a template that gets substituted during rendering.
|
|
21
|
+
*
|
|
22
|
+
* @generated from message pidgr.v1.TemplateVariable
|
|
23
|
+
*/
|
|
24
|
+
export type TemplateVariable = Message<"pidgr.v1.TemplateVariable"> & {
|
|
25
|
+
/**
|
|
26
|
+
* Variable name used in the template body (e.g. "employee_name").
|
|
27
|
+
* Constraints: Max length 100 characters.
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: string name = 1;
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Human-readable description of what this variable represents.
|
|
35
|
+
* Constraints: Max length 500 characters.
|
|
36
|
+
*
|
|
37
|
+
* @generated from field: string description = 2;
|
|
38
|
+
*/
|
|
39
|
+
description: string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Whether this variable must be provided during rendering.
|
|
43
|
+
*
|
|
44
|
+
* @generated from field: bool required = 3;
|
|
45
|
+
*/
|
|
46
|
+
required: boolean;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Where this variable's value comes from (profile attribute or campaign config).
|
|
50
|
+
*
|
|
51
|
+
* @generated from field: pidgr.v1.TemplateVariableSource source = 4;
|
|
52
|
+
*/
|
|
53
|
+
source: TemplateVariableSource;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Fallback value used when the source does not provide a value.
|
|
57
|
+
* Constraints: Max length 1000 characters.
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: string default_value = 5;
|
|
60
|
+
*/
|
|
61
|
+
defaultValue: string;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Describes the message pidgr.v1.TemplateVariable.
|
|
66
|
+
* Use `create(TemplateVariableSchema)` to create a new message.
|
|
67
|
+
*/
|
|
68
|
+
export const TemplateVariableSchema: GenMessage<TemplateVariable> = /*@__PURE__*/
|
|
69
|
+
messageDesc(file_pidgr_v1_template, 0);
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* A versioned message template with variable placeholders.
|
|
73
|
+
* Templates are append-only — updates create new versions.
|
|
74
|
+
*
|
|
75
|
+
* @generated from message pidgr.v1.Template
|
|
76
|
+
*/
|
|
77
|
+
export type Template = Message<"pidgr.v1.Template"> & {
|
|
78
|
+
/**
|
|
79
|
+
* Unique identifier for the template.
|
|
80
|
+
*
|
|
81
|
+
* @generated from field: string id = 1;
|
|
82
|
+
*/
|
|
83
|
+
id: string;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Human-readable template name (admin-facing label).
|
|
87
|
+
* Constraints: Max length 200 characters.
|
|
88
|
+
*
|
|
89
|
+
* @generated from field: string name = 2;
|
|
90
|
+
*/
|
|
91
|
+
name: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Template body with {{variable}} placeholders for substitution.
|
|
95
|
+
* Constraints: Max length 50000 characters.
|
|
96
|
+
*
|
|
97
|
+
* @generated from field: string body = 3;
|
|
98
|
+
*/
|
|
99
|
+
body: string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Variables that can be substituted into the template body.
|
|
103
|
+
*
|
|
104
|
+
* @generated from field: repeated pidgr.v1.TemplateVariable variables = 4;
|
|
105
|
+
*/
|
|
106
|
+
variables: TemplateVariable[];
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Version number (auto-incremented on each update).
|
|
110
|
+
*
|
|
111
|
+
* @generated from field: int32 version = 5;
|
|
112
|
+
*/
|
|
113
|
+
version: number;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Timestamp when this version was created.
|
|
117
|
+
*
|
|
118
|
+
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
|
119
|
+
*/
|
|
120
|
+
createdAt?: Timestamp;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Timestamp of the most recent update (same as created_at for the latest version).
|
|
124
|
+
*
|
|
125
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 7;
|
|
126
|
+
*/
|
|
127
|
+
updatedAt?: Timestamp;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* User-facing title shown as the message subject to recipients.
|
|
131
|
+
* Serves as the default title; campaigns can override it.
|
|
132
|
+
* Constraints: Max length 200 characters.
|
|
133
|
+
*
|
|
134
|
+
* @generated from field: string title = 8;
|
|
135
|
+
*/
|
|
136
|
+
title: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Content format of this template (markdown, rich, HTML).
|
|
140
|
+
* UNSPECIFIED is treated as MARKDOWN for backward compatibility.
|
|
141
|
+
*
|
|
142
|
+
* @generated from field: pidgr.v1.TemplateType type = 9;
|
|
143
|
+
*/
|
|
144
|
+
type: TemplateType;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Describes the message pidgr.v1.Template.
|
|
149
|
+
* Use `create(TemplateSchema)` to create a new message.
|
|
150
|
+
*/
|
|
151
|
+
export const TemplateSchema: GenMessage<Template> = /*@__PURE__*/
|
|
152
|
+
messageDesc(file_pidgr_v1_template, 1);
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Request to create a new template.
|
|
156
|
+
*
|
|
157
|
+
* @generated from message pidgr.v1.CreateTemplateRequest
|
|
158
|
+
*/
|
|
159
|
+
export type CreateTemplateRequest = Message<"pidgr.v1.CreateTemplateRequest"> & {
|
|
160
|
+
/**
|
|
161
|
+
* Human-readable template name (admin-facing label).
|
|
162
|
+
* Constraints: Max length 200 characters.
|
|
163
|
+
*
|
|
164
|
+
* @generated from field: string name = 1;
|
|
165
|
+
*/
|
|
166
|
+
name: string;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Template body with {{variable}} placeholders.
|
|
170
|
+
* Constraints: Max length 50000 characters.
|
|
171
|
+
*
|
|
172
|
+
* @generated from field: string body = 2;
|
|
173
|
+
*/
|
|
174
|
+
body: string;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Variables available for substitution in the body.
|
|
178
|
+
*
|
|
179
|
+
* @generated from field: repeated pidgr.v1.TemplateVariable variables = 3;
|
|
180
|
+
*/
|
|
181
|
+
variables: TemplateVariable[];
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* User-facing title shown as the message subject to recipients.
|
|
185
|
+
* Constraints: Max length 200 characters.
|
|
186
|
+
*
|
|
187
|
+
* @generated from field: string title = 4;
|
|
188
|
+
*/
|
|
189
|
+
title: string;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Content format of the template. Defaults to MARKDOWN if unspecified.
|
|
193
|
+
*
|
|
194
|
+
* @generated from field: pidgr.v1.TemplateType type = 5;
|
|
195
|
+
*/
|
|
196
|
+
type: TemplateType;
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Describes the message pidgr.v1.CreateTemplateRequest.
|
|
201
|
+
* Use `create(CreateTemplateRequestSchema)` to create a new message.
|
|
202
|
+
*/
|
|
203
|
+
export const CreateTemplateRequestSchema: GenMessage<CreateTemplateRequest> = /*@__PURE__*/
|
|
204
|
+
messageDesc(file_pidgr_v1_template, 2);
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Response after creating a template.
|
|
208
|
+
*
|
|
209
|
+
* @generated from message pidgr.v1.CreateTemplateResponse
|
|
210
|
+
*/
|
|
211
|
+
export type CreateTemplateResponse = Message<"pidgr.v1.CreateTemplateResponse"> & {
|
|
212
|
+
/**
|
|
213
|
+
* The newly created template (version 1).
|
|
214
|
+
*
|
|
215
|
+
* @generated from field: pidgr.v1.Template template = 1;
|
|
216
|
+
*/
|
|
217
|
+
template?: Template;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Describes the message pidgr.v1.CreateTemplateResponse.
|
|
222
|
+
* Use `create(CreateTemplateResponseSchema)` to create a new message.
|
|
223
|
+
*/
|
|
224
|
+
export const CreateTemplateResponseSchema: GenMessage<CreateTemplateResponse> = /*@__PURE__*/
|
|
225
|
+
messageDesc(file_pidgr_v1_template, 3);
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Request to update a template, creating a new version.
|
|
229
|
+
*
|
|
230
|
+
* @generated from message pidgr.v1.UpdateTemplateRequest
|
|
231
|
+
*/
|
|
232
|
+
export type UpdateTemplateRequest = Message<"pidgr.v1.UpdateTemplateRequest"> & {
|
|
233
|
+
/**
|
|
234
|
+
* ID of the template to update.
|
|
235
|
+
*
|
|
236
|
+
* @generated from field: string template_id = 1;
|
|
237
|
+
*/
|
|
238
|
+
templateId: string;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* New template body with {{variable}} placeholders.
|
|
242
|
+
* Constraints: Max length 50000 characters.
|
|
243
|
+
*
|
|
244
|
+
* @generated from field: string body = 2;
|
|
245
|
+
*/
|
|
246
|
+
body: string;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Updated variables for substitution.
|
|
250
|
+
*
|
|
251
|
+
* @generated from field: repeated pidgr.v1.TemplateVariable variables = 3;
|
|
252
|
+
*/
|
|
253
|
+
variables: TemplateVariable[];
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Describes the message pidgr.v1.UpdateTemplateRequest.
|
|
258
|
+
* Use `create(UpdateTemplateRequestSchema)` to create a new message.
|
|
259
|
+
*/
|
|
260
|
+
export const UpdateTemplateRequestSchema: GenMessage<UpdateTemplateRequest> = /*@__PURE__*/
|
|
261
|
+
messageDesc(file_pidgr_v1_template, 4);
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Response after updating a template.
|
|
265
|
+
*
|
|
266
|
+
* @generated from message pidgr.v1.UpdateTemplateResponse
|
|
267
|
+
*/
|
|
268
|
+
export type UpdateTemplateResponse = Message<"pidgr.v1.UpdateTemplateResponse"> & {
|
|
269
|
+
/**
|
|
270
|
+
* The updated template with incremented version number.
|
|
271
|
+
*
|
|
272
|
+
* @generated from field: pidgr.v1.Template template = 1;
|
|
273
|
+
*/
|
|
274
|
+
template?: Template;
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Describes the message pidgr.v1.UpdateTemplateResponse.
|
|
279
|
+
* Use `create(UpdateTemplateResponseSchema)` to create a new message.
|
|
280
|
+
*/
|
|
281
|
+
export const UpdateTemplateResponseSchema: GenMessage<UpdateTemplateResponse> = /*@__PURE__*/
|
|
282
|
+
messageDesc(file_pidgr_v1_template, 5);
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Request to retrieve a specific template version.
|
|
286
|
+
*
|
|
287
|
+
* @generated from message pidgr.v1.GetTemplateRequest
|
|
288
|
+
*/
|
|
289
|
+
export type GetTemplateRequest = Message<"pidgr.v1.GetTemplateRequest"> & {
|
|
290
|
+
/**
|
|
291
|
+
* ID of the template to retrieve.
|
|
292
|
+
*
|
|
293
|
+
* @generated from field: string template_id = 1;
|
|
294
|
+
*/
|
|
295
|
+
templateId: string;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Version to retrieve. 0 returns the latest version.
|
|
299
|
+
*
|
|
300
|
+
* @generated from field: int32 version = 2;
|
|
301
|
+
*/
|
|
302
|
+
version: number;
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Describes the message pidgr.v1.GetTemplateRequest.
|
|
307
|
+
* Use `create(GetTemplateRequestSchema)` to create a new message.
|
|
308
|
+
*/
|
|
309
|
+
export const GetTemplateRequestSchema: GenMessage<GetTemplateRequest> = /*@__PURE__*/
|
|
310
|
+
messageDesc(file_pidgr_v1_template, 6);
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Response containing the requested template.
|
|
314
|
+
*
|
|
315
|
+
* @generated from message pidgr.v1.GetTemplateResponse
|
|
316
|
+
*/
|
|
317
|
+
export type GetTemplateResponse = Message<"pidgr.v1.GetTemplateResponse"> & {
|
|
318
|
+
/**
|
|
319
|
+
* The requested template.
|
|
320
|
+
*
|
|
321
|
+
* @generated from field: pidgr.v1.Template template = 1;
|
|
322
|
+
*/
|
|
323
|
+
template?: Template;
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Describes the message pidgr.v1.GetTemplateResponse.
|
|
328
|
+
* Use `create(GetTemplateResponseSchema)` to create a new message.
|
|
329
|
+
*/
|
|
330
|
+
export const GetTemplateResponseSchema: GenMessage<GetTemplateResponse> = /*@__PURE__*/
|
|
331
|
+
messageDesc(file_pidgr_v1_template, 7);
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Request to list templates with pagination.
|
|
335
|
+
*
|
|
336
|
+
* @generated from message pidgr.v1.ListTemplatesRequest
|
|
337
|
+
*/
|
|
338
|
+
export type ListTemplatesRequest = Message<"pidgr.v1.ListTemplatesRequest"> & {
|
|
339
|
+
/**
|
|
340
|
+
* Pagination parameters.
|
|
341
|
+
*
|
|
342
|
+
* @generated from field: pidgr.v1.Pagination pagination = 1;
|
|
343
|
+
*/
|
|
344
|
+
pagination?: Pagination;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Filter by template type. UNSPECIFIED returns all templates.
|
|
348
|
+
*
|
|
349
|
+
* @generated from field: pidgr.v1.TemplateType type = 2;
|
|
350
|
+
*/
|
|
351
|
+
type: TemplateType;
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Describes the message pidgr.v1.ListTemplatesRequest.
|
|
356
|
+
* Use `create(ListTemplatesRequestSchema)` to create a new message.
|
|
357
|
+
*/
|
|
358
|
+
export const ListTemplatesRequestSchema: GenMessage<ListTemplatesRequest> = /*@__PURE__*/
|
|
359
|
+
messageDesc(file_pidgr_v1_template, 8);
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Response containing a page of templates.
|
|
363
|
+
*
|
|
364
|
+
* @generated from message pidgr.v1.ListTemplatesResponse
|
|
365
|
+
*/
|
|
366
|
+
export type ListTemplatesResponse = Message<"pidgr.v1.ListTemplatesResponse"> & {
|
|
367
|
+
/**
|
|
368
|
+
* List of templates in this page (latest version of each).
|
|
369
|
+
*
|
|
370
|
+
* @generated from field: repeated pidgr.v1.Template templates = 1;
|
|
371
|
+
*/
|
|
372
|
+
templates: Template[];
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Pagination metadata for fetching subsequent pages.
|
|
376
|
+
*
|
|
377
|
+
* @generated from field: pidgr.v1.PaginationMeta pagination_meta = 2;
|
|
378
|
+
*/
|
|
379
|
+
paginationMeta?: PaginationMeta;
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Describes the message pidgr.v1.ListTemplatesResponse.
|
|
384
|
+
* Use `create(ListTemplatesResponseSchema)` to create a new message.
|
|
385
|
+
*/
|
|
386
|
+
export const ListTemplatesResponseSchema: GenMessage<ListTemplatesResponse> = /*@__PURE__*/
|
|
387
|
+
messageDesc(file_pidgr_v1_template, 9);
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Content format of a template, determining which editor and renderer to use.
|
|
391
|
+
*
|
|
392
|
+
* @generated from enum pidgr.v1.TemplateType
|
|
393
|
+
*/
|
|
394
|
+
export enum TemplateType {
|
|
395
|
+
/**
|
|
396
|
+
* Default value; treated as MARKDOWN for backward compatibility.
|
|
397
|
+
*
|
|
398
|
+
* @generated from enum value: TEMPLATE_TYPE_UNSPECIFIED = 0;
|
|
399
|
+
*/
|
|
400
|
+
UNSPECIFIED = 0,
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Markdown with {{variable}} placeholders.
|
|
404
|
+
*
|
|
405
|
+
* @generated from enum value: TEMPLATE_TYPE_MARKDOWN = 1;
|
|
406
|
+
*/
|
|
407
|
+
MARKDOWN = 1,
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Rich text format (reserved for future use).
|
|
411
|
+
*
|
|
412
|
+
* @generated from enum value: TEMPLATE_TYPE_RICH = 2;
|
|
413
|
+
*/
|
|
414
|
+
RICH = 2,
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Raw HTML format (reserved for future use).
|
|
418
|
+
*
|
|
419
|
+
* @generated from enum value: TEMPLATE_TYPE_HTML = 3;
|
|
420
|
+
*/
|
|
421
|
+
HTML = 3,
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Describes the enum pidgr.v1.TemplateType.
|
|
426
|
+
*/
|
|
427
|
+
export const TemplateTypeSchema: GenEnum<TemplateType> = /*@__PURE__*/
|
|
428
|
+
enumDesc(file_pidgr_v1_template, 0);
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Source from which a template variable's value is resolved at render time.
|
|
432
|
+
*
|
|
433
|
+
* @generated from enum pidgr.v1.TemplateVariableSource
|
|
434
|
+
*/
|
|
435
|
+
export enum TemplateVariableSource {
|
|
436
|
+
/**
|
|
437
|
+
* Default value; treated as CUSTOM for backward compatibility.
|
|
438
|
+
*
|
|
439
|
+
* @generated from enum value: TEMPLATE_VARIABLE_SOURCE_UNSPECIFIED = 0;
|
|
440
|
+
*/
|
|
441
|
+
UNSPECIFIED = 0,
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Auto-resolved from the target user's profile attributes.
|
|
445
|
+
*
|
|
446
|
+
* @generated from enum value: TEMPLATE_VARIABLE_SOURCE_PROFILE = 1;
|
|
447
|
+
*/
|
|
448
|
+
PROFILE = 1,
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Provided manually in the campaign or workflow step configuration.
|
|
452
|
+
*
|
|
453
|
+
* @generated from enum value: TEMPLATE_VARIABLE_SOURCE_CUSTOM = 2;
|
|
454
|
+
*/
|
|
455
|
+
CUSTOM = 2,
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Describes the enum pidgr.v1.TemplateVariableSource.
|
|
460
|
+
*/
|
|
461
|
+
export const TemplateVariableSourceSchema: GenEnum<TemplateVariableSource> = /*@__PURE__*/
|
|
462
|
+
enumDesc(file_pidgr_v1_template, 1);
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Manages versioned message templates used by campaigns.
|
|
466
|
+
* Templates are append-only — updates create new versions while preserving history.
|
|
467
|
+
*
|
|
468
|
+
* @generated from service pidgr.v1.TemplateService
|
|
469
|
+
*/
|
|
470
|
+
export const TemplateService: GenService<{
|
|
471
|
+
/**
|
|
472
|
+
* Create a new template with a body and variable definitions.
|
|
473
|
+
* Authorization: Requires MANAGER+ role.
|
|
474
|
+
*
|
|
475
|
+
* @generated from rpc pidgr.v1.TemplateService.CreateTemplate
|
|
476
|
+
*/
|
|
477
|
+
createTemplate: {
|
|
478
|
+
methodKind: "unary";
|
|
479
|
+
input: typeof CreateTemplateRequestSchema;
|
|
480
|
+
output: typeof CreateTemplateResponseSchema;
|
|
481
|
+
},
|
|
482
|
+
/**
|
|
483
|
+
* Update an existing template, creating a new version.
|
|
484
|
+
* Authorization: Requires MANAGER+ role.
|
|
485
|
+
*
|
|
486
|
+
* @generated from rpc pidgr.v1.TemplateService.UpdateTemplate
|
|
487
|
+
*/
|
|
488
|
+
updateTemplate: {
|
|
489
|
+
methodKind: "unary";
|
|
490
|
+
input: typeof UpdateTemplateRequestSchema;
|
|
491
|
+
output: typeof UpdateTemplateResponseSchema;
|
|
492
|
+
},
|
|
493
|
+
/**
|
|
494
|
+
* Retrieve a specific template by ID and optional version.
|
|
495
|
+
* Authorization: Authenticated user within the organization.
|
|
496
|
+
*
|
|
497
|
+
* @generated from rpc pidgr.v1.TemplateService.GetTemplate
|
|
498
|
+
*/
|
|
499
|
+
getTemplate: {
|
|
500
|
+
methodKind: "unary";
|
|
501
|
+
input: typeof GetTemplateRequestSchema;
|
|
502
|
+
output: typeof GetTemplateResponseSchema;
|
|
503
|
+
},
|
|
504
|
+
/**
|
|
505
|
+
* List all templates for the organization with pagination.
|
|
506
|
+
* Authorization: Authenticated user within the organization.
|
|
507
|
+
*
|
|
508
|
+
* @generated from rpc pidgr.v1.TemplateService.ListTemplates
|
|
509
|
+
*/
|
|
510
|
+
listTemplates: {
|
|
511
|
+
methodKind: "unary";
|
|
512
|
+
input: typeof ListTemplatesRequestSchema;
|
|
513
|
+
output: typeof ListTemplatesResponseSchema;
|
|
514
|
+
},
|
|
515
|
+
}> = /*@__PURE__*/
|
|
516
|
+
serviceDesc(file_pidgr_v1_template, 0);
|
|
517
|
+
|