@world-engines/protocol-ts 0.1.0-alpha.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 (74) hide show
  1. package/LICENSE +46 -0
  2. package/dist/entity-prop-envelope.d.ts +36 -0
  3. package/dist/entity-prop-envelope.js +50 -0
  4. package/dist/gen/v1/auth.d.ts +46 -0
  5. package/dist/gen/v1/auth.js +278 -0
  6. package/dist/gen/v1/billing.d.ts +71 -0
  7. package/dist/gen/v1/billing.js +521 -0
  8. package/dist/gen/v1/common.d.ts +65 -0
  9. package/dist/gen/v1/common.js +387 -0
  10. package/dist/gen/v1/llm.d.ts +317 -0
  11. package/dist/gen/v1/llm.js +3557 -0
  12. package/dist/gen/v1/mcp.d.ts +373 -0
  13. package/dist/gen/v1/mcp.js +3190 -0
  14. package/dist/gen/v1/moderation.d.ts +51 -0
  15. package/dist/gen/v1/moderation.js +368 -0
  16. package/dist/gen/v1/neutral_scenario_source.d.ts +80 -0
  17. package/dist/gen/v1/neutral_scenario_source.js +569 -0
  18. package/dist/gen/v1/relation_kind.d.ts +105 -0
  19. package/dist/gen/v1/relation_kind.js +562 -0
  20. package/dist/gen/v1/rest/admin.d.ts +432 -0
  21. package/dist/gen/v1/rest/admin.js +4957 -0
  22. package/dist/gen/v1/rest/asset.d.ts +205 -0
  23. package/dist/gen/v1/rest/asset.js +2200 -0
  24. package/dist/gen/v1/rest/auth.d.ts +275 -0
  25. package/dist/gen/v1/rest/auth.js +2896 -0
  26. package/dist/gen/v1/rest/billing.d.ts +101 -0
  27. package/dist/gen/v1/rest/billing.js +866 -0
  28. package/dist/gen/v1/rest/common.d.ts +179 -0
  29. package/dist/gen/v1/rest/common.js +1358 -0
  30. package/dist/gen/v1/rest/creator.d.ts +354 -0
  31. package/dist/gen/v1/rest/creator.js +4169 -0
  32. package/dist/gen/v1/rest/messaging.d.ts +190 -0
  33. package/dist/gen/v1/rest/messaging.js +2017 -0
  34. package/dist/gen/v1/rest/moderation.d.ts +61 -0
  35. package/dist/gen/v1/rest/moderation.js +569 -0
  36. package/dist/gen/v1/rest/pet.d.ts +98 -0
  37. package/dist/gen/v1/rest/pet.js +698 -0
  38. package/dist/gen/v1/rest/project_transfer.d.ts +470 -0
  39. package/dist/gen/v1/rest/project_transfer.js +5266 -0
  40. package/dist/gen/v1/rest/scenario.d.ts +756 -0
  41. package/dist/gen/v1/rest/scenario.js +8768 -0
  42. package/dist/gen/v1/rest/stock_bounty.d.ts +154 -0
  43. package/dist/gen/v1/rest/stock_bounty.js +1547 -0
  44. package/dist/gen/v1/rest/stocks.d.ts +465 -0
  45. package/dist/gen/v1/rest/stocks.js +5200 -0
  46. package/dist/gen/v1/rest/support_ticket.d.ts +61 -0
  47. package/dist/gen/v1/rest/support_ticket.js +511 -0
  48. package/dist/gen/v1/rest/users.d.ts +292 -0
  49. package/dist/gen/v1/rest/users.js +2879 -0
  50. package/dist/gen/v1/rest/violations.d.ts +52 -0
  51. package/dist/gen/v1/rest/violations.js +338 -0
  52. package/dist/gen/v1/sav.d.ts +987 -0
  53. package/dist/gen/v1/sav.js +12327 -0
  54. package/dist/gen/v1/save.d.ts +68 -0
  55. package/dist/gen/v1/save.js +595 -0
  56. package/dist/gen/v1/scenario_part_source.d.ts +94 -0
  57. package/dist/gen/v1/scenario_part_source.js +913 -0
  58. package/dist/gen/v1/session.d.ts +49 -0
  59. package/dist/gen/v1/session.js +311 -0
  60. package/dist/gen/v1/view_state.d.ts +267 -0
  61. package/dist/gen/v1/view_state.js +3239 -0
  62. package/dist/gen/v1/world.d.ts +82 -0
  63. package/dist/gen/v1/world.js +707 -0
  64. package/dist/gen/v1/world_memory.d.ts +545 -0
  65. package/dist/gen/v1/world_memory.js +5816 -0
  66. package/dist/gen/v1/world_memory_privacy.d.ts +96 -0
  67. package/dist/gen/v1/world_memory_privacy.js +994 -0
  68. package/dist/gen/v1/ws_frame.d.ts +1626 -0
  69. package/dist/gen/v1/ws_frame.js +18253 -0
  70. package/dist/index.d.ts +2 -0
  71. package/dist/index.js +5 -0
  72. package/dist/ladybug-extraction.d.ts +36 -0
  73. package/dist/ladybug-extraction.js +1 -0
  74. package/package.json +65 -0
