@fatehan/tsrp 1.5.3 → 1.5.4

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 (76) hide show
  1. package/dist/fatehan/activities/workflow.d.ts +8 -0
  2. package/dist/fatehan/activities/workflow.d.ts.map +1 -1
  3. package/dist/fatehan/activities/workflow.js +66 -3
  4. package/dist/fatehan/apis/client.d.ts +1 -1
  5. package/dist/fatehan/apis/client.js +3 -3
  6. package/dist/fatehan/areas/area.js +2 -2
  7. package/dist/fatehan/devices/devices.js +2 -2
  8. package/dist/fatehan/devices/maintenance.js +2 -2
  9. package/dist/fatehan/financial/financial.js +2 -2
  10. package/dist/fatehan/google/protobuf/descriptor.d.ts +470 -39
  11. package/dist/fatehan/google/protobuf/descriptor.d.ts.map +1 -1
  12. package/dist/fatehan/google/protobuf/descriptor.js +1070 -57
  13. package/dist/fatehan/google/protobuf/duration.js +2 -2
  14. package/dist/fatehan/google/protobuf/field_mask.d.ts +16 -18
  15. package/dist/fatehan/google/protobuf/field_mask.d.ts.map +1 -1
  16. package/dist/fatehan/google/protobuf/field_mask.js +2 -2
  17. package/dist/fatehan/google/protobuf/timestamp.d.ts +10 -9
  18. package/dist/fatehan/google/protobuf/timestamp.d.ts.map +1 -1
  19. package/dist/fatehan/google/protobuf/timestamp.js +2 -2
  20. package/dist/fatehan/identities/authentication.d.ts +82 -6
  21. package/dist/fatehan/identities/authentication.d.ts.map +1 -1
  22. package/dist/fatehan/identities/authentication.js +575 -47
  23. package/dist/fatehan/identities/identities.d.ts +13 -1
  24. package/dist/fatehan/identities/identities.d.ts.map +1 -1
  25. package/dist/fatehan/identities/identities.js +15 -3
  26. package/dist/fatehan/models/fusion.js +2 -2
  27. package/dist/fatehan/models/models.js +2 -2
  28. package/dist/fatehan/notifies/notify.js +2 -2
  29. package/dist/fatehan/packets/{messages.d.ts → commands.d.ts} +58 -1
  30. package/dist/fatehan/packets/commands.d.ts.map +1 -0
  31. package/dist/fatehan/packets/{messages.js → commands.js} +588 -3
  32. package/dist/fatehan/packets/dataModel.d.ts +188 -127
  33. package/dist/fatehan/packets/dataModel.d.ts.map +1 -1
  34. package/dist/fatehan/packets/dataModel.js +1641 -1005
  35. package/dist/fatehan/packets/dataModule.js +2 -2
  36. package/dist/fatehan/packets/forge.d.ts +117 -0
  37. package/dist/fatehan/packets/forge.d.ts.map +1 -0
  38. package/dist/fatehan/packets/forge.js +1079 -0
  39. package/dist/fatehan/services/api.d.ts +812 -26
  40. package/dist/fatehan/services/api.d.ts.map +1 -1
  41. package/dist/fatehan/services/api.js +8438 -244
  42. package/dist/fatehan/services/repositories.js +2 -2
  43. package/dist/fatehan/stream/stream.d.ts +224 -0
  44. package/dist/fatehan/stream/stream.d.ts.map +1 -0
  45. package/dist/fatehan/stream/stream.js +1416 -0
  46. package/dist/fatehan/trips/trip.d.ts +159 -159
  47. package/dist/fatehan/trips/trip.d.ts.map +1 -1
  48. package/dist/fatehan/trips/trip.js +169 -169
  49. package/dist/fatehan/utils/buf/validate/validate.js +2 -2
  50. package/dist/services.d.ts +65 -0
  51. package/dist/services.d.ts.map +1 -0
  52. package/dist/services.js +205 -0
  53. package/package.json +12 -12
  54. package/dist/api.d.ts +0 -36
  55. package/dist/api.d.ts.map +0 -1
  56. package/dist/api.js +0 -146
  57. package/dist/fatehan/activities/camera.d.ts +0 -95
  58. package/dist/fatehan/activities/camera.d.ts.map +0 -1
  59. package/dist/fatehan/activities/camera.js +0 -811
  60. package/dist/fatehan/google/protobuf/any.d.ts +0 -146
  61. package/dist/fatehan/google/protobuf/any.d.ts.map +0 -1
  62. package/dist/fatehan/google/protobuf/any.js +0 -104
  63. package/dist/fatehan/google/status.d.ts +0 -53
  64. package/dist/fatehan/google/status.d.ts.map +0 -1
  65. package/dist/fatehan/google/status.js +0 -95
  66. package/dist/fatehan/packets/messages.d.ts.map +0 -1
  67. package/dist/fatehan/reports/report.d.ts +0 -830
  68. package/dist/fatehan/reports/report.d.ts.map +0 -1
  69. package/dist/fatehan/reports/report.js +0 -8380
  70. package/dist/index.d.ts +0 -2
  71. package/dist/index.d.ts.map +0 -1
  72. package/dist/index.js +0 -1
  73. package/dist/report.d.ts +0 -29
  74. package/dist/report.d.ts.map +0 -1
  75. package/dist/report.js +0 -139
  76. package/readme.md +0 -26
