@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.
- package/dist/fatehan/activities/workflow.d.ts +8 -0
- package/dist/fatehan/activities/workflow.d.ts.map +1 -1
- package/dist/fatehan/activities/workflow.js +66 -3
- package/dist/fatehan/apis/client.d.ts +1 -1
- package/dist/fatehan/apis/client.js +3 -3
- package/dist/fatehan/areas/area.js +2 -2
- package/dist/fatehan/devices/devices.js +2 -2
- package/dist/fatehan/devices/maintenance.js +2 -2
- package/dist/fatehan/financial/financial.js +2 -2
- package/dist/fatehan/google/protobuf/descriptor.d.ts +470 -39
- package/dist/fatehan/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/fatehan/google/protobuf/descriptor.js +1070 -57
- package/dist/fatehan/google/protobuf/duration.js +2 -2
- package/dist/fatehan/google/protobuf/field_mask.d.ts +16 -18
- package/dist/fatehan/google/protobuf/field_mask.d.ts.map +1 -1
- package/dist/fatehan/google/protobuf/field_mask.js +2 -2
- package/dist/fatehan/google/protobuf/timestamp.d.ts +10 -9
- package/dist/fatehan/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/fatehan/google/protobuf/timestamp.js +2 -2
- package/dist/fatehan/identities/authentication.d.ts +82 -6
- package/dist/fatehan/identities/authentication.d.ts.map +1 -1
- package/dist/fatehan/identities/authentication.js +575 -47
- package/dist/fatehan/identities/identities.d.ts +13 -1
- package/dist/fatehan/identities/identities.d.ts.map +1 -1
- package/dist/fatehan/identities/identities.js +15 -3
- package/dist/fatehan/models/fusion.js +2 -2
- package/dist/fatehan/models/models.js +2 -2
- package/dist/fatehan/notifies/notify.js +2 -2
- package/dist/fatehan/packets/{messages.d.ts → commands.d.ts} +58 -1
- package/dist/fatehan/packets/commands.d.ts.map +1 -0
- package/dist/fatehan/packets/{messages.js → commands.js} +588 -3
- package/dist/fatehan/packets/dataModel.d.ts +188 -127
- package/dist/fatehan/packets/dataModel.d.ts.map +1 -1
- package/dist/fatehan/packets/dataModel.js +1641 -1005
- package/dist/fatehan/packets/dataModule.js +2 -2
- package/dist/fatehan/packets/forge.d.ts +117 -0
- package/dist/fatehan/packets/forge.d.ts.map +1 -0
- package/dist/fatehan/packets/forge.js +1079 -0
- package/dist/fatehan/services/api.d.ts +812 -26
- package/dist/fatehan/services/api.d.ts.map +1 -1
- package/dist/fatehan/services/api.js +8438 -244
- package/dist/fatehan/services/repositories.js +2 -2
- package/dist/fatehan/stream/stream.d.ts +224 -0
- package/dist/fatehan/stream/stream.d.ts.map +1 -0
- package/dist/fatehan/stream/stream.js +1416 -0
- package/dist/fatehan/trips/trip.d.ts +159 -159
- package/dist/fatehan/trips/trip.d.ts.map +1 -1
- package/dist/fatehan/trips/trip.js +169 -169
- package/dist/fatehan/utils/buf/validate/validate.js +2 -2
- package/dist/services.d.ts +65 -0
- package/dist/services.d.ts.map +1 -0
- package/dist/services.js +205 -0
- package/package.json +12 -12
- package/dist/api.d.ts +0 -36
- package/dist/api.d.ts.map +0 -1
- package/dist/api.js +0 -146
- package/dist/fatehan/activities/camera.d.ts +0 -95
- package/dist/fatehan/activities/camera.d.ts.map +0 -1
- package/dist/fatehan/activities/camera.js +0 -811
- package/dist/fatehan/google/protobuf/any.d.ts +0 -146
- package/dist/fatehan/google/protobuf/any.d.ts.map +0 -1
- package/dist/fatehan/google/protobuf/any.js +0 -104
- package/dist/fatehan/google/status.d.ts +0 -53
- package/dist/fatehan/google/status.d.ts.map +0 -1
- package/dist/fatehan/google/status.js +0 -95
- package/dist/fatehan/packets/messages.d.ts.map +0 -1
- package/dist/fatehan/reports/report.d.ts +0 -830
- package/dist/fatehan/reports/report.d.ts.map +0 -1
- package/dist/fatehan/reports/report.js +0 -8380
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -1
- package/dist/report.d.ts +0 -29
- package/dist/report.d.ts.map +0 -1
- package/dist/report.js +0 -139
- package/readme.md +0 -26
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
-
// protoc
|
|
3
|
+
// protoc-gen-ts_proto v2.11.6
|
|
4
|
+
// protoc v7.34.1
|
|
5
5
|
// source: google/protobuf/duration.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -113,24 +113,22 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
113
113
|
* An implementation may provide options to override this default behavior for
|
|
114
114
|
* repeated and message fields.
|
|
115
115
|
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
* operation kind. In any case, the effect of the field mask is
|
|
133
|
-
* required to be honored by the API.
|
|
116
|
+
* Note that libraries which implement FieldMask resolution have various
|
|
117
|
+
* different behaviors in the face of empty masks or the special "*" mask.
|
|
118
|
+
* When implementing a service you should confirm these cases have the
|
|
119
|
+
* appropriate behavior in the underlying FieldMask library that you desire,
|
|
120
|
+
* and you may need to special case those cases in your application code if
|
|
121
|
+
* the underlying field mask library behavior differs from your intended
|
|
122
|
+
* service semantics.
|
|
123
|
+
*
|
|
124
|
+
* Update methods implementing https://google.aip.dev/134
|
|
125
|
+
* - MUST support the special value * meaning "full replace"
|
|
126
|
+
* - MUST treat an omitted field mask as "replace fields which are present".
|
|
127
|
+
*
|
|
128
|
+
* Other methods implementing https://google.aip.dev/157
|
|
129
|
+
* - SHOULD support the special value "*" to mean "get all".
|
|
130
|
+
* - MUST treat an omitted field mask to mean "get all", unless otherwise
|
|
131
|
+
* documented.
|
|
134
132
|
*
|
|
135
133
|
* ## Considerations for HTTP REST
|
|
136
134
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field_mask.d.ts","sourceRoot":"","sources":["../../../../src/fatehan/google/protobuf/field_mask.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
|
|
1
|
+
{"version":3,"file":"field_mask.d.ts","sourceRoot":"","sources":["../../../../src/fatehan/google/protobuf/field_mask.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqMG;AACH,MAAM,WAAW,SAAS;IACxB,mCAAmC;IACnC,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAMD,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,SAAS,CAAC,GAAG,mBAkD/C,CAAC;AAEF,KAAK,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpF,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GAC9C,CAAC,SAAS,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,C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AC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACjC,MAAM,CAAC,OAAO,EAAE,SAAS,GAAG,MAAM,EAAE,CAAC;CACtC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
-
// protoc
|
|
3
|
+
// protoc-gen-ts_proto v2.11.6
|
|
4
|
+
// protoc v7.34.1
|
|
5
5
|
// source: google/protobuf/field_mask.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -74,8 +74,8 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
74
74
|
* {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
|
75
75
|
* seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
|
76
76
|
* are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
|
77
|
-
* is required. A
|
|
78
|
-
* "Z") when printing the Timestamp type and a
|
|
77
|
+
* is required. A ProtoJSON serializer should always use UTC (as indicated by
|
|
78
|
+
* "Z") when printing the Timestamp type and a ProtoJSON parser should be
|
|
79
79
|
* able to accept both UTC and other timezones (as indicated by an offset).
|
|
80
80
|
*
|
|
81
81
|
* For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
|
@@ -89,20 +89,21 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
89
89
|
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
|
90
90
|
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
|
91
91
|
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
|
92
|
-
* http://
|
|
92
|
+
* http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
|
93
93
|
* ) to obtain a formatter capable of generating timestamps in this format.
|
|
94
94
|
*/
|
|
95
95
|
export interface Timestamp {
|
|
96
96
|
/**
|
|
97
|
-
* Represents seconds of UTC time since Unix epoch
|
|
98
|
-
*
|
|
99
|
-
* 9999-12-31T23:59:59Z
|
|
97
|
+
* Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
|
|
98
|
+
* be between -62135596800 and 253402300799 inclusive (which corresponds to
|
|
99
|
+
* 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
|
|
100
100
|
*/
|
|
101
101
|
seconds: Long;
|
|
102
102
|
/**
|
|
103
|
-
* Non-negative fractions of a second at nanosecond resolution.
|
|
104
|
-
*
|
|
105
|
-
*
|
|
103
|
+
* Non-negative fractions of a second at nanosecond resolution. This field is
|
|
104
|
+
* the nanosecond portion of the duration, not an alternative to seconds.
|
|
105
|
+
* Negative second values with fractions must still have non-negative nanos
|
|
106
|
+
* values that count forward in time. Must be between 0 and 999,999,999
|
|
106
107
|
* inclusive.
|
|
107
108
|
*/
|
|
108
109
|
nanos: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp.d.ts","sourceRoot":"","sources":["../../../../src/fatehan/google/protobuf/timestamp.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FG;AACH,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,OAAO,EAAE,IAAI,CAAC;IACd
|
|
1
|
+
{"version":3,"file":"timestamp.d.ts","sourceRoot":"","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,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GACrD,CAAC,GAAG;KAAG,CAAC,IAAI,MAAM,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;AAEnG,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,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,7 +1,7 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
-
// protoc
|
|
3
|
+
// protoc-gen-ts_proto v2.11.6
|
|
4
|
+
// protoc v7.34.1
|
|
5
5
|
// source: google/protobuf/timestamp.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -1,15 +1,33 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import Long from "long";
|
|
3
|
+
import { Duration } from "../google/protobuf/duration";
|
|
3
4
|
export declare const protobufPackage = "com.fatehan.identities";
|
|
5
|
+
/** authentication method */
|
|
6
|
+
export declare enum AuthenticationMethod {
|
|
7
|
+
UNSPECIFIED_AUTHENTICATION = 0,
|
|
8
|
+
OTP = 1,
|
|
9
|
+
LOGIN_PASSWORD = 2,
|
|
10
|
+
GOOGLE = 3,
|
|
11
|
+
TELEGRAM = 4,
|
|
12
|
+
AUTHENTICATOR = 5,
|
|
13
|
+
QR = 6,
|
|
14
|
+
WHATS_APP = 7,
|
|
15
|
+
BALE = 8,
|
|
16
|
+
VERIFY_PASSWORD = 9,
|
|
17
|
+
UNRECOGNIZED = -1
|
|
18
|
+
}
|
|
19
|
+
/** verification request model */
|
|
4
20
|
export interface VerifyRequest {
|
|
5
21
|
token: string;
|
|
6
22
|
}
|
|
23
|
+
/** verification response */
|
|
7
24
|
export interface VerifyResponse {
|
|
8
25
|
identity: Identity | undefined;
|
|
9
26
|
accessToken: AccessToken | undefined;
|
|
10
27
|
cost: number;
|
|
11
28
|
clientAccessToken: string;
|
|
12
29
|
}
|
|
30
|
+
/** user identity */
|
|
13
31
|
export interface Identity {
|
|
14
32
|
id: Long;
|
|
15
33
|
phone: Long;
|
|
@@ -24,22 +42,23 @@ export interface Identity {
|
|
|
24
42
|
emailHash?: Uint8Array | undefined;
|
|
25
43
|
telegramUsername?: string | undefined;
|
|
26
44
|
telegramId?: Long | undefined;
|
|
27
|
-
|
|
45
|
+
/** if it's true it means that user cannot pass till makes a free room for current session */
|
|
46
|
+
sessionLimitReached: boolean;
|
|
28
47
|
}
|
|
48
|
+
/** access token */
|
|
29
49
|
export interface AccessToken {
|
|
30
50
|
id: Long;
|
|
31
51
|
identityId: Long;
|
|
32
52
|
domain: string;
|
|
33
53
|
token: Long;
|
|
34
|
-
phoneHash: Uint8Array;
|
|
35
54
|
ipAddress: string;
|
|
36
55
|
userAgent: string;
|
|
37
56
|
deviceType: string;
|
|
38
|
-
twoStepVerification: boolean;
|
|
39
57
|
expiresAt: Date | undefined;
|
|
40
58
|
createdAt: Date | undefined;
|
|
41
59
|
logoutAt?: Date | undefined;
|
|
42
60
|
}
|
|
61
|
+
/** otp request */
|
|
43
62
|
export interface OtpRequest {
|
|
44
63
|
id: Long;
|
|
45
64
|
phoneHash: Uint8Array;
|
|
@@ -49,6 +68,7 @@ export interface OtpRequest {
|
|
|
49
68
|
expiresAt: Date | undefined;
|
|
50
69
|
createdAt: Date | undefined;
|
|
51
70
|
}
|
|
71
|
+
/** user credential */
|
|
52
72
|
export interface Credential {
|
|
53
73
|
id: Long;
|
|
54
74
|
identityId: Long;
|
|
@@ -56,15 +76,19 @@ export interface Credential {
|
|
|
56
76
|
created: Long;
|
|
57
77
|
token: Long;
|
|
58
78
|
domain: string;
|
|
59
|
-
|
|
79
|
+
/** if it's true it means that user cannot pass till makes a free room for current session */
|
|
80
|
+
sessionLimitReached: boolean;
|
|
60
81
|
}
|
|
82
|
+
/** password model */
|
|
61
83
|
export interface Password {
|
|
62
84
|
id: Long;
|
|
63
85
|
identityId: Long;
|
|
64
|
-
password:
|
|
65
|
-
|
|
86
|
+
password: Uint8Array;
|
|
87
|
+
passwordUsage: string;
|
|
66
88
|
createdAt: Date | undefined;
|
|
89
|
+
expiresAt: Date | undefined;
|
|
67
90
|
}
|
|
91
|
+
/** webhook event base model */
|
|
68
92
|
export interface WebhookEvent {
|
|
69
93
|
timestamp: Date | undefined;
|
|
70
94
|
logoutPayload?: WebhookEvent_Logout | undefined;
|
|
@@ -77,6 +101,55 @@ export interface TemporaryAccessToken {
|
|
|
77
101
|
credential: Credential | undefined;
|
|
78
102
|
expiresAt: Date | undefined;
|
|
79
103
|
}
|
|
104
|
+
/** auth strategy config */
|
|
105
|
+
export interface AuthenticationStrategy {
|
|
106
|
+
/** authentication methods */
|
|
107
|
+
authentication: AuthenticationMethod[];
|
|
108
|
+
/** verification method */
|
|
109
|
+
verification: AuthenticationMethod;
|
|
110
|
+
/** verification timeout */
|
|
111
|
+
verificationTimeout: Duration | undefined;
|
|
112
|
+
/** session duration */
|
|
113
|
+
sessionTimeout: Duration | undefined;
|
|
114
|
+
/** active session limit */
|
|
115
|
+
activeSessionLimit: number;
|
|
116
|
+
/** minimum password length */
|
|
117
|
+
passwordMinimumLength: number;
|
|
118
|
+
/** from one to four */
|
|
119
|
+
passwordMinCharacterClass: number;
|
|
120
|
+
/** password duration */
|
|
121
|
+
passwordTimeout: Duration | undefined;
|
|
122
|
+
}
|
|
123
|
+
/** auth state model */
|
|
124
|
+
export interface AuthState {
|
|
125
|
+
strategy: AuthenticationStrategy | undefined;
|
|
126
|
+
authentication: AuthenticationMethod;
|
|
127
|
+
authenticated: Date | undefined;
|
|
128
|
+
verification: AuthenticationMethod;
|
|
129
|
+
verified: Date | undefined;
|
|
130
|
+
csrfToken: string;
|
|
131
|
+
identity: Identity | undefined;
|
|
132
|
+
google: Identity | undefined;
|
|
133
|
+
}
|
|
134
|
+
export interface ActivityLog {
|
|
135
|
+
id: Long;
|
|
136
|
+
createdBy?: Long | undefined;
|
|
137
|
+
organizationId?: Long | undefined;
|
|
138
|
+
logName?: string | undefined;
|
|
139
|
+
event?: string | undefined;
|
|
140
|
+
batchUuid?: string | undefined;
|
|
141
|
+
description?: string | undefined;
|
|
142
|
+
objectType?: string | undefined;
|
|
143
|
+
objectId?: Long | undefined;
|
|
144
|
+
causerType?: string | undefined;
|
|
145
|
+
causerId?: Long | undefined;
|
|
146
|
+
dataHash?: string | undefined;
|
|
147
|
+
ip?: string | undefined;
|
|
148
|
+
userAgent?: string | undefined;
|
|
149
|
+
properties?: string | undefined;
|
|
150
|
+
createdAt?: Date | undefined;
|
|
151
|
+
updatedAt?: Date | undefined;
|
|
152
|
+
}
|
|
80
153
|
export declare const VerifyRequest: MessageFns<VerifyRequest>;
|
|
81
154
|
export declare const VerifyResponse: MessageFns<VerifyResponse>;
|
|
82
155
|
export declare const Identity: MessageFns<Identity>;
|
|
@@ -87,6 +160,9 @@ export declare const Password: MessageFns<Password>;
|
|
|
87
160
|
export declare const WebhookEvent: MessageFns<WebhookEvent>;
|
|
88
161
|
export declare const WebhookEvent_Logout: MessageFns<WebhookEvent_Logout>;
|
|
89
162
|
export declare const TemporaryAccessToken: MessageFns<TemporaryAccessToken>;
|
|
163
|
+
export declare const AuthenticationStrategy: MessageFns<AuthenticationStrategy>;
|
|
164
|
+
export declare const AuthState: MessageFns<AuthState>;
|
|
165
|
+
export declare const ActivityLog: MessageFns<ActivityLog>;
|
|
90
166
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
91
167
|
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 {} ? {
|
|
92
168
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["../../../src/fatehan/identities/authentication.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["../../../src/fatehan/identities/authentication.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGvD,eAAO,MAAM,eAAe,2BAA2B,CAAC;AAExD,4BAA4B;AAC5B,oBAAY,oBAAoB;IAC9B,0BAA0B,IAAI;IAC9B,GAAG,IAAI;IACP,cAAc,IAAI;IAClB,MAAM,IAAI;IACV,QAAQ,IAAI;IACZ,aAAa,IAAI;IACjB,EAAE,IAAI;IACN,SAAS,IAAI;IACb,IAAI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