@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,290 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
+ // @generated from file pidgr/v1/user.proto (package pidgr.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
+ import { enumDesc, fileDesc, messageDesc } 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 { Role } 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/user.proto.
15
+ */
16
+ export const file_pidgr_v1_user: GenFile = /*@__PURE__*/
17
+ fileDesc("ChNwaWRnci92MS91c2VyLnByb3RvEghwaWRnci52MSJDCgxVc2VyU2V0dGluZ3MSMwoQdGhlbWVfcHJlZmVyZW5jZRgBIAEoDjIZLnBpZGdyLnYxLlRoZW1lUHJlZmVyZW5jZSK4AgoLVXNlclByb2ZpbGUSEgoKZmlyc3RfbmFtZRgBIAEoCRIRCglsYXN0X25hbWUYAiABKAkSEgoKZGVwYXJ0bWVudBgDIAEoCRINCgV0aXRsZRgEIAEoCRINCgVwaG9uZRgFIAEoCRIQCghsb2NhdGlvbhgGIAEoCRITCgtlbXBsb3llZV9pZBgHIAEoCRIUCgxtYW5hZ2VyX25hbWUYCCABKAkSEgoKc3RhcnRfZGF0ZRgJIAEoCRJGChFjdXN0b21fYXR0cmlidXRlcxgKIAMoCzIrLnBpZGdyLnYxLlVzZXJQcm9maWxlLkN1c3RvbUF0dHJpYnV0ZXNFbnRyeRo3ChVDdXN0b21BdHRyaWJ1dGVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASLiAQoEVXNlchIKCgJpZBgBIAEoCRINCgVlbWFpbBgCIAEoCRIMCgRuYW1lGAMgASgJEiQKBnN0YXR1cxgFIAEoDjIULnBpZGdyLnYxLlVzZXJTdGF0dXMSLgoKY3JlYXRlZF9hdBgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASHAoEcm9sZRgHIAEoCzIOLnBpZGdyLnYxLlJvbGUSDwoHcm9sZV9pZBgIIAEoCRImCgdwcm9maWxlGAkgASgLMhUucGlkZ3IudjEuVXNlclByb2ZpbGVKBAgEEAUqdwoKVXNlclN0YXR1cxIbChdVU0VSX1NUQVRVU19VTlNQRUNJRklFRBAAEhcKE1VTRVJfU1RBVFVTX0lOVklURUQQARIWChJVU0VSX1NUQVRVU19BQ1RJVkUQAhIbChdVU0VSX1NUQVRVU19ERUFDVElWQVRFRBADKocBCg9UaGVtZVByZWZlcmVuY2USIAocVEhFTUVfUFJFRkVSRU5DRV9VTlNQRUNJRklFRBAAEhoKFlRIRU1FX1BSRUZFUkVOQ0VfTElHSFQQARIZChVUSEVNRV9QUkVGRVJFTkNFX0RBUksQAhIbChdUSEVNRV9QUkVGRVJFTkNFX1NZU1RFTRADQjZaNGdpdGh1Yi5jb20vcGlkZ3IvcGlkZ3ItcHJvdG8vZ2VuL2dvL3BpZGdyL3YxO3BpZGdydjFiBnByb3RvMw", [file_google_protobuf_timestamp, file_pidgr_v1_common]);
18
+
19
+ /**
20
+ * User-configurable platform settings that apply across all clients.
21
+ * All fields use their UNSPECIFIED/zero value to mean "no change" in updates.
22
+ *
23
+ * @generated from message pidgr.v1.UserSettings
24
+ */
25
+ export type UserSettings = Message<"pidgr.v1.UserSettings"> & {
26
+ /**
27
+ * Preferred color scheme for the UI.
28
+ *
29
+ * @generated from field: pidgr.v1.ThemePreference theme_preference = 1;
30
+ */
31
+ themePreference: ThemePreference;
32
+ };
33
+
34
+ /**
35
+ * Describes the message pidgr.v1.UserSettings.
36
+ * Use `create(UserSettingsSchema)` to create a new message.
37
+ */
38
+ export const UserSettingsSchema: GenMessage<UserSettings> = /*@__PURE__*/
39
+ messageDesc(file_pidgr_v1_user, 0);
40
+
41
+ /**
42
+ * Structured profile attributes for a user within an organization.
43
+ * Populated through admin invitation, mobile onboarding, or SSO attribute sync.
44
+ *
45
+ * @generated from message pidgr.v1.UserProfile
46
+ */
47
+ export type UserProfile = Message<"pidgr.v1.UserProfile"> & {
48
+ /**
49
+ * User's given name.
50
+ * Constraints: Max length 200 characters.
51
+ *
52
+ * @generated from field: string first_name = 1;
53
+ */
54
+ firstName: string;
55
+
56
+ /**
57
+ * User's family name.
58
+ * Constraints: Max length 200 characters.
59
+ *
60
+ * @generated from field: string last_name = 2;
61
+ */
62
+ lastName: string;
63
+
64
+ /**
65
+ * Department or team within the organization.
66
+ * Constraints: Max length 200 characters.
67
+ *
68
+ * @generated from field: string department = 3;
69
+ */
70
+ department: string;
71
+
72
+ /**
73
+ * Job title.
74
+ * Constraints: Max length 200 characters.
75
+ *
76
+ * @generated from field: string title = 4;
77
+ */
78
+ title: string;
79
+
80
+ /**
81
+ * Phone number.
82
+ * Constraints: Max length 200 characters.
83
+ *
84
+ * @generated from field: string phone = 5;
85
+ */
86
+ phone: string;
87
+
88
+ /**
89
+ * Office or geographic location.
90
+ * Constraints: Max length 200 characters.
91
+ *
92
+ * @generated from field: string location = 6;
93
+ */
94
+ location: string;
95
+
96
+ /**
97
+ * Organization-specific employee identifier.
98
+ * Constraints: Max length 200 characters.
99
+ *
100
+ * @generated from field: string employee_id = 7;
101
+ */
102
+ employeeId: string;
103
+
104
+ /**
105
+ * Display name of the user's direct manager.
106
+ * Constraints: Max length 200 characters.
107
+ *
108
+ * @generated from field: string manager_name = 8;
109
+ */
110
+ managerName: string;
111
+
112
+ /**
113
+ * Employment start date in ISO 8601 format (YYYY-MM-DD).
114
+ * Constraints: Max length 200 characters.
115
+ *
116
+ * @generated from field: string start_date = 9;
117
+ */
118
+ startDate: string;
119
+
120
+ /**
121
+ * Organization-defined custom attributes for fields not covered by the fixed schema.
122
+ * Constraints: Max 50 entries. Key max length 100 characters, value max length 1000 characters.
123
+ *
124
+ * @generated from field: map<string, string> custom_attributes = 10;
125
+ */
126
+ customAttributes: { [key: string]: string };
127
+ };
128
+
129
+ /**
130
+ * Describes the message pidgr.v1.UserProfile.
131
+ * Use `create(UserProfileSchema)` to create a new message.
132
+ */
133
+ export const UserProfileSchema: GenMessage<UserProfile> = /*@__PURE__*/
134
+ messageDesc(file_pidgr_v1_user, 1);
135
+
136
+ /**
137
+ * A user within an organization.
138
+ *
139
+ * @generated from message pidgr.v1.User
140
+ */
141
+ export type User = Message<"pidgr.v1.User"> & {
142
+ /**
143
+ * Unique identifier for the user (internal platform UUID, not identity provider subject ID).
144
+ *
145
+ * @generated from field: string id = 1;
146
+ */
147
+ id: string;
148
+
149
+ /**
150
+ * User's email address.
151
+ * Constraints: Max length 254 characters (RFC 5321).
152
+ *
153
+ * @generated from field: string email = 2;
154
+ */
155
+ email: string;
156
+
157
+ /**
158
+ * User's display name.
159
+ * Constraints: Max length 200 characters.
160
+ *
161
+ * @generated from field: string name = 3;
162
+ */
163
+ name: string;
164
+
165
+ /**
166
+ * Current account status.
167
+ *
168
+ * @generated from field: pidgr.v1.UserStatus status = 5;
169
+ */
170
+ status: UserStatus;
171
+
172
+ /**
173
+ * Timestamp when the user was created.
174
+ *
175
+ * @generated from field: google.protobuf.Timestamp created_at = 6;
176
+ */
177
+ createdAt?: Timestamp;
178
+
179
+ /**
180
+ * The user's role with its permission set.
181
+ *
182
+ * @generated from field: pidgr.v1.Role role = 7;
183
+ */
184
+ role?: Role;
185
+
186
+ /**
187
+ * ID of the user's role (for assignment operations).
188
+ *
189
+ * @generated from field: string role_id = 8;
190
+ */
191
+ roleId: string;
192
+
193
+ /**
194
+ * Structured profile attributes (department, title, etc.).
195
+ * May be empty if the user has not completed their profile.
196
+ *
197
+ * @generated from field: pidgr.v1.UserProfile profile = 9;
198
+ */
199
+ profile?: UserProfile;
200
+ };
201
+
202
+ /**
203
+ * Describes the message pidgr.v1.User.
204
+ * Use `create(UserSchema)` to create a new message.
205
+ */
206
+ export const UserSchema: GenMessage<User> = /*@__PURE__*/
207
+ messageDesc(file_pidgr_v1_user, 2);
208
+
209
+ /**
210
+ * Lifecycle status of a user account.
211
+ *
212
+ * @generated from enum pidgr.v1.UserStatus
213
+ */
214
+ export enum UserStatus {
215
+ /**
216
+ * Default value; not a valid status.
217
+ *
218
+ * @generated from enum value: USER_STATUS_UNSPECIFIED = 0;
219
+ */
220
+ UNSPECIFIED = 0,
221
+
222
+ /**
223
+ * User has been invited but has not completed onboarding.
224
+ *
225
+ * @generated from enum value: USER_STATUS_INVITED = 1;
226
+ */
227
+ INVITED = 1,
228
+
229
+ /**
230
+ * User is active and can receive messages.
231
+ *
232
+ * @generated from enum value: USER_STATUS_ACTIVE = 2;
233
+ */
234
+ ACTIVE = 2,
235
+
236
+ /**
237
+ * User has been deactivated and will not receive messages.
238
+ *
239
+ * @generated from enum value: USER_STATUS_DEACTIVATED = 3;
240
+ */
241
+ DEACTIVATED = 3,
242
+ }
243
+
244
+ /**
245
+ * Describes the enum pidgr.v1.UserStatus.
246
+ */
247
+ export const UserStatusSchema: GenEnum<UserStatus> = /*@__PURE__*/
248
+ enumDesc(file_pidgr_v1_user, 0);
249
+
250
+ /**
251
+ * User's preferred color scheme.
252
+ *
253
+ * @generated from enum pidgr.v1.ThemePreference
254
+ */
255
+ export enum ThemePreference {
256
+ /**
257
+ * Default value; treated as SYSTEM when reading, "no change" when updating.
258
+ *
259
+ * @generated from enum value: THEME_PREFERENCE_UNSPECIFIED = 0;
260
+ */
261
+ UNSPECIFIED = 0,
262
+
263
+ /**
264
+ * Always use light mode regardless of system setting.
265
+ *
266
+ * @generated from enum value: THEME_PREFERENCE_LIGHT = 1;
267
+ */
268
+ LIGHT = 1,
269
+
270
+ /**
271
+ * Always use dark mode regardless of system setting.
272
+ *
273
+ * @generated from enum value: THEME_PREFERENCE_DARK = 2;
274
+ */
275
+ DARK = 2,
276
+
277
+ /**
278
+ * Follow the operating system or browser preference.
279
+ *
280
+ * @generated from enum value: THEME_PREFERENCE_SYSTEM = 3;
281
+ */
282
+ SYSTEM = 3,
283
+ }
284
+
285
+ /**
286
+ * Describes the enum pidgr.v1.ThemePreference.
287
+ */
288
+ export const ThemePreferenceSchema: GenEnum<ThemePreference> = /*@__PURE__*/
289
+ enumDesc(file_pidgr_v1_user, 1);
290
+