@@ -1,146 +0,0 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- import Long from "long";
3
- export declare const protobufPackage = "google.protobuf";
4
- /**
5
- * `Any` contains an arbitrary serialized protocol buffer message along with a
6
- * URL that describes the type of the serialized message.
7
- *
8
- * Protobuf library provides support to pack/unpack Any values in the form
9
- * of utility functions or additional generated methods of the Any type.
10
- *
11
- * Example 1: Pack and unpack a message in C++.
12
- *
13
- * Foo foo = ...;
14
- * Any any;
15
- * any.PackFrom(foo);
16
- * ...
17
- * if (any.UnpackTo(&foo)) {
18
- * ...
19
- * }
20
- *
21
- * Example 2: Pack and unpack a message in Java.
22
- *
23
- * Foo foo = ...;
24
- * Any any = Any.pack(foo);
25
- * ...
26
- * if (any.is(Foo.class)) {
27
- * foo = any.unpack(Foo.class);
28
- * }
29
- * // or ...
30
- * if (any.isSameTypeAs(Foo.getDefaultInstance())) {
31
- * foo = any.unpack(Foo.getDefaultInstance());
32
- * }
33
- *
34
- * Example 3: Pack and unpack a message in Python.
35
- *
36
- * foo = Foo(...)
37
- * any = Any()
38
- * any.Pack(foo)
39
- * ...
40
- * if any.Is(Foo.DESCRIPTOR):
41
- * any.Unpack(foo)
42
- * ...
43
- *
44
- * Example 4: Pack and unpack a message in Go
45
- *
46
- * foo := &pb.Foo{...}
47
- * any, err := anypb.New(foo)
48
- * if err != nil {
49
- * ...
50
- * }
51
- * ...
52
- * foo := &pb.Foo{}
53
- * if err := any.UnmarshalTo(foo); err != nil {
54
- * ...
55
- * }
56
- *
57
- * The pack methods provided by protobuf library will by default use
58
- * 'type.googleapis.com/full.type.name' as the type URL and the unpack
59
- * methods only use the fully qualified type name after the last '/'
60
- * in the type URL, for example "foo.bar.com/x/y.z" will yield type
61
- * name "y.z".
62
- *
63
- * JSON
64
- * ====
65
- * The JSON representation of an `Any` value uses the regular
66
- * representation of the deserialized, embedded message, with an
67
- * additional field `@type` which contains the type URL. Example:
68
- *
69
- * package google.profile;
70
- * message Person {
71
- * string first_name = 1;
72
- * string last_name = 2;
73
- * }
74
- *
75
- * {
76
- * "@type": "type.googleapis.com/google.profile.Person",
77
- * "firstName": <string>,
78
- * "lastName": <string>
79
- * }
80
- *
81
- * If the embedded message type is well-known and has a custom JSON
82
- * representation, that representation will be embedded adding a field
83
- * `value` which holds the custom JSON in addition to the `@type`
84
- * field. Example (for message [google.protobuf.Duration][]):
85
- *
86
- * {
87
- * "@type": "type.googleapis.com/google.protobuf.Duration",
88
- * "value": "1.212s"
89
- * }
90
- */
91
- export interface Any {
92
- /**
93
- * A URL/resource name that uniquely identifies the type of the serialized
94
- * protocol buffer message. This string must contain at least
95
- * one "/" character. The last segment of the URL's path must represent
96
- * the fully qualified name of the type (as in
97
- * `path/google.protobuf.Duration`). The name should be in a canonical form
98
- * (e.g., leading "." is not accepted).
99
- *
100
- * In practice, teams usually precompile into the binary all types that they
101
- * expect it to use in the context of Any. However, for URLs which use the
102
- * scheme `http`, `https`, or no scheme, one can optionally set up a type
103
- * server that maps type URLs to message definitions as follows:
104
- *
105
- * * If no scheme is provided, `https` is assumed.
106
- * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
107
- * value in binary format, or produce an error.
108
- * * Applications are allowed to cache lookup results based on the
109
- * URL, or have them precompiled into a binary to avoid any
110
- * lookup. Therefore, binary compatibility needs to be preserved
111
- * on changes to types. (Use versioned type names to manage
112
- * breaking changes.)
113
- *
114
- * Note: this functionality is not currently available in the official
115
- * protobuf release, and it is not used for type URLs beginning with
116
- * type.googleapis.com. As of May 2023, there are no widely used type server
117
- * implementations and no plans to implement one.
118
- *
119
- * Schemes other than `http`, `https` (or the empty scheme) might be
120
- * used with implementation specific semantics.
121
- */
122
- typeUrl: string;
123
- /** Must be a valid serialized protocol buffer of the above specified type. */
124
- value: Uint8Array;
125
- }
126
- export declare const Any: MessageFns<Any>;
127
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
128
- export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
129
- [K in keyof T]?: DeepPartial<T[K]>;
130
- } : Partial<T>;
131
- type KeysOfUnion<T> = T extends T ? keyof T : never;
132
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
133
- [K in keyof P]: Exact<P[K], I[K]>;
134
- } & {
135
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
136
- };
137
- export interface MessageFns<T> {
138
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
139
- decode(input: BinaryReader | Uint8Array, length?: number): T;
140
- fromJSON(object: any): T;
141
- toJSON(message: T): unknown;
142
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
143
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
144
- }
145
- export {};
146
- //# sourceMappingURL=any.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"any.d.ts","sourceRoot":"","sources":["../../../../src/fatehan/google/protobuf/any.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsFG;AACH,MAAM,WAAW,GAAG;IAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,8EAA8E;I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AAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxD,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D"}
@@ -1,104 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.0
4
- // protoc v6.31.1
5
- // source: google/protobuf/any.proto
6
- /* eslint-disable */
7
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
- export const protobufPackage = "google.protobuf";
9
- function createBaseAny() {
10
- return { typeUrl: "", value: new Uint8Array(0) };
11
- }
12
- export const Any = {
13
- encode(message, writer = new BinaryWriter()) {
14
- if (message.typeUrl !== "") {
15
- writer.uint32(10).string(message.typeUrl);
16
- }
17
- if (message.value.length !== 0) {
18
- writer.uint32(18).bytes(message.value);
19
- }
20
- return writer;
21
- },
22
- decode(input, length) {
23
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
24
- let end = length === undefined ? reader.len : reader.pos + length;
25
- const message = createBaseAny();
26
- while (reader.pos < end) {
27
- const tag = reader.uint32();
28
- switch (tag >>> 3) {
29
- case 1: {
30
- if (tag !== 10) {
31
- break;
32
- }
33
- message.typeUrl = reader.string();
34
- continue;
35
- }
36
- case 2: {
37
- if (tag !== 18) {
38
- break;
39
- }
40
- message.value = reader.bytes();
41
- continue;
42
- }
43
- }
44
- if ((tag & 7) === 4 || tag === 0) {
45
- break;
46
- }
47
- reader.skip(tag & 7);
48
- }
49
- return message;
50
- },
51
- fromJSON(object) {
52
- return {
53
- typeUrl: isSet(object.typeUrl) ? globalThis.String(object.typeUrl) : "",
54
- value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
55
- };
56
- },
57
- toJSON(message) {
58
- const obj = {};
59
- if (message.typeUrl !== "") {
60
- obj.typeUrl = message.typeUrl;
61
- }
62
- if (message.value.length !== 0) {
63
- obj.value = base64FromBytes(message.value);
64
- }
65
- return obj;
66
- },
67
- create(base) {
68
- return Any.fromPartial(base ?? {});
69
- },
70
- fromPartial(object) {
71
- const message = createBaseAny();
72
- message.typeUrl = object.typeUrl ?? "";
73
- message.value = object.value ?? new Uint8Array(0);
74
- return message;
75
- },
76
- };
77
- function bytesFromBase64(b64) {
78
- if (globalThis.Buffer) {
79
- return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
80
- }
81
- else {
82
- const bin = globalThis.atob(b64);
83
- const arr = new Uint8Array(bin.length);
84
- for (let i = 0; i < bin.length; ++i) {
85
- arr[i] = bin.charCodeAt(i);
86
- }
87
- return arr;
88
- }
89
- }
90
- function base64FromBytes(arr) {
91
- if (globalThis.Buffer) {
92
- return globalThis.Buffer.from(arr).toString("base64");
93
- }
94
- else {
95
- const bin = [];
96
- arr.forEach((byte) => {
97
- bin.push(globalThis.String.fromCharCode(byte));
98
- });
99
- return globalThis.btoa(bin.join(""));
100
- }
101
- }
102
- function isSet(value) {
103
- return value !== null && value !== undefined;
104
- }
@@ -1,53 +0,0 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- import Long from "long";
3
- import { Any } from "./protobuf/any";
4
- export declare const protobufPackage = "google.rpc";
5
- /**
6
- * The `Status` type defines a logical error model that is suitable for
7
- * different programming environments, including REST APIs and RPC APIs. It is
8
- * used by [gRPC](https://github.com/grpc). Each `Status` message contains
9
- * three pieces of data: error code, error message, and error details.
10
- *
11
- * You can find out more about this error model and how to work with it in the
12
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
13
- */
14
- export interface Status {
15
- /**
16
- * The status code, which should be an enum value of
17
- * [google.rpc.Code][google.rpc.Code].
18
- */
19
- code: number;
20
- /**
21
- * A developer-facing error message, which should be in English. Any
22
- * user-facing error message should be localized and sent in the
23
- * [google.rpc.Status.details][google.rpc.Status.details] field, or localized
24
- * by the client.
25
- */
26
- message: string;
27
- /**
28
- * A list of messages that carry the error details. There is a common set of
29
- * message types for APIs to use.
30
- */
31
- details: Any[];
32
- }
33
- export declare const Status: MessageFns<Status>;
34
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
35
- export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
36
- [K in keyof T]?: DeepPartial<T[K]>;
37
- } : Partial<T>;
38
- type KeysOfUnion<T> = T extends T ? keyof T : never;
39
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
40
- [K in keyof P]: Exact<P[K], I[K]>;
41
- } & {
42
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
43
- };
44
- export interface MessageFns<T> {
45
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
46
- decode(input: BinaryReader | Uint8Array, length?: number): T;
47
- fromJSON(object: any): T;
48
- toJSON(message: T): unknown;
49
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
50
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
51
- }
52
- export {};
53
- //# sourceMappingURL=status.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/fatehan/google/status.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB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CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;CAAE,CAAC;AAMnG,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxD,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D"}
@@ -1,95 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.0
4
- // protoc v6.31.1
5
- // source: google/status.proto
6
- /* eslint-disable */
7
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
- import { Any } from "./protobuf/any";
9
- export const protobufPackage = "google.rpc";
10
- function createBaseStatus() {
11
- return { code: 0, message: "", details: [] };
12
- }
13
- export const Status = {
14
- encode(message, writer = new BinaryWriter()) {
15
- if (message.code !== 0) {
16
- writer.uint32(8).int32(message.code);
17
- }
18
- if (message.message !== "") {
19
- writer.uint32(18).string(message.message);
20
- }
21
- for (const v of message.details) {
22
- Any.encode(v, writer.uint32(26).fork()).join();
23
- }
24
- return writer;
25
- },
26
- decode(input, length) {
27
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
28
- let end = length === undefined ? reader.len : reader.pos + length;
29
- const message = createBaseStatus();
30
- while (reader.pos < end) {
31
- const tag = reader.uint32();
32
- switch (tag >>> 3) {
33
- case 1: {
34
- if (tag !== 8) {
35
- break;
36
- }
37
- message.code = reader.int32();
38
- continue;
39
- }
40
- case 2: {
41
- if (tag !== 18) {
42
- break;
43
- }
44
- message.message = reader.string();
45
- continue;
46
- }
47
- case 3: {
48
- if (tag !== 26) {
49
- break;
50
- }
51
- message.details.push(Any.decode(reader, reader.uint32()));
52
- continue;
53
- }
54
- }
55
- if ((tag & 7) === 4 || tag === 0) {
56
- break;
57
- }
58
- reader.skip(tag & 7);
59
- }
60
- return message;
61
- },
62
- fromJSON(object) {
63
- return {
64
- code: isSet(object.code) ? globalThis.Number(object.code) : 0,
65
- message: isSet(object.message) ? globalThis.String(object.message) : "",
66
- details: globalThis.Array.isArray(object?.details) ? object.details.map((e) => Any.fromJSON(e)) : [],
67
- };
68
- },
69
- toJSON(message) {
70
- const obj = {};
71
- if (message.code !== 0) {
72
- obj.code = Math.round(message.code);
73
- }
74
- if (message.message !== "") {
75
- obj.message = message.message;
76
- }
77
- if (message.details?.length) {
78
- obj.details = message.details.map((e) => Any.toJSON(e));
79
- }
80
- return obj;
81
- },
82
- create(base) {
83
- return Status.fromPartial(base ?? {});
84
- },
85
- fromPartial(object) {
86
- const message = createBaseStatus();
87
- message.code = object.code ?? 0;
88
- message.message = object.message ?? "";
89
- message.details = object.details?.map((e) => Any.fromPartial(e)) || [];
90
- return message;
91
- },
92
- };
93
- function isSet(value) {
94
- return value !== null && value !== undefined;
95
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/fatehan/packets/messages.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,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