geniebox-shared-lib 1.0.74 → 2.0.1

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 (54) hide show
  1. package/README.md +636 -0
  2. package/dist/{ai/ai.interface.d.ts → ai.interface.d.ts} +0 -5
  3. package/dist/index.d.ts +14 -14
  4. package/dist/index.js +27 -26
  5. package/dist/shared.module.d.ts +1 -1
  6. package/dist/shared.module.js +19 -19
  7. package/dist/{file/file.client.d.ts → storage.client.d.ts} +4 -4
  8. package/dist/{file/file.client.js → storage.client.js} +15 -14
  9. package/dist/{file/file.interface.d.ts → storage.interface.d.ts} +12 -12
  10. package/dist/{file/file.interface.js → storage.interface.js} +13 -13
  11. package/dist/{user/user.interface.d.ts → user.interface.d.ts} +23 -7
  12. package/dist/{user/user.interface.js → user.interface.js} +49 -6
  13. package/package.json +2 -9
  14. package/dist/account/account.client.d.ts +0 -11
  15. package/dist/account/account.client.js +0 -41
  16. package/dist/account/account.interface.d.ts +0 -184
  17. package/dist/account/account.interface.js +0 -625
  18. package/dist/ai/google/protobuf/struct.interface.d.ts +0 -91
  19. package/dist/ai/google/protobuf/struct.interface.js +0 -300
  20. package/dist/auth/google/protobuf/empty.interface.d.ts +0 -19
  21. package/dist/auth/google/protobuf/empty.interface.js +0 -35
  22. package/dist/key/google/protobuf/empty.interface.d.ts +0 -19
  23. package/dist/key/google/protobuf/empty.interface.js +0 -35
  24. package/dist/openai/google/protobuf/struct.interface.d.ts +0 -91
  25. package/dist/openai/google/protobuf/struct.interface.js +0 -300
  26. package/dist/user/account.interface.d.ts +0 -184
  27. package/dist/user/account.interface.js +0 -625
  28. package/dist/user/google/protobuf/empty.interface.d.ts +0 -19
  29. package/dist/user/google/protobuf/empty.interface.js +0 -35
  30. package/dist/user/google/protobuf/timestamp.interface.d.ts +0 -114
  31. package/dist/user/google/protobuf/timestamp.interface.js +0 -65
  32. /package/dist/{ai/ai.client.d.ts → ai.client.d.ts} +0 -0
  33. /package/dist/{ai/ai.client.js → ai.client.js} +0 -0
  34. /package/dist/{ai/ai.interface.js → ai.interface.js} +0 -0
  35. /package/dist/{auth/auth.client.d.ts → auth.client.d.ts} +0 -0
  36. /package/dist/{auth/auth.client.js → auth.client.js} +0 -0
  37. /package/dist/{auth/auth.interface.d.ts → auth.interface.d.ts} +0 -0
  38. /package/dist/{auth/auth.interface.js → auth.interface.js} +0 -0
  39. /package/dist/{event/event.client.d.ts → event.client.d.ts} +0 -0
  40. /package/dist/{event/event.client.js → event.client.js} +0 -0
  41. /package/dist/{event/event.interface.d.ts → event.interface.d.ts} +0 -0
  42. /package/dist/{event/event.interface.js → event.interface.js} +0 -0
  43. /package/dist/{ai/google → google}/protobuf/empty.interface.d.ts +0 -0
  44. /package/dist/{ai/google → google}/protobuf/empty.interface.js +0 -0
  45. /package/dist/{key/key.client.d.ts → key.client.d.ts} +0 -0
  46. /package/dist/{key/key.client.js → key.client.js} +0 -0
  47. /package/dist/{key/key.interface.d.ts → key.interface.d.ts} +0 -0
  48. /package/dist/{key/key.interface.js → key.interface.js} +0 -0
  49. /package/dist/{openai/openai.client.d.ts → openai.client.d.ts} +0 -0
  50. /package/dist/{openai/openai.client.js → openai.client.js} +0 -0
  51. /package/dist/{openai/openai.interface.d.ts → openai.interface.d.ts} +0 -0
  52. /package/dist/{openai/openai.interface.js → openai.interface.js} +0 -0
  53. /package/dist/{user/user.client.d.ts → user.client.d.ts} +0 -0
  54. /package/dist/{user/user.client.js → user.client.js} +0 -0
