@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,254 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file pidgr/v1/inbox.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 { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
9
|
+
import type { DeliveryStatus, Message as Message$1 } 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/inbox.proto.
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lc3NhZ2VSZXNwb25zZUI2WjRnaXRodWIuY29tL3BpZGdyL3BpZGdyLXByb3RvL2dlbi9nby9waWRnci92MTtwaWRncnYxYgZwcm90bzM", [file_google_protobuf_timestamp, file_pidgr_v1_common]);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* A single entry in a user's inbox, combining a message with its delivery state.
|
|
21
|
+
*
|
|
22
|
+
* @generated from message pidgr.v1.InboxEntry
|
|
23
|
+
*/
|
|
24
|
+
export type InboxEntry = Message<"pidgr.v1.InboxEntry"> & {
|
|
25
|
+
/**
|
|
26
|
+
* ID of the delivery record for this inbox entry.
|
|
27
|
+
* Constraints: UUID format (36 characters).
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: string delivery_id = 1;
|
|
30
|
+
*/
|
|
31
|
+
deliveryId: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The fully rendered message content.
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: pidgr.v1.Message message = 2;
|
|
37
|
+
*/
|
|
38
|
+
message?: Message$1;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Current delivery status (e.g. DELIVERED, ACKNOWLEDGED).
|
|
42
|
+
*
|
|
43
|
+
* @generated from field: pidgr.v1.DeliveryStatus status = 3;
|
|
44
|
+
*/
|
|
45
|
+
status: DeliveryStatus;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Whether the user has read this message.
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: bool read = 4;
|
|
51
|
+
*/
|
|
52
|
+
read: boolean;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Timestamp when the message was received in the inbox.
|
|
56
|
+
*
|
|
57
|
+
* @generated from field: google.protobuf.Timestamp received_at = 5;
|
|
58
|
+
*/
|
|
59
|
+
receivedAt?: Timestamp;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Describes the message pidgr.v1.InboxEntry.
|
|
64
|
+
* Use `create(InboxEntrySchema)` to create a new message.
|
|
65
|
+
*/
|
|
66
|
+
export const InboxEntrySchema: GenMessage<InboxEntry> = /*@__PURE__*/
|
|
67
|
+
messageDesc(file_pidgr_v1_inbox, 0);
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Request to sync inbox entries since a given timestamp.
|
|
71
|
+
*
|
|
72
|
+
* @generated from message pidgr.v1.SyncRequest
|
|
73
|
+
*/
|
|
74
|
+
export type SyncRequest = Message<"pidgr.v1.SyncRequest"> & {
|
|
75
|
+
/**
|
|
76
|
+
* Fetch entries newer than this timestamp. Omit for initial sync.
|
|
77
|
+
*
|
|
78
|
+
* @generated from field: google.protobuf.Timestamp since = 1;
|
|
79
|
+
*/
|
|
80
|
+
since?: Timestamp;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Maximum number of entries to return.
|
|
84
|
+
* Constraints: Valid range 1 to 200.
|
|
85
|
+
*
|
|
86
|
+
* @generated from field: int32 limit = 2;
|
|
87
|
+
*/
|
|
88
|
+
limit: number;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Describes the message pidgr.v1.SyncRequest.
|
|
93
|
+
* Use `create(SyncRequestSchema)` to create a new message.
|
|
94
|
+
*/
|
|
95
|
+
export const SyncRequestSchema: GenMessage<SyncRequest> = /*@__PURE__*/
|
|
96
|
+
messageDesc(file_pidgr_v1_inbox, 1);
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Response containing synced inbox entries.
|
|
100
|
+
*
|
|
101
|
+
* @generated from message pidgr.v1.SyncResponse
|
|
102
|
+
*/
|
|
103
|
+
export type SyncResponse = Message<"pidgr.v1.SyncResponse"> & {
|
|
104
|
+
/**
|
|
105
|
+
* Inbox entries newer than the requested timestamp.
|
|
106
|
+
*
|
|
107
|
+
* @generated from field: repeated pidgr.v1.InboxEntry entries = 1;
|
|
108
|
+
*/
|
|
109
|
+
entries: InboxEntry[];
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Cursor timestamp to use for the next sync call.
|
|
113
|
+
*
|
|
114
|
+
* @generated from field: google.protobuf.Timestamp next_since = 2;
|
|
115
|
+
*/
|
|
116
|
+
nextSince?: Timestamp;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Describes the message pidgr.v1.SyncResponse.
|
|
121
|
+
* Use `create(SyncResponseSchema)` to create a new message.
|
|
122
|
+
*/
|
|
123
|
+
export const SyncResponseSchema: GenMessage<SyncResponse> = /*@__PURE__*/
|
|
124
|
+
messageDesc(file_pidgr_v1_inbox, 2);
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Request to mark a message as read.
|
|
128
|
+
*
|
|
129
|
+
* @generated from message pidgr.v1.MarkReadRequest
|
|
130
|
+
*/
|
|
131
|
+
export type MarkReadRequest = Message<"pidgr.v1.MarkReadRequest"> & {
|
|
132
|
+
/**
|
|
133
|
+
* ID of the delivery to mark as read.
|
|
134
|
+
* Constraints: UUID format (36 characters).
|
|
135
|
+
*
|
|
136
|
+
* @generated from field: string delivery_id = 1;
|
|
137
|
+
*/
|
|
138
|
+
deliveryId: string;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Describes the message pidgr.v1.MarkReadRequest.
|
|
143
|
+
* Use `create(MarkReadRequestSchema)` to create a new message.
|
|
144
|
+
*/
|
|
145
|
+
export const MarkReadRequestSchema: GenMessage<MarkReadRequest> = /*@__PURE__*/
|
|
146
|
+
messageDesc(file_pidgr_v1_inbox, 3);
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Response after marking a message as read.
|
|
150
|
+
*
|
|
151
|
+
* @generated from message pidgr.v1.MarkReadResponse
|
|
152
|
+
*/
|
|
153
|
+
export type MarkReadResponse = Message<"pidgr.v1.MarkReadResponse"> & {
|
|
154
|
+
/**
|
|
155
|
+
* Whether the read status was successfully updated.
|
|
156
|
+
*
|
|
157
|
+
* @generated from field: bool success = 1;
|
|
158
|
+
*/
|
|
159
|
+
success: boolean;
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Describes the message pidgr.v1.MarkReadResponse.
|
|
164
|
+
* Use `create(MarkReadResponseSchema)` to create a new message.
|
|
165
|
+
*/
|
|
166
|
+
export const MarkReadResponseSchema: GenMessage<MarkReadResponse> = /*@__PURE__*/
|
|
167
|
+
messageDesc(file_pidgr_v1_inbox, 4);
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Request to retrieve a single message by delivery ID.
|
|
171
|
+
*
|
|
172
|
+
* @generated from message pidgr.v1.GetMessageRequest
|
|
173
|
+
*/
|
|
174
|
+
export type GetMessageRequest = Message<"pidgr.v1.GetMessageRequest"> & {
|
|
175
|
+
/**
|
|
176
|
+
* ID of the delivery to retrieve.
|
|
177
|
+
* Constraints: UUID format (36 characters).
|
|
178
|
+
*
|
|
179
|
+
* @generated from field: string delivery_id = 1;
|
|
180
|
+
*/
|
|
181
|
+
deliveryId: string;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Describes the message pidgr.v1.GetMessageRequest.
|
|
186
|
+
* Use `create(GetMessageRequestSchema)` to create a new message.
|
|
187
|
+
*/
|
|
188
|
+
export const GetMessageRequestSchema: GenMessage<GetMessageRequest> = /*@__PURE__*/
|
|
189
|
+
messageDesc(file_pidgr_v1_inbox, 5);
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Response containing the requested inbox entry.
|
|
193
|
+
*
|
|
194
|
+
* @generated from message pidgr.v1.GetMessageResponse
|
|
195
|
+
*/
|
|
196
|
+
export type GetMessageResponse = Message<"pidgr.v1.GetMessageResponse"> & {
|
|
197
|
+
/**
|
|
198
|
+
* The inbox entry for the requested delivery.
|
|
199
|
+
*
|
|
200
|
+
* @generated from field: pidgr.v1.InboxEntry entry = 1;
|
|
201
|
+
*/
|
|
202
|
+
entry?: InboxEntry;
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Describes the message pidgr.v1.GetMessageResponse.
|
|
207
|
+
* Use `create(GetMessageResponseSchema)` to create a new message.
|
|
208
|
+
*/
|
|
209
|
+
export const GetMessageResponseSchema: GenMessage<GetMessageResponse> = /*@__PURE__*/
|
|
210
|
+
messageDesc(file_pidgr_v1_inbox, 6);
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Provides the mobile app's inbox experience — syncing messages,
|
|
214
|
+
* tracking read status, and retrieving individual entries.
|
|
215
|
+
*
|
|
216
|
+
* @generated from service pidgr.v1.InboxService
|
|
217
|
+
*/
|
|
218
|
+
export const InboxService: GenService<{
|
|
219
|
+
/**
|
|
220
|
+
* Sync inbox entries since a given timestamp for incremental updates.
|
|
221
|
+
* Authorization: Authenticated user (own inbox only).
|
|
222
|
+
*
|
|
223
|
+
* @generated from rpc pidgr.v1.InboxService.Sync
|
|
224
|
+
*/
|
|
225
|
+
sync: {
|
|
226
|
+
methodKind: "unary";
|
|
227
|
+
input: typeof SyncRequestSchema;
|
|
228
|
+
output: typeof SyncResponseSchema;
|
|
229
|
+
},
|
|
230
|
+
/**
|
|
231
|
+
* Mark a delivered message as read (analytics-only, does not affect workflow).
|
|
232
|
+
* Authorization: Authenticated user (own inbox only).
|
|
233
|
+
*
|
|
234
|
+
* @generated from rpc pidgr.v1.InboxService.MarkRead
|
|
235
|
+
*/
|
|
236
|
+
markRead: {
|
|
237
|
+
methodKind: "unary";
|
|
238
|
+
input: typeof MarkReadRequestSchema;
|
|
239
|
+
output: typeof MarkReadResponseSchema;
|
|
240
|
+
},
|
|
241
|
+
/**
|
|
242
|
+
* Retrieve a single inbox entry by delivery ID.
|
|
243
|
+
* Authorization: Authenticated user (own inbox only).
|
|
244
|
+
*
|
|
245
|
+
* @generated from rpc pidgr.v1.InboxService.GetMessage
|
|
246
|
+
*/
|
|
247
|
+
getMessage: {
|
|
248
|
+
methodKind: "unary";
|
|
249
|
+
input: typeof GetMessageRequestSchema;
|
|
250
|
+
output: typeof GetMessageResponseSchema;
|
|
251
|
+
},
|
|
252
|
+
}> = /*@__PURE__*/
|
|
253
|
+
serviceDesc(file_pidgr_v1_inbox, 0);
|
|
254
|
+
|