@@ -0,0 +1,61 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export interface SupportTicketSubmitRequest {
3
+ kind: string;
4
+ subject: string;
5
+ content: string;
6
+ _unknownFields?: {
7
+ [key: number]: Uint8Array[];
8
+ } | undefined;
9
+ }
10
+ export interface SupportTicketSubmitResponse {
11
+ id: string;
12
+ status: string;
13
+ created_at: string;
14
+ _unknownFields?: {
15
+ [key: number]: Uint8Array[];
16
+ } | undefined;
17
+ }
18
+ export interface SupportTicketRecord {
19
+ id: string;
20
+ user_id: string;
21
+ kind: string;
22
+ subject: string;
23
+ content: string;
24
+ status: string;
25
+ created_at: string;
26
+ handled_at?: string | undefined;
27
+ handler_user_id?: string | undefined;
28
+ reply?: string | undefined;
29
+ _unknownFields?: {
30
+ [key: number]: Uint8Array[];
31
+ } | undefined;
32
+ }
33
+ export interface SupportTicketListResponse {
34
+ items: SupportTicketRecord[];
35
+ _unknownFields?: {
36
+ [key: number]: Uint8Array[];
37
+ } | undefined;
38
+ }
39
+ export declare const SupportTicketSubmitRequest: MessageFns<SupportTicketSubmitRequest>;
40
+ export declare const SupportTicketSubmitResponse: MessageFns<SupportTicketSubmitResponse>;
41
+ export declare const SupportTicketRecord: MessageFns<SupportTicketRecord>;
42
+ export declare const SupportTicketListResponse: MessageFns<SupportTicketListResponse>;
43
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
44
+ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
45
+ [K in keyof T]?: DeepPartial<T[K]>;
46
+ } : Partial<T>;
47
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
48
+ type Exact<P, I extends P> = P extends Builtin ? P : P & {
49
+ [K in keyof P]: Exact<P[K], I[K]>;
50
+ } & {
51
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
52
+ };
53
+ interface MessageFns<T> {
54
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
55
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
56
+ fromJSON(object: any): T;
57
+ toJSON(message: T): unknown;
58
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
59
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
60
+ }
61
+ export {};
@@ -0,0 +1,511 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.12.0
4
+ // protoc unknown
5
+ // source: v1/rest/support_ticket.proto
6
+ /* eslint-disable */
7
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
+ function createBaseSupportTicketSubmitRequest() {
9
+ return { kind: "", subject: "", content: "", _unknownFields: {} };
10
+ }
11
+ export const SupportTicketSubmitRequest = {
12
+ encode(message, writer = new BinaryWriter()) {
13
+ if (message.kind !== "") {
14
+ writer.uint32(10).string(message.kind);
15
+ }
16
+ if (message.subject !== "") {
17
+ writer.uint32(18).string(message.subject);
18
+ }
19
+ if (message.content !== "") {
20
+ writer.uint32(26).string(message.content);
21
+ }
22
+ if (message._unknownFields !== undefined) {
23
+ for (const [key, values] of globalThis.Object.entries(message._unknownFields)) {
24
+ const tag = parseInt(key, 10);
25
+ for (const value of values) {
26
+ writer.uint32(tag).raw(value);
27
+ }
28
+ }
29
+ }
30
+ return writer;
31
+ },
32
+ decode(input, length) {
33
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
34
+ const end = length === undefined ? reader.len : reader.pos + length;
35
+ const message = createBaseSupportTicketSubmitRequest();
36
+ while (reader.pos < end) {
37
+ const tag = reader.uint32();
38
+ switch (tag >>> 3) {
39
+ case 1: {
40
+ if (tag !== 10) {
41
+ break;
42
+ }
43
+ message.kind = reader.string();
44
+ continue;
45
+ }
46
+ case 2: {
47
+ if (tag !== 18) {
48
+ break;
49
+ }
50
+ message.subject = reader.string();
51
+ continue;
52
+ }
53
+ case 3: {
54
+ if (tag !== 26) {
55
+ break;
56
+ }
57
+ message.content = reader.string();
58
+ continue;
59
+ }
60
+ }
61
+ if ((tag & 7) === 4 || tag === 0) {
62
+ break;
63
+ }
64
+ const buf = reader.skip(tag & 7);
65
+ const list = message._unknownFields[tag];
66
+ if (list === undefined) {
67
+ message._unknownFields[tag] = [buf];
68
+ }
69
+ else {
70
+ list.push(buf);
71
+ }
72
+ }
73
+ return message;
74
+ },
75
+ fromJSON(object) {
76
+ return {
77
+ kind: isSet(object.kind) ? globalThis.String(object.kind) : "",
78
+ subject: isSet(object.subject) ? globalThis.String(object.subject) : "",
79
+ content: isSet(object.content) ? globalThis.String(object.content) : "",
80
+ };
81
+ },
82
+ toJSON(message) {
83
+ const obj = {};
84
+ if (message.kind !== "") {
85
+ obj.kind = message.kind;
86
+ }
87
+ if (message.subject !== "") {
88
+ obj.subject = message.subject;
89
+ }
90
+ if (message.content !== "") {
91
+ obj.content = message.content;
92
+ }
93
+ return obj;
94
+ },
95
+ create(base) {
96
+ return SupportTicketSubmitRequest.fromPartial(base ?? {});
97
+ },
98
+ fromPartial(object) {
99
+ const message = createBaseSupportTicketSubmitRequest();
100
+ message.kind = object.kind ?? "";
101
+ message.subject = object.subject ?? "";
102
+ message.content = object.content ?? "";
103
+ return message;
104
+ },
105
+ };
106
+ function createBaseSupportTicketSubmitResponse() {
107
+ return { id: "", status: "", created_at: "0", _unknownFields: {} };
108
+ }
109
+ export const SupportTicketSubmitResponse = {
110
+ encode(message, writer = new BinaryWriter()) {
111
+ if (message.id !== "") {
112
+ writer.uint32(10).string(message.id);
113
+ }
114
+ if (message.status !== "") {
115
+ writer.uint32(18).string(message.status);
116
+ }
117
+ if (message.created_at !== "0") {
118
+ writer.uint32(24).int64(message.created_at);
119
+ }
120
+ if (message._unknownFields !== undefined) {
121
+ for (const [key, values] of globalThis.Object.entries(message._unknownFields)) {
122
+ const tag = parseInt(key, 10);
123
+ for (const value of values) {
124
+ writer.uint32(tag).raw(value);
125
+ }
126
+ }
127
+ }
128
+ return writer;
129
+ },
130
+ decode(input, length) {
131
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
132
+ const end = length === undefined ? reader.len : reader.pos + length;
133
+ const message = createBaseSupportTicketSubmitResponse();
134
+ while (reader.pos < end) {
135
+ const tag = reader.uint32();
136
+ switch (tag >>> 3) {
137
+ case 1: {
138
+ if (tag !== 10) {
139
+ break;
140
+ }
141
+ message.id = reader.string();
142
+ continue;
143
+ }
144
+ case 2: {
145
+ if (tag !== 18) {
146
+ break;
147
+ }
148
+ message.status = reader.string();
149
+ continue;
150
+ }
151
+ case 3: {
152
+ if (tag !== 24) {
153
+ break;
154
+ }
155
+ message.created_at = reader.int64().toString();
156
+ continue;
157
+ }
158
+ }
159
+ if ((tag & 7) === 4 || tag === 0) {
160
+ break;
161
+ }
162
+ const buf = reader.skip(tag & 7);
163
+ const list = message._unknownFields[tag];
164
+ if (list === undefined) {
165
+ message._unknownFields[tag] = [buf];
166
+ }
167
+ else {
168
+ list.push(buf);
169
+ }
170
+ }
171
+ return message;
172
+ },
173
+ fromJSON(object) {
174
+ return {
175
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
176
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
177
+ created_at: isSet(object.createdAt)
178
+ ? globalThis.String(object.createdAt)
179
+ : isSet(object.created_at)
180
+ ? globalThis.String(object.created_at)
181
+ : "0",
182
+ };
183
+ },
184
+ toJSON(message) {
185
+ const obj = {};
186
+ if (message.id !== "") {
187
+ obj.id = message.id;
188
+ }
189
+ if (message.status !== "") {
190
+ obj.status = message.status;
191
+ }
192
+ if (message.created_at !== "0") {
193
+ obj.createdAt = message.created_at;
194
+ }
195
+ return obj;
196
+ },
197
+ create(base) {
198
+ return SupportTicketSubmitResponse.fromPartial(base ?? {});
199
+ },
200
+ fromPartial(object) {
201
+ const message = createBaseSupportTicketSubmitResponse();
202
+ message.id = object.id ?? "";
203
+ message.status = object.status ?? "";
204
+ message.created_at = object.created_at ?? "0";
205
+ return message;
206
+ },
207
+ };
208
+ function createBaseSupportTicketRecord() {
209
+ return {
210
+ id: "",
211
+ user_id: "",
212
+ kind: "",
213
+ subject: "",
214
+ content: "",
215
+ status: "",
216
+ created_at: "0",
217
+ handled_at: undefined,
218
+ handler_user_id: undefined,
219
+ reply: undefined,
220
+ _unknownFields: {},
221
+ };
222
+ }
223
+ export const SupportTicketRecord = {
224
+ encode(message, writer = new BinaryWriter()) {
225
+ if (message.id !== "") {
226
+ writer.uint32(10).string(message.id);
227
+ }
228
+ if (message.user_id !== "") {
229
+ writer.uint32(18).string(message.user_id);
230
+ }
231
+ if (message.kind !== "") {
232
+ writer.uint32(26).string(message.kind);
233
+ }
234
+ if (message.subject !== "") {
235
+ writer.uint32(34).string(message.subject);
236
+ }
237
+ if (message.content !== "") {
238
+ writer.uint32(42).string(message.content);
239
+ }
240
+ if (message.status !== "") {
241
+ writer.uint32(50).string(message.status);
242
+ }
243
+ if (message.created_at !== "0") {
244
+ writer.uint32(56).int64(message.created_at);
245
+ }
246
+ if (message.handled_at !== undefined) {
247
+ writer.uint32(64).int64(message.handled_at);
248
+ }
249
+ if (message.handler_user_id !== undefined) {
250
+ writer.uint32(74).string(message.handler_user_id);
251
+ }
252
+ if (message.reply !== undefined) {
253
+ writer.uint32(82).string(message.reply);
254
+ }
255
+ if (message._unknownFields !== undefined) {
256
+ for (const [key, values] of globalThis.Object.entries(message._unknownFields)) {
257
+ const tag = parseInt(key, 10);
258
+ for (const value of values) {
259
+ writer.uint32(tag).raw(value);
260
+ }
261
+ }
262
+ }
263
+ return writer;
264
+ },
265
+ decode(input, length) {
266
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
267
+ const end = length === undefined ? reader.len : reader.pos + length;
268
+ const message = createBaseSupportTicketRecord();
269
+ while (reader.pos < end) {
270
+ const tag = reader.uint32();
271
+ switch (tag >>> 3) {
272
+ case 1: {
273
+ if (tag !== 10) {
274
+ break;
275
+ }
276
+ message.id = reader.string();
277
+ continue;
278
+ }
279
+ case 2: {
280
+ if (tag !== 18) {
281
+ break;
282
+ }
283
+ message.user_id = reader.string();
284
+ continue;
285
+ }
286
+ case 3: {
287
+ if (tag !== 26) {
288
+ break;
289
+ }
290
+ message.kind = reader.string();
291
+ continue;
292
+ }
293
+ case 4: {
294
+ if (tag !== 34) {
295
+ break;
296
+ }
297
+ message.subject = reader.string();
298
+ continue;
299
+ }
300
+ case 5: {
301
+ if (tag !== 42) {
302
+ break;
303
+ }
304
+ message.content = reader.string();
305
+ continue;
306
+ }
307
+ case 6: {
308
+ if (tag !== 50) {
309
+ break;
310
+ }
311
+ message.status = reader.string();
312
+ continue;
313
+ }
314
+ case 7: {
315
+ if (tag !== 56) {
316
+ break;
317
+ }
318
+ message.created_at = reader.int64().toString();
319
+ continue;
320
+ }
321
+ case 8: {
322
+ if (tag !== 64) {
323
+ break;
324
+ }
325
+ message.handled_at = reader.int64().toString();
326
+ continue;
327
+ }
328
+ case 9: {
329
+ if (tag !== 74) {
330
+ break;
331
+ }
332
+ message.handler_user_id = reader.string();
333
+ continue;
334
+ }
335
+ case 10: {
336
+ if (tag !== 82) {
337
+ break;
338
+ }
339
+ message.reply = reader.string();
340
+ continue;
341
+ }
342
+ }
343
+ if ((tag & 7) === 4 || tag === 0) {
344
+ break;
345
+ }
346
+ const buf = reader.skip(tag & 7);
347
+ const list = message._unknownFields[tag];
348
+ if (list === undefined) {
349
+ message._unknownFields[tag] = [buf];
350
+ }
351
+ else {
352
+ list.push(buf);
353
+ }
354
+ }
355
+ return message;
356
+ },
357
+ fromJSON(object) {
358
+ return {
359
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
360
+ user_id: isSet(object.userId)
361
+ ? globalThis.String(object.userId)
362
+ : isSet(object.user_id)
363
+ ? globalThis.String(object.user_id)
364
+ : "",
365
+ kind: isSet(object.kind) ? globalThis.String(object.kind) : "",
366
+ subject: isSet(object.subject) ? globalThis.String(object.subject) : "",
367
+ content: isSet(object.content) ? globalThis.String(object.content) : "",
368
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
369
+ created_at: isSet(object.createdAt)
370
+ ? globalThis.String(object.createdAt)
371
+ : isSet(object.created_at)
372
+ ? globalThis.String(object.created_at)
373
+ : "0",
374
+ handled_at: isSet(object.handledAt)
375
+ ? globalThis.String(object.handledAt)
376
+ : isSet(object.handled_at)
377
+ ? globalThis.String(object.handled_at)
378
+ : undefined,
379
+ handler_user_id: isSet(object.handlerUserId)
380
+ ? globalThis.String(object.handlerUserId)
381
+ : isSet(object.handler_user_id)
382
+ ? globalThis.String(object.handler_user_id)
383
+ : undefined,
384
+ reply: isSet(object.reply) ? globalThis.String(object.reply) : undefined,
385
+ };
386
+ },
387
+ toJSON(message) {
388
+ const obj = {};
389
+ if (message.id !== "") {
390
+ obj.id = message.id;
391
+ }
392
+ if (message.user_id !== "") {
393
+ obj.userId = message.user_id;
394
+ }
395
+ if (message.kind !== "") {
396
+ obj.kind = message.kind;
397
+ }
398
+ if (message.subject !== "") {
399
+ obj.subject = message.subject;
400
+ }
401
+ if (message.content !== "") {
402
+ obj.content = message.content;
403
+ }
404
+ if (message.status !== "") {
405
+ obj.status = message.status;
406
+ }
407
+ if (message.created_at !== "0") {
408
+ obj.createdAt = message.created_at;
409
+ }
410
+ if (message.handled_at !== undefined) {
411
+ obj.handledAt = message.handled_at;
412
+ }
413
+ if (message.handler_user_id !== undefined) {
414
+ obj.handlerUserId = message.handler_user_id;
415
+ }
416
+ if (message.reply !== undefined) {
417
+ obj.reply = message.reply;
418
+ }
419
+ return obj;
420
+ },
421
+ create(base) {
422
+ return SupportTicketRecord.fromPartial(base ?? {});
423
+ },
424
+ fromPartial(object) {
425
+ const message = createBaseSupportTicketRecord();
426
+ message.id = object.id ?? "";
427
+ message.user_id = object.user_id ?? "";
428
+ message.kind = object.kind ?? "";
429
+ message.subject = object.subject ?? "";
430
+ message.content = object.content ?? "";
431
+ message.status = object.status ?? "";
432
+ message.created_at = object.created_at ?? "0";
433
+ message.handled_at = object.handled_at ?? undefined;
434
+ message.handler_user_id = object.handler_user_id ?? undefined;
435
+ message.reply = object.reply ?? undefined;
436
+ return message;
437
+ },
438
+ };
439
+ function createBaseSupportTicketListResponse() {
440
+ return { items: [], _unknownFields: {} };
441
+ }
442
+ export const SupportTicketListResponse = {
443
+ encode(message, writer = new BinaryWriter()) {
444
+ for (const v of message.items) {
445
+ SupportTicketRecord.encode(v, writer.uint32(10).fork()).join();
446
+ }
447
+ if (message._unknownFields !== undefined) {
448
+ for (const [key, values] of globalThis.Object.entries(message._unknownFields)) {
449
+ const tag = parseInt(key, 10);
450
+ for (const value of values) {
451
+ writer.uint32(tag).raw(value);
452
+ }
453
+ }
454
+ }
455
+ return writer;
456
+ },
457
+ decode(input, length) {
458
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
459
+ const end = length === undefined ? reader.len : reader.pos + length;
460
+ const message = createBaseSupportTicketListResponse();
461
+ while (reader.pos < end) {
462
+ const tag = reader.uint32();
463
+ switch (tag >>> 3) {
464
+ case 1: {
465
+ if (tag !== 10) {
466
+ break;
467
+ }
468
+ message.items.push(SupportTicketRecord.decode(reader, reader.uint32()));
469
+ continue;
470
+ }
471
+ }
472
+ if ((tag & 7) === 4 || tag === 0) {
473
+ break;
474
+ }
475
+ const buf = reader.skip(tag & 7);
476
+ const list = message._unknownFields[tag];
477
+ if (list === undefined) {
478
+ message._unknownFields[tag] = [buf];
479
+ }
480
+ else {
481
+ list.push(buf);
482
+ }
483
+ }
484
+ return message;
485
+ },
486
+ fromJSON(object) {
487
+ return {
488
+ items: globalThis.Array.isArray(object?.items)
489
+ ? object.items.map((e) => SupportTicketRecord.fromJSON(e))
490
+ : [],
491
+ };
492
+ },
493
+ toJSON(message) {
494
+ const obj = {};
495
+ if (message.items?.length) {
496
+ obj.items = message.items.map((e) => SupportTicketRecord.toJSON(e));
497
+ }
498
+ return obj;
499
+ },
500
+ create(base) {
501
+ return SupportTicketListResponse.fromPartial(base ?? {});
502
+ },
503
+ fromPartial(object) {
504
+ const message = createBaseSupportTicketListResponse();
505
+ message.items = object.items?.map((e) => SupportTicketRecord.fromPartial(e)) || [];
506
+ return message;
507
+ },
508
+ };
509
+ function isSet(value) {
510
+ return value !== null && value !== undefined;
511
+ }