@@ -1,114 +0,0 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- export declare const protobufPackage = "google.protobuf";
3
- /**
4
- * A Timestamp represents a point in time independent of any time zone or local
5
- * calendar, encoded as a count of seconds and fractions of seconds at
6
- * nanosecond resolution. The count is relative to an epoch at UTC midnight on
7
- * January 1, 1970, in the proleptic Gregorian calendar which extends the
8
- * Gregorian calendar backwards to year one.
9
- *
10
- * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
11
- * second table is needed for interpretation, using a [24-hour linear
12
- * smear](https://developers.google.com/time/smear).
13
- *
14
- * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
15
- * restricting to that range, we ensure that we can convert to and from [RFC
16
- * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
17
- *
18
- * # Examples
19
- *
20
- * Example 1: Compute Timestamp from POSIX `time()`.
21
- *
22
- * Timestamp timestamp;
23
- * timestamp.set_seconds(time(NULL));
24
- * timestamp.set_nanos(0);
25
- *
26
- * Example 2: Compute Timestamp from POSIX `gettimeofday()`.
27
- *
28
- * struct timeval tv;
29
- * gettimeofday(&tv, NULL);
30
- *
31
- * Timestamp timestamp;
32
- * timestamp.set_seconds(tv.tv_sec);
33
- * timestamp.set_nanos(tv.tv_usec * 1000);
34
- *
35
- * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
36
- *
37
- * FILETIME ft;
38
- * GetSystemTimeAsFileTime(&ft);
39
- * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
40
- *
41
- * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
42
- * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
43
- * Timestamp timestamp;
44
- * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
45
- * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
46
- *
47
- * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
48
- *
49
- * long millis = System.currentTimeMillis();
50
- *
51
- * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
52
- * .setNanos((int) ((millis % 1000) * 1000000)).build();
53
- *
54
- * Example 5: Compute Timestamp from Java `Instant.now()`.
55
- *
56
- * Instant now = Instant.now();
57
- *
58
- * Timestamp timestamp =
59
- * Timestamp.newBuilder().setSeconds(now.getEpochSecond())
60
- * .setNanos(now.getNano()).build();
61
- *
62
- * Example 6: Compute Timestamp from current time in Python.
63
- *
64
- * timestamp = Timestamp()
65
- * timestamp.GetCurrentTime()
66
- *
67
- * # JSON Mapping
68
- *
69
- * In JSON format, the Timestamp type is encoded as a string in the
70
- * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
71
- * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
72
- * where {year} is always expressed using four digits while {month}, {day},
73
- * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
74
- * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
75
- * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
76
- * is required. A proto3 JSON serializer should always use UTC (as indicated by
77
- * "Z") when printing the Timestamp type and a proto3 JSON parser should be
78
- * able to accept both UTC and other timezones (as indicated by an offset).
79
- *
80
- * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
81
- * 01:30 UTC on January 15, 2017.
82
- *
83
- * In JavaScript, one can convert a Date object to this format using the
84
- * standard
85
- * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
86
- * method. In Python, a standard `datetime.datetime` object can be converted
87
- * to this format using
88
- * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
89
- * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
90
- * the Joda Time's [`ISODateTimeFormat.dateTime()`](
91
- * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
92
- * ) to obtain a formatter capable of generating timestamps in this format.
93
- */
94
- export interface Timestamp {
95
- /**
96
- * Represents seconds of UTC time since Unix epoch
97
- * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
98
- * 9999-12-31T23:59:59Z inclusive.
99
- */
100
- seconds: number;
101
- /**
102
- * Non-negative fractions of a second at nanosecond resolution. Negative
103
- * second values with fractions must still have non-negative nanos values
104
- * that count forward in time. Must be from 0 to 999,999,999
105
- * inclusive.
106
- */
107
- nanos: number;
108
- }
109
- export declare const GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
110
- export declare const Timestamp: MessageFns<Timestamp>;
111
- export interface MessageFns<T> {
112
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
113
- decode(input: BinaryReader | Uint8Array, length?: number): T;
114
- }
@@ -1,65 +0,0 @@
1
- "use strict";
2
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
- // versions:
4
- // protoc-gen-ts_proto v2.7.7
5
- // protoc v5.28.2
6
- // source: google/protobuf/timestamp.proto
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.Timestamp = exports.GOOGLE_PROTOBUF_PACKAGE_NAME = exports.protobufPackage = void 0;
9
- /* eslint-disable */
10
- const wire_1 = require("@bufbuild/protobuf/wire");
11
- exports.protobufPackage = "google.protobuf";
12
- exports.GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
13
- function createBaseTimestamp() {
14
- return { seconds: 0, nanos: 0 };
15
- }
16
- exports.Timestamp = {
17
- encode(message, writer = new wire_1.BinaryWriter()) {
18
- if (message.seconds !== 0) {
19
- writer.uint32(8).int64(message.seconds);
20
- }
21
- if (message.nanos !== 0) {
22
- writer.uint32(16).int32(message.nanos);
23
- }
24
- return writer;
25
- },
26
- decode(input, length) {
27
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
28
- const end = length === undefined ? reader.len : reader.pos + length;
29
- const message = createBaseTimestamp();
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.seconds = longToNumber(reader.int64());
38
- continue;
39
- }
40
- case 2: {
41
- if (tag !== 16) {
42
- break;
43
- }
44
- message.nanos = reader.int32();
45
- continue;
46
- }
47
- }
48
- if ((tag & 7) === 4 || tag === 0) {
49
- break;
50
- }
51
- reader.skip(tag & 7);
52
- }
53
- return message;
54
- },
55
- };
56
- function longToNumber(int64) {
57
- const num = globalThis.Number(int64.toString());
58
- if (num > globalThis.Number.MAX_SAFE_INTEGER) {
59
- throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
60
- }
61
- if (num < globalThis.Number.MIN_SAFE_INTEGER) {
62
- throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
63
- }
64
- return num;
65
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes