@chaty-app/proto 0.1.17 → 0.1.19

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 (140) hide show
  1. package/dist/index.d.ts +0 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/node/service/v1/index.d.ts +2 -3
  6. package/dist/node/service/v1/index.d.ts.map +1 -1
  7. package/dist/node/service/v1/index.js +2 -3
  8. package/dist/node/service/v1/index.js.map +1 -1
  9. package/dist/node/service/v1/main.d.ts +1 -1
  10. package/dist/node/service/v1/main.d.ts.map +1 -1
  11. package/dist/node/service/v1/main.js +1 -1
  12. package/dist/node/service/v1/main.js.map +1 -1
  13. package/dist/node/service/v1/users.d.ts +12 -3
  14. package/dist/node/service/v1/users.d.ts.map +1 -1
  15. package/dist/node/service/v1/users.js +17 -1
  16. package/dist/node/service/v1/users.js.map +1 -1
  17. package/dist/node/shared/v1/index.d.ts +5 -2
  18. package/dist/node/shared/v1/index.d.ts.map +1 -1
  19. package/dist/node/shared/v1/index.js +5 -2
  20. package/dist/node/shared/v1/index.js.map +1 -1
  21. package/dist/node/shared/v1/struct.d.ts +90 -0
  22. package/dist/node/shared/v1/struct.d.ts.map +1 -0
  23. package/dist/node/shared/v1/struct.js +377 -0
  24. package/dist/node/shared/v1/struct.js.map +1 -0
  25. package/dist/node/shared/v1/time.d.ts +127 -0
  26. package/dist/node/shared/v1/time.d.ts.map +1 -0
  27. package/dist/node/shared/v1/time.js +80 -0
  28. package/dist/node/shared/v1/time.js.map +1 -0
  29. package/dist/{node-cjs/shared/v1/error.d.ts → node/shared/v1/types.d.ts} +15 -21
  30. package/dist/node/shared/v1/types.d.ts.map +1 -0
  31. package/dist/node/shared/v1/types.js +222 -0
  32. package/dist/node/shared/v1/types.js.map +1 -0
  33. package/dist/node/shared/v1/wrappers.d.ts +168 -0
  34. package/dist/node/shared/v1/wrappers.d.ts.map +1 -0
  35. package/dist/node/shared/v1/wrappers.js +601 -0
  36. package/dist/node/shared/v1/wrappers.js.map +1 -0
  37. package/dist/web/service/v1/index.d.ts +2 -3
  38. package/dist/web/service/v1/index.d.ts.map +1 -1
  39. package/dist/web/service/v1/index.js +2 -3
  40. package/dist/web/service/v1/index.js.map +1 -1
  41. package/dist/web/service/v1/main_pb.d.ts +28 -0
  42. package/dist/web/service/v1/main_pb.d.ts.map +1 -0
  43. package/dist/web/service/v1/main_pb.js +14 -0
  44. package/dist/web/service/v1/main_pb.js.map +1 -0
  45. package/dist/web/service/v1/users_pb.d.ts +280 -0
  46. package/dist/web/service/v1/users_pb.d.ts.map +1 -0
  47. package/dist/web/service/v1/users_pb.js +105 -0
  48. package/dist/web/service/v1/users_pb.js.map +1 -0
  49. package/dist/web/shared/v1/error_pb.d.ts +57 -0
  50. package/dist/web/shared/v1/error_pb.d.ts.map +1 -0
  51. package/dist/web/shared/v1/error_pb.js +14 -0
  52. package/dist/web/shared/v1/error_pb.js.map +1 -0
  53. package/dist/web/shared/v1/index.d.ts +5 -2
  54. package/dist/web/shared/v1/index.d.ts.map +1 -1
  55. package/dist/web/shared/v1/index.js +5 -2
  56. package/dist/web/shared/v1/index.js.map +1 -1
  57. package/dist/web/shared/v1/struct_pb.d.ts +148 -0
  58. package/dist/web/shared/v1/struct_pb.d.ts.map +1 -0
  59. package/dist/web/shared/v1/struct_pb.js +45 -0
  60. package/dist/web/shared/v1/struct_pb.js.map +1 -0
  61. package/dist/web/shared/v1/time_pb.d.ts +123 -0
  62. package/dist/web/shared/v1/time_pb.d.ts.map +1 -0
  63. package/dist/web/shared/v1/time_pb.js +14 -0
  64. package/dist/web/shared/v1/time_pb.js.map +1 -0
  65. package/dist/web/shared/v1/types_pb.d.ts +72 -0
  66. package/dist/web/shared/v1/types_pb.d.ts.map +1 -0
  67. package/dist/web/shared/v1/types_pb.js +29 -0
  68. package/dist/web/shared/v1/types_pb.js.map +1 -0
  69. package/dist/web/shared/v1/wrappers_pb.d.ts +247 -0
  70. package/dist/web/shared/v1/wrappers_pb.d.ts.map +1 -0
  71. package/dist/web/shared/v1/wrappers_pb.js +77 -0
  72. package/dist/web/shared/v1/wrappers_pb.js.map +1 -0
  73. package/package.json +29 -58
  74. package/dist/node/index.d.ts +0 -3
  75. package/dist/node/index.d.ts.map +0 -1
  76. package/dist/node/index.js +0 -3
  77. package/dist/node/index.js.map +0 -1
  78. package/dist/node/service/index.d.ts +0 -2
  79. package/dist/node/service/index.d.ts.map +0 -1
  80. package/dist/node/service/index.js +0 -2
  81. package/dist/node/service/index.js.map +0 -1
  82. package/dist/node/shared/index.d.ts +0 -2
  83. package/dist/node/shared/index.d.ts.map +0 -1
  84. package/dist/node/shared/index.js +0 -2
  85. package/dist/node/shared/index.js.map +0 -1
  86. package/dist/node-cjs/index.d.ts +0 -3
  87. package/dist/node-cjs/index.d.ts.map +0 -1
  88. package/dist/node-cjs/index.js +0 -25
  89. package/dist/node-cjs/index.js.map +0 -1
  90. package/dist/node-cjs/service/index.d.ts +0 -2
  91. package/dist/node-cjs/service/index.d.ts.map +0 -1
  92. package/dist/node-cjs/service/index.js +0 -23
  93. package/dist/node-cjs/service/index.js.map +0 -1
  94. package/dist/node-cjs/service/v1/index.d.ts +0 -4
  95. package/dist/node-cjs/service/v1/index.d.ts.map +0 -1
  96. package/dist/node-cjs/service/v1/index.js +0 -42
  97. package/dist/node-cjs/service/v1/index.js.map +0 -1
  98. package/dist/node-cjs/service/v1/main.d.ts +0 -42
  99. package/dist/node-cjs/service/v1/main.d.ts.map +0 -1
  100. package/dist/node-cjs/service/v1/main.js +0 -56
  101. package/dist/node-cjs/service/v1/main.js.map +0 -1
  102. package/dist/node-cjs/service/v1/users.d.ts +0 -91
  103. package/dist/node-cjs/service/v1/users.d.ts.map +0 -1
  104. package/dist/node-cjs/service/v1/users.js +0 -812
  105. package/dist/node-cjs/service/v1/users.js.map +0 -1
  106. package/dist/node-cjs/shared/index.d.ts +0 -2
  107. package/dist/node-cjs/shared/index.d.ts.map +0 -1
  108. package/dist/node-cjs/shared/index.js +0 -23
  109. package/dist/node-cjs/shared/index.js.map +0 -1
  110. package/dist/node-cjs/shared/v1/error.d.ts.map +0 -1
  111. package/dist/node-cjs/shared/v1/error.js +0 -276
  112. package/dist/node-cjs/shared/v1/error.js.map +0 -1
  113. package/dist/node-cjs/shared/v1/index.d.ts +0 -3
  114. package/dist/node-cjs/shared/v1/index.d.ts.map +0 -1
  115. package/dist/node-cjs/shared/v1/index.js +0 -39
  116. package/dist/node-cjs/shared/v1/index.js.map +0 -1
  117. package/dist/web/index.d.ts +0 -3
  118. package/dist/web/index.d.ts.map +0 -1
  119. package/dist/web/index.js +0 -3
  120. package/dist/web/index.js.map +0 -1
  121. package/dist/web/service/index.d.ts +0 -2
  122. package/dist/web/service/index.d.ts.map +0 -1
  123. package/dist/web/service/index.js +0 -2
  124. package/dist/web/service/index.js.map +0 -1
  125. package/dist/web/service/v1/main.d.ts +0 -48
  126. package/dist/web/service/v1/main.d.ts.map +0 -1
  127. package/dist/web/service/v1/main.js +0 -106
  128. package/dist/web/service/v1/main.js.map +0 -1
  129. package/dist/web/service/v1/users.d.ts +0 -91
  130. package/dist/web/service/v1/users.d.ts.map +0 -1
  131. package/dist/web/service/v1/users.js +0 -775
  132. package/dist/web/service/v1/users.js.map +0 -1
  133. package/dist/web/shared/index.d.ts +0 -2
  134. package/dist/web/shared/index.d.ts.map +0 -1
  135. package/dist/web/shared/index.js +0 -2
  136. package/dist/web/shared/index.js.map +0 -1
  137. package/dist/web/shared/v1/error.d.ts +0 -44
  138. package/dist/web/shared/v1/error.d.ts.map +0 -1
  139. package/dist/web/shared/v1/error.js +0 -253
  140. package/dist/web/shared/v1/error.js.map +0 -1
@@ -0,0 +1,148 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file shared/v1/struct.proto.
5
+ */
6
+ export declare const file_shared_v1_struct: GenFile;
7
+ /**
8
+ * `Struct` represents a structured data value, consisting of fields
9
+ * which map to dynamically typed values. In some languages, `Struct`
10
+ * might be supported by a native representation. For example, in
11
+ * scripting languages like JS a struct is represented as an
12
+ * object. The details of that representation are described together
13
+ * with the proto support for the language.
14
+ *
15
+ * The JSON representation for `Struct` is JSON object.
16
+ *
17
+ * @generated from message shared.v1.Struct
18
+ */
19
+ export type Struct = Message<"shared.v1.Struct"> & {
20
+ /**
21
+ * Unordered map of dynamically typed values.
22
+ *
23
+ * @generated from field: map<string, shared.v1.Value> fields = 1;
24
+ */
25
+ fields: {
26
+ [key: string]: Value;
27
+ };
28
+ };
29
+ /**
30
+ * Describes the message shared.v1.Struct.
31
+ * Use `create(StructSchema)` to create a new message.
32
+ */
33
+ export declare const StructSchema: GenMessage<Struct>;
34
+ /**
35
+ * `Value` represents a dynamically typed value which can be either
36
+ * null, a number, a string, a boolean, a recursive struct value, or a
37
+ * list of values. A producer of value is expected to set one of these
38
+ * variants. Absence of any variant indicates an error.
39
+ *
40
+ * The JSON representation for `Value` is JSON value.
41
+ *
42
+ * @generated from message shared.v1.Value
43
+ */
44
+ export type Value = Message<"shared.v1.Value"> & {
45
+ /**
46
+ * The kind of value.
47
+ *
48
+ * @generated from oneof shared.v1.Value.kind
49
+ */
50
+ kind: {
51
+ /**
52
+ * Represents a null value.
53
+ *
54
+ * @generated from field: shared.v1.NullValue null_value = 1;
55
+ */
56
+ value: NullValue;
57
+ case: "nullValue";
58
+ } | {
59
+ /**
60
+ * Represents a double value.
61
+ *
62
+ * @generated from field: double number_value = 2;
63
+ */
64
+ value: number;
65
+ case: "numberValue";
66
+ } | {
67
+ /**
68
+ * Represents a string value.
69
+ *
70
+ * @generated from field: string string_value = 3;
71
+ */
72
+ value: string;
73
+ case: "stringValue";
74
+ } | {
75
+ /**
76
+ * Represents a boolean value.
77
+ *
78
+ * @generated from field: bool bool_value = 4;
79
+ */
80
+ value: boolean;
81
+ case: "boolValue";
82
+ } | {
83
+ /**
84
+ * Represents a structured value.
85
+ *
86
+ * @generated from field: shared.v1.Struct struct_value = 5;
87
+ */
88
+ value: Struct;
89
+ case: "structValue";
90
+ } | {
91
+ /**
92
+ * Represents a repeated `Value`.
93
+ *
94
+ * @generated from field: shared.v1.ListValue list_value = 6;
95
+ */
96
+ value: ListValue;
97
+ case: "listValue";
98
+ } | {
99
+ case: undefined;
100
+ value?: undefined;
101
+ };
102
+ };
103
+ /**
104
+ * Describes the message shared.v1.Value.
105
+ * Use `create(ValueSchema)` to create a new message.
106
+ */
107
+ export declare const ValueSchema: GenMessage<Value>;
108
+ /**
109
+ * `ListValue` is a wrapper around a repeated field of values.
110
+ *
111
+ * The JSON representation for `ListValue` is JSON array.
112
+ *
113
+ * @generated from message shared.v1.ListValue
114
+ */
115
+ export type ListValue = Message<"shared.v1.ListValue"> & {
116
+ /**
117
+ * Repeated field of dynamically typed values.
118
+ *
119
+ * @generated from field: repeated shared.v1.Value values = 1;
120
+ */
121
+ values: Value[];
122
+ };
123
+ /**
124
+ * Describes the message shared.v1.ListValue.
125
+ * Use `create(ListValueSchema)` to create a new message.
126
+ */
127
+ export declare const ListValueSchema: GenMessage<ListValue>;
128
+ /**
129
+ * `NullValue` is a singleton enumeration to represent the null value for the
130
+ * `Value` type union.
131
+ *
132
+ * The JSON representation for `NullValue` is JSON `null`.
133
+ *
134
+ * @generated from enum shared.v1.NullValue
135
+ */
136
+ export declare enum NullValue {
137
+ /**
138
+ * Null value.
139
+ *
140
+ * @generated from enum value: NULL_VALUE = 0;
141
+ */
142
+ NULL_VALUE = 0
143
+ }
144
+ /**
145
+ * Describes the enum shared.v1.NullValue.
146
+ */
147
+ export declare const NullValueSchema: GenEnum<NullValue>;
148
+ //# sourceMappingURL=struct_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"struct_pb.d.ts","sourceRoot":"","sources":["../../../../src/web/shared/v1/struct_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEjF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,OACglB,CAAC;AAErnB;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,GAAG;IACjD;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAA;KAAE,CAAC;CAClC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,MAAM,CACL,CAAC;AAExC;;;;;;;;;GASG;AACH,MAAM,MAAM,KAAK,GAAG,OAAO,CAAC,iBAAiB,CAAC,GAAG;IAC/C;;;;OAIG;IACH,IAAI,EAAE;QACJ;;;;WAIG;QACH,KAAK,EAAE,SAAS,CAAC;QACjB,IAAI,EAAE,WAAW,CAAC;KACnB,GAAG;QACF;;;;WAIG;QACH,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,aAAa,CAAC;KACrB,GAAG;QACF;;;;WAIG;QACH,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,aAAa,CAAC;KACrB,GAAG;QACF;;;;WAIG;QACH,KAAK,EAAE,OAAO,CAAC;QACf,IAAI,EAAE,WAAW,CAAC;KACnB,GAAG;QACF;;;;WAIG;QACH,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,aAAa,CAAC;KACrB,GAAG;QACF;;;;WAIG;QACH,KAAK,EAAE,SAAS,CAAC;QACjB,IAAI,EAAE,WAAW,CAAC;KACnB,GAAG;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC;CAC5C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,KAAK,CACH,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,qBAAqB,CAAC,GAAG;IACvD;;;;OAIG;IACH,MAAM,EAAE,KAAK,EAAE,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,SAAS,CACX,CAAC;AAExC;;;;;;;GAOG;AACH,oBAAY,SAAS;IACnB;;;;OAIG;IACH,UAAU,IAAI;CACf;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,SAAS,CACX,CAAC"}
@@ -0,0 +1,45 @@
1
+ // @generated by protoc-gen-es v2.10.2 with parameter "target=ts,import_extension=js"
2
+ // @generated from file shared/v1/struct.proto (package shared.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
+ /**
6
+ * Describes the file shared/v1/struct.proto.
7
+ */
8
+ export const file_shared_v1_struct = /*@__PURE__*/ fileDesc("ChZzaGFyZWQvdjEvc3RydWN0LnByb3RvEglzaGFyZWQudjEieAoGU3RydWN0Ei0KBmZpZWxkcxgBIAMoCzIdLnNoYXJlZC52MS5TdHJ1Y3QuRmllbGRzRW50cnkaPwoLRmllbGRzRW50cnkSCwoDa2V5GAEgASgJEh8KBXZhbHVlGAIgASgLMhAuc2hhcmVkLnYxLlZhbHVlOgI4ASLYAQoFVmFsdWUSKgoKbnVsbF92YWx1ZRgBIAEoDjIULnNoYXJlZC52MS5OdWxsVmFsdWVIABIWCgxudW1iZXJfdmFsdWUYAiABKAFIABIWCgxzdHJpbmdfdmFsdWUYAyABKAlIABIUCgpib29sX3ZhbHVlGAQgASgISAASKQoMc3RydWN0X3ZhbHVlGAUgASgLMhEuc2hhcmVkLnYxLlN0cnVjdEgAEioKCmxpc3RfdmFsdWUYBiABKAsyFC5zaGFyZWQudjEuTGlzdFZhbHVlSABCBgoEa2luZCItCglMaXN0VmFsdWUSIAoGdmFsdWVzGAEgAygLMhAuc2hhcmVkLnYxLlZhbHVlKhsKCU51bGxWYWx1ZRIOCgpOVUxMX1ZBTFVFEABiBnByb3RvMw");
9
+ /**
10
+ * Describes the message shared.v1.Struct.
11
+ * Use `create(StructSchema)` to create a new message.
12
+ */
13
+ export const StructSchema = /*@__PURE__*/ messageDesc(file_shared_v1_struct, 0);
14
+ /**
15
+ * Describes the message shared.v1.Value.
16
+ * Use `create(ValueSchema)` to create a new message.
17
+ */
18
+ export const ValueSchema = /*@__PURE__*/ messageDesc(file_shared_v1_struct, 1);
19
+ /**
20
+ * Describes the message shared.v1.ListValue.
21
+ * Use `create(ListValueSchema)` to create a new message.
22
+ */
23
+ export const ListValueSchema = /*@__PURE__*/ messageDesc(file_shared_v1_struct, 2);
24
+ /**
25
+ * `NullValue` is a singleton enumeration to represent the null value for the
26
+ * `Value` type union.
27
+ *
28
+ * The JSON representation for `NullValue` is JSON `null`.
29
+ *
30
+ * @generated from enum shared.v1.NullValue
31
+ */
32
+ export var NullValue;
33
+ (function (NullValue) {
34
+ /**
35
+ * Null value.
36
+ *
37
+ * @generated from enum value: NULL_VALUE = 0;
38
+ */
39
+ NullValue[NullValue["NULL_VALUE"] = 0] = "NULL_VALUE";
40
+ })(NullValue || (NullValue = {}));
41
+ /**
42
+ * Describes the enum shared.v1.NullValue.
43
+ */
44
+ export const NullValueSchema = /*@__PURE__*/ enumDesc(file_shared_v1_struct, 0);
45
+ //# sourceMappingURL=struct_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"struct_pb.js","sourceRoot":"","sources":["../../../../src/web/shared/v1/struct_pb.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,iFAAiF;AACjF,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG/E;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAY,aAAa,CACzD,QAAQ,CAAC,wmBAAwmB,CAAC,CAAC;AAuBrnB;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAuB,aAAa,CAC3D,WAAW,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC;AAqExC;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAsB,aAAa,CACzD,WAAW,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC;AAkBxC;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAA0B,aAAa,CACjE,WAAW,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC;AAExC;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB;;;;OAIG;IACH,qDAAc,CAAA;AAChB,CAAC,EAPW,SAAS,KAAT,SAAS,QAOpB;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAuB,aAAa,CAC9D,QAAQ,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,123 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file shared/v1/time.proto.
5
+ */
6
+ export declare const file_shared_v1_time: GenFile;
7
+ /**
8
+ * A Timestamp represents a point in time independent of any time zone or local
9
+ * calendar, encoded as a count of seconds and fractions of seconds at
10
+ * nanosecond resolution. The count is relative to an epoch at UTC midnight on
11
+ * January 1, 1970, in the proleptic Gregorian calendar which extends the
12
+ * Gregorian calendar backwards to year one.
13
+ *
14
+ * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
15
+ * second table is needed for interpretation, using a
16
+ * [24-hour linear smear](https://developers.google.com/time/smear).
17
+ *
18
+ * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
19
+ * restricting to that range, we ensure that we can convert to and from
20
+ * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
21
+ *
22
+ * # Examples
23
+ *
24
+ * Example 1: Compute Timestamp from POSIX `time()`.
25
+ *
26
+ * Timestamp timestamp;
27
+ * timestamp.set_seconds(time(NULL));
28
+ * timestamp.set_nanos(0);
29
+ *
30
+ * Example 2: Compute Timestamp from POSIX `gettimeofday()`.
31
+ *
32
+ * struct timeval tv;
33
+ * gettimeofday(&tv, NULL);
34
+ *
35
+ * Timestamp timestamp;
36
+ * timestamp.set_seconds(tv.tv_sec);
37
+ * timestamp.set_nanos(tv.tv_usec * 1000);
38
+ *
39
+ * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
40
+ *
41
+ * FILETIME ft;
42
+ * GetSystemTimeAsFileTime(&ft);
43
+ * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
44
+ *
45
+ * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
46
+ * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
47
+ * Timestamp timestamp;
48
+ * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
49
+ * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
50
+ *
51
+ * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
52
+ *
53
+ * long millis = System.currentTimeMillis();
54
+ *
55
+ * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
56
+ * .setNanos((int) ((millis % 1000) * 1000000)).build();
57
+ *
58
+ * Example 5: Compute Timestamp from Java `Instant.now()`.
59
+ *
60
+ * Instant now = Instant.now();
61
+ *
62
+ * Timestamp timestamp =
63
+ * Timestamp.newBuilder().setSeconds(now.getEpochSecond())
64
+ * .setNanos(now.getNano()).build();
65
+ *
66
+ * Example 6: Compute Timestamp from current time in Python.
67
+ *
68
+ * timestamp = Timestamp()
69
+ * timestamp.GetCurrentTime()
70
+ *
71
+ * # JSON Mapping
72
+ *
73
+ * In JSON format, the Timestamp type is encoded as a string in the
74
+ * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
75
+ * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
76
+ * where {year} is always expressed using four digits while {month}, {day},
77
+ * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
78
+ * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
79
+ * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
80
+ * is required. A proto3 JSON serializer should always use UTC (as indicated by "Z")
81
+ * when printing the Timestamp type and a proto3 JSON parser should be
82
+ * able to accept both UTC and other timezones (as indicated by an offset).
83
+ *
84
+ * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
85
+ * 01:30 UTC on January 15, 2017.
86
+ *
87
+ * In JavaScript, one can convert a Date object to this format using the standard
88
+ * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
89
+ * method. In Python, a standard `datetime.datetime` object can be converted
90
+ * to this format using
91
+ * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
92
+ * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
93
+ * the Joda Time's [`ISODateTimeFormat.dateTime()`](
94
+ * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
95
+ * ) to obtain a formatter capable of generating timestamps in this format.
96
+ *
97
+ *
98
+ * @generated from message shared.v1.Timestamp
99
+ */
100
+ export type Timestamp = Message<"shared.v1.Timestamp"> & {
101
+ /**
102
+ * Represents seconds of UTC time since Unix epoch
103
+ * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
104
+ * 9999-12-31T23:59:59Z inclusive.
105
+ *
106
+ * @generated from field: int64 seconds = 1;
107
+ */
108
+ seconds: bigint;
109
+ /**
110
+ * Non-negative fractions of a second at nanosecond resolution. Negative
111
+ * second values with fractions must still have non-negative nanos values
112
+ * that count forward in time. Must be from 0 to 999,999,999 inclusive.
113
+ *
114
+ * @generated from field: int32 nanos = 2;
115
+ */
116
+ nanos: number;
117
+ };
118
+ /**
119
+ * Describes the message shared.v1.Timestamp.
120
+ * Use `create(TimestampSchema)` to create a new message.
121
+ */
122
+ export declare const TimestampSchema: GenMessage<Timestamp>;
123
+ //# sourceMappingURL=time_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time_pb.d.ts","sourceRoot":"","sources":["../../../../src/web/shared/v1/time_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,OAC+F,CAAC;AAElI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4FG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,qBAAqB,CAAC,GAAG;IACvD;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,SAAS,CACb,CAAC"}
@@ -0,0 +1,14 @@
1
+ // @generated by protoc-gen-es v2.10.2 with parameter "target=ts,import_extension=js"
2
+ // @generated from file shared/v1/time.proto (package shared.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
+ /**
6
+ * Describes the file shared/v1/time.proto.
7
+ */
8
+ export const file_shared_v1_time = /*@__PURE__*/ fileDesc("ChRzaGFyZWQvdjEvdGltZS5wcm90bxIJc2hhcmVkLnYxIisKCVRpbWVzdGFtcBIPCgdzZWNvbmRzGAEgASgDEg0KBW5hbm9zGAIgASgFYgZwcm90bzM");
9
+ /**
10
+ * Describes the message shared.v1.Timestamp.
11
+ * Use `create(TimestampSchema)` to create a new message.
12
+ */
13
+ export const TimestampSchema = /*@__PURE__*/ messageDesc(file_shared_v1_time, 0);
14
+ //# sourceMappingURL=time_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time_pb.js","sourceRoot":"","sources":["../../../../src/web/shared/v1/time_pb.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,+EAA+E;AAC/E,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGrE;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAY,aAAa,CACvD,QAAQ,CAAC,qHAAqH,CAAC,CAAC;AAmHlI;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAA0B,aAAa,CACjE,WAAW,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,72 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file shared/v1/types.proto.
5
+ */
6
+ export declare const file_shared_v1_types: GenFile;
7
+ /**
8
+ * @generated from message shared.v1.PingRequest
9
+ */
10
+ export type PingRequest = Message<"shared.v1.PingRequest"> & {};
11
+ /**
12
+ * Describes the message shared.v1.PingRequest.
13
+ * Use `create(PingRequestSchema)` to create a new message.
14
+ */
15
+ export declare const PingRequestSchema: GenMessage<PingRequest>;
16
+ /**
17
+ * @generated from message shared.v1.PingResponse
18
+ */
19
+ export type PingResponse = Message<"shared.v1.PingResponse"> & {};
20
+ /**
21
+ * Describes the message shared.v1.PingResponse.
22
+ * Use `create(PingResponseSchema)` to create a new message.
23
+ */
24
+ export declare const PingResponseSchema: GenMessage<PingResponse>;
25
+ /**
26
+ * @generated from message shared.v1.OrderDirection
27
+ */
28
+ export type OrderDirection = Message<"shared.v1.OrderDirection"> & {
29
+ /**
30
+ * @generated from oneof shared.v1.OrderDirection.order
31
+ */
32
+ order: {
33
+ /**
34
+ * @generated from field: bool asc = 1;
35
+ */
36
+ value: boolean;
37
+ case: "asc";
38
+ } | {
39
+ /**
40
+ * @generated from field: bool desc = 2;
41
+ */
42
+ value: boolean;
43
+ case: "desc";
44
+ } | {
45
+ case: undefined;
46
+ value?: undefined;
47
+ };
48
+ };
49
+ /**
50
+ * Describes the message shared.v1.OrderDirection.
51
+ * Use `create(OrderDirectionSchema)` to create a new message.
52
+ */
53
+ export declare const OrderDirectionSchema: GenMessage<OrderDirection>;
54
+ /**
55
+ * @generated from message shared.v1.IDName
56
+ */
57
+ export type IDName = Message<"shared.v1.IDName"> & {
58
+ /**
59
+ * @generated from field: string id = 1;
60
+ */
61
+ id: string;
62
+ /**
63
+ * @generated from field: string name = 2;
64
+ */
65
+ name: string;
66
+ };
67
+ /**
68
+ * Describes the message shared.v1.IDName.
69
+ * Use `create(IDNameSchema)` to create a new message.
70
+ */
71
+ export declare const IDNameSchema: GenMessage<IDName>;
72
+ //# sourceMappingURL=types_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types_pb.d.ts","sourceRoot":"","sources":["../../../../src/web/shared/v1/types_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,OAC0M,CAAC;AAE9O;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,uBAAuB,CAAC,GAAG,EAC5D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC,WAAW,CAChB,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,wBAAwB,CAAC,GAAG,EAC9D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,YAAY,CAClB,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,0BAA0B,CAAC,GAAG;IACjE;;OAEG;IACH,KAAK,EAAE;QACL;;WAEG;QACH,KAAK,EAAE,OAAO,CAAC;QACf,IAAI,EAAE,KAAK,CAAC;KACb,GAAG;QACF;;WAEG;QACH,KAAK,EAAE,OAAO,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;KACd,GAAG;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC;CAC5C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,cAAc,CACtB,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,GAAG;IACjD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,MAAM,CACN,CAAC"}
@@ -0,0 +1,29 @@
1
+ // @generated by protoc-gen-es v2.10.2 with parameter "target=ts,import_extension=js"
2
+ // @generated from file shared/v1/types.proto (package shared.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
+ /**
6
+ * Describes the file shared/v1/types.proto.
7
+ */
8
+ export const file_shared_v1_types = /*@__PURE__*/ fileDesc("ChVzaGFyZWQvdjEvdHlwZXMucHJvdG8SCXNoYXJlZC52MSINCgtQaW5nUmVxdWVzdCIOCgxQaW5nUmVzcG9uc2UiOAoOT3JkZXJEaXJlY3Rpb24SDQoDYXNjGAEgASgISAASDgoEZGVzYxgCIAEoCEgAQgcKBW9yZGVyIiIKBklETmFtZRIKCgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJYgZwcm90bzM");
9
+ /**
10
+ * Describes the message shared.v1.PingRequest.
11
+ * Use `create(PingRequestSchema)` to create a new message.
12
+ */
13
+ export const PingRequestSchema = /*@__PURE__*/ messageDesc(file_shared_v1_types, 0);
14
+ /**
15
+ * Describes the message shared.v1.PingResponse.
16
+ * Use `create(PingResponseSchema)` to create a new message.
17
+ */
18
+ export const PingResponseSchema = /*@__PURE__*/ messageDesc(file_shared_v1_types, 1);
19
+ /**
20
+ * Describes the message shared.v1.OrderDirection.
21
+ * Use `create(OrderDirectionSchema)` to create a new message.
22
+ */
23
+ export const OrderDirectionSchema = /*@__PURE__*/ messageDesc(file_shared_v1_types, 2);
24
+ /**
25
+ * Describes the message shared.v1.IDName.
26
+ * Use `create(IDNameSchema)` to create a new message.
27
+ */
28
+ export const IDNameSchema = /*@__PURE__*/ messageDesc(file_shared_v1_types, 3);
29
+ //# sourceMappingURL=types_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types_pb.js","sourceRoot":"","sources":["../../../../src/web/shared/v1/types_pb.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,gFAAgF;AAChF,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGrE;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAY,aAAa,CACxD,QAAQ,CAAC,iOAAiO,CAAC,CAAC;AAQ9O;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA4B,aAAa,CACrE,WAAW,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC;AAQvC;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CACvE,WAAW,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC;AAwBvC;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA+B,aAAa,CAC3E,WAAW,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC;AAiBvC;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAuB,aAAa,CAC3D,WAAW,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC"}