onehook-api-client 1.0.39 → 1.0.41
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/README.md +14 -0
- package/dist-cjs/OneHook.js +4 -0
- package/dist-cjs/commands/CheckUsernameAvailabilityCommand.js +21 -0
- package/dist-cjs/commands/SetPasswordCommand.js +21 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +7 -1
- package/dist-cjs/protocols/Aws_restJson1.js +115 -19
- package/dist-cjs/telemetry/index.js +24 -7
- package/dist-es/OneHook.js +4 -0
- package/dist-es/commands/CheckUsernameAvailabilityCommand.js +17 -0
- package/dist-es/commands/SetPasswordCommand.js +17 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +106 -14
- package/dist-es/telemetry/index.js +24 -7
- package/dist-types/OneHook.d.ts +14 -0
- package/dist-types/OneHookClient.d.ts +4 -2
- package/dist-types/commands/CheckUsernameAvailabilityCommand.d.ts +104 -0
- package/dist-types/commands/GetChatProfileCommand.d.ts +0 -5
- package/dist-types/commands/GetInternalProfileCommand.d.ts +1 -1
- package/dist-types/commands/GetMatchingProfileCommand.d.ts +7 -0
- package/dist-types/commands/GetMyProfileCommand.d.ts +7 -5
- package/dist-types/commands/GetPlaceCommand.d.ts +3 -2
- package/dist-types/commands/GetUserByEmailCommand.d.ts +1 -0
- package/dist-types/commands/GetUserCommand.d.ts +1 -0
- package/dist-types/commands/SearchPlacesCommand.d.ts +3 -2
- package/dist-types/commands/SetPasswordCommand.d.ts +107 -0
- package/dist-types/commands/UpsertChatProfileCommand.d.ts +0 -5
- package/dist-types/commands/UpsertMatchingProfileCommand.d.ts +7 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +106 -35
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/telemetry/index.d.ts +12 -2
- package/package.json +1 -1
- package/telemetry/TelemetryCatalog.kt +18 -10
- package/telemetry/TelemetryCatalog.swift +25 -10
- package/telemetry/telemetry-catalog.json +151 -14
|
@@ -27,8 +27,9 @@ declare const GetPlaceCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Resolves a `placeId` from SearchPlaces to coordinates and the IANA time zone
|
|
31
|
-
* sends as `
|
|
30
|
+
* Resolves a `placeId` from SearchPlaces to coordinates and the IANA time zone for the matching profile's
|
|
31
|
+
* birthplace field. The client sends the result as `birthTimePlace.latitude`, `longitude`, `timeZone` and
|
|
32
|
+
* `placeName` on `PUT /profile/matching`.
|
|
32
33
|
* @example
|
|
33
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
35
|
* ```javascript
|
|
@@ -27,8 +27,9 @@ declare const SearchPlacesCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Birthplace search for the
|
|
31
|
-
* Backed by Amazon Location Service; results carry only a display label and an
|
|
30
|
+
* Birthplace search for the matching profile's optional birthplace field: cities and towns matching `q`
|
|
31
|
+
* (at least 2 characters). Backed by Amazon Location Service; results carry only a display label and an
|
|
32
|
+
* opaque `placeId`.
|
|
32
33
|
* @example
|
|
33
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
35
|
* ```javascript
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
+
import { SetPasswordRequest, SetPasswordResponse } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link SetPasswordCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface SetPasswordCommandInput extends SetPasswordRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link SetPasswordCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface SetPasswordCommandOutput extends SetPasswordResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const SetPasswordCommand_base: {
|
|
25
|
+
new (input: SetPasswordCommandInput): import("@smithy/smithy-client").CommandImpl<SetPasswordCommandInput, SetPasswordCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: SetPasswordCommandInput): import("@smithy/smithy-client").CommandImpl<SetPasswordCommandInput, SetPasswordCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Sets the caller's first password, so they can also sign in with phone, email or username plus
|
|
31
|
+
* password. Sign-up never gives a member a password they know, so no current password exists to ask
|
|
32
|
+
* for. Allowed only while the member has never chosen one: after that it answers 409
|
|
33
|
+
* `PASSWORD_ALREADY_SET` and the client changes it with Cognito ChangePassword, which requires the old
|
|
34
|
+
* one. The password must meet the pool policy (at least 12 characters and a symbol), otherwise 400.
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { OneHookClient, SetPasswordCommand } from "onehook-api-client"; // ES Modules import
|
|
39
|
+
* // const { OneHookClient, SetPasswordCommand } = require("onehook-api-client"); // CommonJS import
|
|
40
|
+
* const client = new OneHookClient(config);
|
|
41
|
+
* const input = { // SetPasswordRequest
|
|
42
|
+
* password: "STRING_VALUE", // required
|
|
43
|
+
* };
|
|
44
|
+
* const command = new SetPasswordCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // SetPasswordResponse
|
|
47
|
+
* // status: "STRING_VALUE", // required
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param SetPasswordCommandInput - {@link SetPasswordCommandInput}
|
|
53
|
+
* @returns {@link SetPasswordCommandOutput}
|
|
54
|
+
* @see {@link SetPasswordCommandInput} for command's `input` shape.
|
|
55
|
+
* @see {@link SetPasswordCommandOutput} for command's `response` shape.
|
|
56
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link BadRequestError} (client fault)
|
|
59
|
+
* 400: the request is malformed or fails validation (code `BAD_REQUEST`, or a more specific one).
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ConflictError} (client fault)
|
|
62
|
+
* 409: the request conflicts with the current state (code `CONFLICT`, or a more specific one such
|
|
63
|
+
* as `NOT_READY` or `MATCHING_ERASING`).
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link InternalServerError} (server fault)
|
|
66
|
+
* 500: an unexpected failure (code `INTERNAL_ERROR`).
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link UnauthorizedError} (client fault)
|
|
69
|
+
* 401: no valid session for the route (code `UNAUTHORIZED`, or `INVALID_SESSION` from Matching).
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
72
|
+
* 403: the caller may not do this (code `FORBIDDEN`, or a more specific one such as Matching's
|
|
73
|
+
* `MATCHING_OFF`, `DISCOVERY_PAUSED` or `PREMIUM_REQUIRED`). Shared by every service model.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link TooManyRequestsError} (client fault)
|
|
76
|
+
* 429: a rate limit or daily quota is spent (for example `REPORT_LIMIT`, `RATE_LIMIT_EXCEEDED`,
|
|
77
|
+
* `ROSE_LIMIT_REACHED`, or `TOO_MANY_REQUESTS` from API Gateway throttling). Shared by every service
|
|
78
|
+
* model.
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link BadGatewayError} (server fault)
|
|
81
|
+
* 502: an upstream failed: API Gateway could not use the Lambda's answer, the identity provider
|
|
82
|
+
* (Cognito) failed (`BAD_GATEWAY`), or a downstream write failed after this service saved its own change
|
|
83
|
+
* (`PROPAGATION_FAILED`, retrying the same request is safe).
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ServiceUnavailableError} (server fault)
|
|
86
|
+
* 503: a dependency is unavailable; retry later (`retryable` is true). Codes include
|
|
87
|
+
* `SERVICE_UNAVAILABLE`, `DATABASE_UNAVAILABLE` and `VIEW_PASS_UNAVAILABLE`.
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link OneHookServiceException}
|
|
90
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
91
|
+
*
|
|
92
|
+
*
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
export declare class SetPasswordCommand extends SetPasswordCommand_base {
|
|
96
|
+
/** @internal type navigation helper, not in runtime. */
|
|
97
|
+
protected static __types: {
|
|
98
|
+
api: {
|
|
99
|
+
input: SetPasswordRequest;
|
|
100
|
+
output: SetPasswordResponse;
|
|
101
|
+
};
|
|
102
|
+
sdk: {
|
|
103
|
+
input: SetPasswordCommandInput;
|
|
104
|
+
output: SetPasswordCommandOutput;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
}
|
|
@@ -40,11 +40,6 @@ declare const UpsertChatProfileCommand_base: {
|
|
|
40
40
|
* avatarKey: "STRING_VALUE",
|
|
41
41
|
* birthDetails: { // BirthDetails
|
|
42
42
|
* date: "STRING_VALUE",
|
|
43
|
-
* time: "STRING_VALUE",
|
|
44
|
-
* timeZone: "STRING_VALUE",
|
|
45
|
-
* latitude: Number("double"),
|
|
46
|
-
* longitude: Number("double"),
|
|
47
|
-
* placeName: "STRING_VALUE",
|
|
48
43
|
* provisional: true || false,
|
|
49
44
|
* },
|
|
50
45
|
* };
|
|
@@ -37,6 +37,13 @@ declare const UpsertMatchingProfileCommand_base: {
|
|
|
37
37
|
* // const { OneHookClient, UpsertMatchingProfileCommand } = require("onehook-api-client"); // CommonJS import
|
|
38
38
|
* const client = new OneHookClient(config);
|
|
39
39
|
* const input = { // MatchingProfileUpdateRequest
|
|
40
|
+
* birthTimePlace: { // BirthTimePlace
|
|
41
|
+
* time: "STRING_VALUE",
|
|
42
|
+
* timeZone: "STRING_VALUE",
|
|
43
|
+
* latitude: Number("double"),
|
|
44
|
+
* longitude: Number("double"),
|
|
45
|
+
* placeName: "STRING_VALUE",
|
|
46
|
+
* },
|
|
40
47
|
* bio: "STRING_VALUE",
|
|
41
48
|
* gender: "STRING_VALUE",
|
|
42
49
|
* interestedIn: [ // StringList
|
|
@@ -21,6 +21,7 @@ export * from "./RevokeDeviceCommand";
|
|
|
21
21
|
export * from "./RevokeHistoryWrapCommand";
|
|
22
22
|
export * from "./UpdateChatSettingsCommand";
|
|
23
23
|
export * from "./AuthSocialCommand";
|
|
24
|
+
export * from "./CheckUsernameAvailabilityCommand";
|
|
24
25
|
export * from "./CreateAdminInviteCommand";
|
|
25
26
|
export * from "./GenerateInviteCommand";
|
|
26
27
|
export * from "./GetAccountStateCommand";
|
|
@@ -40,6 +41,7 @@ export * from "./RequestPhoneUpdateOtpCommand";
|
|
|
40
41
|
export * from "./RevokeUserAccessCommand";
|
|
41
42
|
export * from "./SendAdminLinkOtpCommand";
|
|
42
43
|
export * from "./SetAccountStateCommand";
|
|
44
|
+
export * from "./SetPasswordCommand";
|
|
43
45
|
export * from "./SetPreservationHoldCommand";
|
|
44
46
|
export * from "./UnlinkSocialCommand";
|
|
45
47
|
export * from "./UpdateEntitlementsCommand";
|
|
@@ -1369,6 +1369,42 @@ export interface AuthSocialResponse {
|
|
|
1369
1369
|
userId?: string | undefined;
|
|
1370
1370
|
isNewUser?: boolean | undefined;
|
|
1371
1371
|
}
|
|
1372
|
+
/**
|
|
1373
|
+
* @public
|
|
1374
|
+
*/
|
|
1375
|
+
export interface CheckUsernameAvailabilityRequest {
|
|
1376
|
+
username: string | undefined;
|
|
1377
|
+
}
|
|
1378
|
+
/**
|
|
1379
|
+
* @public
|
|
1380
|
+
* @enum
|
|
1381
|
+
*/
|
|
1382
|
+
export declare const UsernameAvailability: {
|
|
1383
|
+
readonly AVAILABLE: "AVAILABLE";
|
|
1384
|
+
readonly CURRENT: "CURRENT";
|
|
1385
|
+
readonly INVALID: "INVALID";
|
|
1386
|
+
readonly TAKEN: "TAKEN";
|
|
1387
|
+
};
|
|
1388
|
+
/**
|
|
1389
|
+
* @public
|
|
1390
|
+
*/
|
|
1391
|
+
export type UsernameAvailability = typeof UsernameAvailability[keyof typeof UsernameAvailability];
|
|
1392
|
+
/**
|
|
1393
|
+
* @public
|
|
1394
|
+
*/
|
|
1395
|
+
export interface CheckUsernameAvailabilityResponse {
|
|
1396
|
+
/**
|
|
1397
|
+
* The handle that was checked, as submitted.
|
|
1398
|
+
* @public
|
|
1399
|
+
*/
|
|
1400
|
+
username: string | undefined;
|
|
1401
|
+
status: UsernameAvailability | undefined;
|
|
1402
|
+
/**
|
|
1403
|
+
* Why an `INVALID` handle cannot be used. Absent for every other status.
|
|
1404
|
+
* @public
|
|
1405
|
+
*/
|
|
1406
|
+
reason?: string | undefined;
|
|
1407
|
+
}
|
|
1372
1408
|
/**
|
|
1373
1409
|
* @public
|
|
1374
1410
|
*/
|
|
@@ -1591,6 +1627,11 @@ export interface UserResponse {
|
|
|
1591
1627
|
googleEmail?: string | undefined;
|
|
1592
1628
|
userState?: string | undefined;
|
|
1593
1629
|
username?: string | undefined;
|
|
1630
|
+
/**
|
|
1631
|
+
* True once the member has chosen a password (SetPassword, or linking an email with one).
|
|
1632
|
+
* @public
|
|
1633
|
+
*/
|
|
1634
|
+
hasPassword?: boolean | undefined;
|
|
1594
1635
|
}
|
|
1595
1636
|
/**
|
|
1596
1637
|
* @public
|
|
@@ -1782,6 +1823,18 @@ export interface SetAccountStateResponse {
|
|
|
1782
1823
|
until?: number | undefined;
|
|
1783
1824
|
version: number | undefined;
|
|
1784
1825
|
}
|
|
1826
|
+
/**
|
|
1827
|
+
* @public
|
|
1828
|
+
*/
|
|
1829
|
+
export interface SetPasswordRequest {
|
|
1830
|
+
password: string | undefined;
|
|
1831
|
+
}
|
|
1832
|
+
/**
|
|
1833
|
+
* @public
|
|
1834
|
+
*/
|
|
1835
|
+
export interface SetPasswordResponse {
|
|
1836
|
+
status: string | undefined;
|
|
1837
|
+
}
|
|
1785
1838
|
/**
|
|
1786
1839
|
* @public
|
|
1787
1840
|
*/
|
|
@@ -3116,43 +3169,16 @@ export interface GetBirthDateStatusResponse {
|
|
|
3116
3169
|
lastCorrectedBy?: string | undefined;
|
|
3117
3170
|
}
|
|
3118
3171
|
/**
|
|
3119
|
-
*
|
|
3120
|
-
* (`time` + `timeZone`: Moon nakshatra, hour pillar, Zi Wei palaces; `latitude` + `longitude`:
|
|
3121
|
-
* Ascendant, Arabic Parts, Hellenistic sect). Never shown to other members.
|
|
3172
|
+
* The chat profile's birth date. Age is derived from it. Never shown to other members.
|
|
3122
3173
|
* @public
|
|
3123
3174
|
*/
|
|
3124
3175
|
export interface BirthDetails {
|
|
3125
3176
|
/**
|
|
3126
3177
|
* Local birth date (day, month and year), `yyyy-MM-dd`. Must give an age of 18 to 120.
|
|
3127
|
-
*
|
|
3178
|
+
* Required when the chat profile is created; immutable afterwards.
|
|
3128
3179
|
* @public
|
|
3129
3180
|
*/
|
|
3130
3181
|
date?: string | undefined;
|
|
3131
|
-
/**
|
|
3132
|
-
* Local birth time, `HH:mm` (24h). Requires `timeZone`.
|
|
3133
|
-
* @public
|
|
3134
|
-
*/
|
|
3135
|
-
time?: string | undefined;
|
|
3136
|
-
/**
|
|
3137
|
-
* IANA time zone of the birthplace, e.g. `Asia/Kolkata`.
|
|
3138
|
-
* @public
|
|
3139
|
-
*/
|
|
3140
|
-
timeZone?: string | undefined;
|
|
3141
|
-
/**
|
|
3142
|
-
* Birthplace latitude in degrees (north positive). Send together with `longitude`.
|
|
3143
|
-
* @public
|
|
3144
|
-
*/
|
|
3145
|
-
latitude?: number | undefined;
|
|
3146
|
-
/**
|
|
3147
|
-
* Birthplace longitude in degrees (east positive). Send together with `latitude`.
|
|
3148
|
-
* @public
|
|
3149
|
-
*/
|
|
3150
|
-
longitude?: number | undefined;
|
|
3151
|
-
/**
|
|
3152
|
-
* Display label of the chosen birthplace (from `GET /profile/places`). Needs latitude/longitude.
|
|
3153
|
-
* @public
|
|
3154
|
-
*/
|
|
3155
|
-
placeName?: string | undefined;
|
|
3156
3182
|
/**
|
|
3157
3183
|
* Server-set, ignored on input. True when `date` is a placeholder added for a profile created
|
|
3158
3184
|
* before the birth date was compulsory. The member may replace a provisional date ONCE with
|
|
@@ -3179,9 +3205,7 @@ export interface ChatProfile {
|
|
|
3179
3205
|
*/
|
|
3180
3206
|
age?: number | undefined;
|
|
3181
3207
|
/**
|
|
3182
|
-
*
|
|
3183
|
-
* (`time` + `timeZone`: Moon nakshatra, hour pillar, Zi Wei palaces; `latitude` + `longitude`:
|
|
3184
|
-
* Ascendant, Arabic Parts, Hellenistic sect). Never shown to other members.
|
|
3208
|
+
* The chat profile's birth date. Age is derived from it. Never shown to other members.
|
|
3185
3209
|
* @public
|
|
3186
3210
|
*/
|
|
3187
3211
|
birthDetails?: BirthDetails | undefined;
|
|
@@ -3320,9 +3344,44 @@ export interface LivenessStatusResponse {
|
|
|
3320
3344
|
*/
|
|
3321
3345
|
status: string | undefined;
|
|
3322
3346
|
}
|
|
3347
|
+
/**
|
|
3348
|
+
* The matching profile's optional birth time and place. They only refine traditional compatibility:
|
|
3349
|
+
* `time` + `timeZone` unlock the Moon nakshatra, hour pillar and Zi Wei palaces; `latitude` +
|
|
3350
|
+
* `longitude` unlock the Ascendant, Arabic Parts and Hellenistic sect. Never shown to other members.
|
|
3351
|
+
* Erased with the matching profile (matching turned off, draft expiry, account deletion).
|
|
3352
|
+
* @public
|
|
3353
|
+
*/
|
|
3354
|
+
export interface BirthTimePlace {
|
|
3355
|
+
/**
|
|
3356
|
+
* Local birth time, `HH:mm` (24h). Requires `timeZone`.
|
|
3357
|
+
* @public
|
|
3358
|
+
*/
|
|
3359
|
+
time?: string | undefined;
|
|
3360
|
+
/**
|
|
3361
|
+
* IANA time zone of the birthplace, e.g. `Asia/Kolkata`.
|
|
3362
|
+
* @public
|
|
3363
|
+
*/
|
|
3364
|
+
timeZone?: string | undefined;
|
|
3365
|
+
/**
|
|
3366
|
+
* Birthplace latitude in degrees (north positive). Send together with `longitude`. Rounded to 2 decimals.
|
|
3367
|
+
* @public
|
|
3368
|
+
*/
|
|
3369
|
+
latitude?: number | undefined;
|
|
3370
|
+
/**
|
|
3371
|
+
* Birthplace longitude in degrees (east positive). Send together with `latitude`. Rounded to 2 decimals.
|
|
3372
|
+
* @public
|
|
3373
|
+
*/
|
|
3374
|
+
longitude?: number | undefined;
|
|
3375
|
+
/**
|
|
3376
|
+
* Display label of the chosen birthplace (from GetPlace). Needs latitude/longitude; truncated to 200
|
|
3377
|
+
* characters.
|
|
3378
|
+
* @public
|
|
3379
|
+
*/
|
|
3380
|
+
placeName?: string | undefined;
|
|
3381
|
+
}
|
|
3323
3382
|
/**
|
|
3324
3383
|
* A matching profile. Another member's view also carries their `displayName` and `age` from the
|
|
3325
|
-
* chat profile, and never `
|
|
3384
|
+
* chat profile, and never `birthTimePlace`.
|
|
3326
3385
|
* @public
|
|
3327
3386
|
*/
|
|
3328
3387
|
export interface MatchingProfile {
|
|
@@ -3347,6 +3406,11 @@ export interface MatchingProfile {
|
|
|
3347
3406
|
* @public
|
|
3348
3407
|
*/
|
|
3349
3408
|
draftExpiresAt?: number | undefined;
|
|
3409
|
+
/**
|
|
3410
|
+
* Owner only: the optional birth time and place. Absent when none is stored.
|
|
3411
|
+
* @public
|
|
3412
|
+
*/
|
|
3413
|
+
birthTimePlace?: BirthTimePlace | undefined;
|
|
3350
3414
|
displayName?: string | undefined;
|
|
3351
3415
|
bio?: string | undefined;
|
|
3352
3416
|
/**
|
|
@@ -3525,8 +3589,8 @@ export interface ChatProfileUpdateRequest {
|
|
|
3525
3589
|
*/
|
|
3526
3590
|
avatarKey?: string | undefined;
|
|
3527
3591
|
/**
|
|
3528
|
-
*
|
|
3529
|
-
* NEVER be changed afterwards.
|
|
3592
|
+
* The birth date. `date` is REQUIRED when the chat profile is first created (18 or over) and can
|
|
3593
|
+
* NEVER be changed afterwards. Birth time and place belong to the matching profile (`birthTimePlace`).
|
|
3530
3594
|
* @public
|
|
3531
3595
|
*/
|
|
3532
3596
|
birthDetails?: BirthDetails | undefined;
|
|
@@ -3536,6 +3600,13 @@ export interface ChatProfileUpdateRequest {
|
|
|
3536
3600
|
* @public
|
|
3537
3601
|
*/
|
|
3538
3602
|
export interface MatchingProfileUpdateRequest {
|
|
3603
|
+
/**
|
|
3604
|
+
* Optional birth time and place for traditional compatibility. Omitted (null): keep what is stored.
|
|
3605
|
+
* Sent: replaces the stored value as a whole (never field-merged). Sent with every field empty
|
|
3606
|
+
* (`\{\}`): clears it. Validation errors are 400 with messages prefixed `birthTimePlace.`.
|
|
3607
|
+
* @public
|
|
3608
|
+
*/
|
|
3609
|
+
birthTimePlace?: BirthTimePlace | undefined;
|
|
3539
3610
|
bio?: string | undefined;
|
|
3540
3611
|
gender?: string | undefined;
|
|
3541
3612
|
interestedIn?: (string)[] | undefined;
|
|
@@ -2,6 +2,7 @@ import { AcceptHookRequestCommandInput, AcceptHookRequestCommandOutput } from ".
|
|
|
2
2
|
import { AuthSocialCommandInput, AuthSocialCommandOutput } from "../commands/AuthSocialCommand";
|
|
3
3
|
import { BlockUserCommandInput, BlockUserCommandOutput } from "../commands/BlockUserCommand";
|
|
4
4
|
import { CancelHookRequestCommandInput, CancelHookRequestCommandOutput } from "../commands/CancelHookRequestCommand";
|
|
5
|
+
import { CheckUsernameAvailabilityCommandInput, CheckUsernameAvailabilityCommandOutput } from "../commands/CheckUsernameAvailabilityCommand";
|
|
5
6
|
import { ClearTierOverrideCommandInput, ClearTierOverrideCommandOutput } from "../commands/ClearTierOverrideCommand";
|
|
6
7
|
import { CompleteLivenessSessionCommandInput, CompleteLivenessSessionCommandOutput } from "../commands/CompleteLivenessSessionCommand";
|
|
7
8
|
import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from "../commands/CompleteOnboardingCommand";
|
|
@@ -92,6 +93,7 @@ import { SearchPlacesCommandInput, SearchPlacesCommandOutput } from "../commands
|
|
|
92
93
|
import { SendAdminLinkOtpCommandInput, SendAdminLinkOtpCommandOutput } from "../commands/SendAdminLinkOtpCommand";
|
|
93
94
|
import { SendHookRequestCommandInput, SendHookRequestCommandOutput } from "../commands/SendHookRequestCommand";
|
|
94
95
|
import { SetAccountStateCommandInput, SetAccountStateCommandOutput } from "../commands/SetAccountStateCommand";
|
|
96
|
+
import { SetPasswordCommandInput, SetPasswordCommandOutput } from "../commands/SetPasswordCommand";
|
|
95
97
|
import { SetPreservationHoldCommandInput, SetPreservationHoldCommandOutput } from "../commands/SetPreservationHoldCommand";
|
|
96
98
|
import { SetTierOverrideCommandInput, SetTierOverrideCommandOutput } from "../commands/SetTierOverrideCommand";
|
|
97
99
|
import { SimulateScoringPolicyCommandInput, SimulateScoringPolicyCommandOutput } from "../commands/SimulateScoringPolicyCommand";
|
|
@@ -205,6 +207,10 @@ export declare const se_UpdateChatSettingsCommand: (input: UpdateChatSettingsCom
|
|
|
205
207
|
* serializeAws_restJson1AuthSocialCommand
|
|
206
208
|
*/
|
|
207
209
|
export declare const se_AuthSocialCommand: (input: AuthSocialCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
210
|
+
/**
|
|
211
|
+
* serializeAws_restJson1CheckUsernameAvailabilityCommand
|
|
212
|
+
*/
|
|
213
|
+
export declare const se_CheckUsernameAvailabilityCommand: (input: CheckUsernameAvailabilityCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
208
214
|
/**
|
|
209
215
|
* serializeAws_restJson1CreateAdminInviteCommand
|
|
210
216
|
*/
|
|
@@ -281,6 +287,10 @@ export declare const se_SendAdminLinkOtpCommand: (input: SendAdminLinkOtpCommand
|
|
|
281
287
|
* serializeAws_restJson1SetAccountStateCommand
|
|
282
288
|
*/
|
|
283
289
|
export declare const se_SetAccountStateCommand: (input: SetAccountStateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
290
|
+
/**
|
|
291
|
+
* serializeAws_restJson1SetPasswordCommand
|
|
292
|
+
*/
|
|
293
|
+
export declare const se_SetPasswordCommand: (input: SetPasswordCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
284
294
|
/**
|
|
285
295
|
* serializeAws_restJson1SetPreservationHoldCommand
|
|
286
296
|
*/
|
|
@@ -657,6 +667,10 @@ export declare const de_UpdateChatSettingsCommand: (output: __HttpResponse, cont
|
|
|
657
667
|
* deserializeAws_restJson1AuthSocialCommand
|
|
658
668
|
*/
|
|
659
669
|
export declare const de_AuthSocialCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AuthSocialCommandOutput>;
|
|
670
|
+
/**
|
|
671
|
+
* deserializeAws_restJson1CheckUsernameAvailabilityCommand
|
|
672
|
+
*/
|
|
673
|
+
export declare const de_CheckUsernameAvailabilityCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CheckUsernameAvailabilityCommandOutput>;
|
|
660
674
|
/**
|
|
661
675
|
* deserializeAws_restJson1CreateAdminInviteCommand
|
|
662
676
|
*/
|
|
@@ -733,6 +747,10 @@ export declare const de_SendAdminLinkOtpCommand: (output: __HttpResponse, contex
|
|
|
733
747
|
* deserializeAws_restJson1SetAccountStateCommand
|
|
734
748
|
*/
|
|
735
749
|
export declare const de_SetAccountStateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SetAccountStateCommandOutput>;
|
|
750
|
+
/**
|
|
751
|
+
* deserializeAws_restJson1SetPasswordCommand
|
|
752
|
+
*/
|
|
753
|
+
export declare const de_SetPasswordCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SetPasswordCommandOutput>;
|
|
736
754
|
/**
|
|
737
755
|
* deserializeAws_restJson1SetPreservationHoldCommand
|
|
738
756
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const TELEMETRY_CATALOG_VERSION = "1.
|
|
2
|
-
export declare const TELEMETRY_CATALOG_HASH = "
|
|
1
|
+
export declare const TELEMETRY_CATALOG_VERSION = "1.16.0";
|
|
2
|
+
export declare const TELEMETRY_CATALOG_HASH = "3d27632e55e2d44f";
|
|
3
3
|
/** Every signal type the ingest accepts. */
|
|
4
4
|
export declare const SignalType: {
|
|
5
5
|
readonly SCREEN_VIEW: "screen_view";
|
|
@@ -40,6 +40,7 @@ export declare const Screen: {
|
|
|
40
40
|
readonly ADMISSIONS_STATUS: "ADMISSIONS_STATUS";
|
|
41
41
|
readonly ONBOARDING: "ONBOARDING";
|
|
42
42
|
readonly DISCOVER: "DISCOVER";
|
|
43
|
+
readonly MATCHING_INTRO: "MATCHING_INTRO";
|
|
43
44
|
readonly LIKE_COMPOSER: "LIKE_COMPOSER";
|
|
44
45
|
readonly LIKES_YOU: "LIKES_YOU";
|
|
45
46
|
readonly CHAT: "CHAT";
|
|
@@ -69,6 +70,7 @@ export declare const ViewableScreen: {
|
|
|
69
70
|
readonly ADMISSIONS_STATUS: "ADMISSIONS_STATUS";
|
|
70
71
|
readonly ONBOARDING: "ONBOARDING";
|
|
71
72
|
readonly DISCOVER: "DISCOVER";
|
|
73
|
+
readonly MATCHING_INTRO: "MATCHING_INTRO";
|
|
72
74
|
readonly LIKE_COMPOSER: "LIKE_COMPOSER";
|
|
73
75
|
readonly LIKES_YOU: "LIKES_YOU";
|
|
74
76
|
readonly CHAT: "CHAT";
|
|
@@ -94,6 +96,7 @@ export declare const TabScreen: {
|
|
|
94
96
|
readonly LIKES_YOU: "LIKES_YOU";
|
|
95
97
|
readonly CHAT: "CHAT";
|
|
96
98
|
readonly PROFILE: "PROFILE";
|
|
99
|
+
readonly MATCHING_INTRO: "MATCHING_INTRO";
|
|
97
100
|
};
|
|
98
101
|
export type TabScreen = (typeof TabScreen)[keyof typeof TabScreen];
|
|
99
102
|
/** The standard verbs for a UI interaction. Every platform uses these and only these. */
|
|
@@ -288,6 +291,9 @@ export declare const UiElement: {
|
|
|
288
291
|
readonly ADMISSIONS_STATUS_WITHDRAW: "admissions_status.withdraw";
|
|
289
292
|
readonly ADMISSIONS_STATUS_TRAINING_OPT_OUT: "admissions_status.training_opt_out";
|
|
290
293
|
readonly ONBOARDING_NEXT: "onboarding.next";
|
|
294
|
+
readonly ONBOARDING_STEP_SKIP: "onboarding.step_skip";
|
|
295
|
+
readonly ONBOARDING_SOCIAL_LINK: "onboarding.social_link";
|
|
296
|
+
readonly ONBOARDING_RECOVERY_SETUP: "onboarding.recovery_setup";
|
|
291
297
|
readonly ONBOARDING_BACK: "onboarding.back";
|
|
292
298
|
readonly ONBOARDING_FINISH: "onboarding.finish";
|
|
293
299
|
readonly ONBOARDING_SKIP_SIGN_OUT: "onboarding.skip_sign_out";
|
|
@@ -300,6 +306,8 @@ export declare const UiElement: {
|
|
|
300
306
|
readonly ONBOARDING_VOICE_ADD: "onboarding.voice_add";
|
|
301
307
|
readonly ONBOARDING_VOICE_REMOVE: "onboarding.voice_remove";
|
|
302
308
|
readonly ONBOARDING_CHOICE_SELECT: "onboarding.choice_select";
|
|
309
|
+
readonly MATCHING_INTRO_TURN_ON: "matching_intro.turn_on";
|
|
310
|
+
readonly MATCHING_INTRO_SHOULD_I_JOIN: "matching_intro.should_i_join";
|
|
303
311
|
readonly DISCOVER_PASS_BUTTON: "discover.pass_button";
|
|
304
312
|
readonly DISCOVER_LIKE_BUTTON: "discover.like_button";
|
|
305
313
|
readonly DISCOVER_ROSE_BUTTON: "discover.rose_button";
|
|
@@ -415,6 +423,8 @@ export declare const UiElement: {
|
|
|
415
423
|
readonly NOTIFICATIONS_ITEM_OPEN: "notifications.item_open";
|
|
416
424
|
readonly NOTIFICATIONS_ITEM_DISMISS: "notifications.item_dismiss";
|
|
417
425
|
readonly PROFILE_EDIT_OPEN: "profile.edit_open";
|
|
426
|
+
readonly PROFILE_MATCHING_OPEN: "profile.matching_open";
|
|
427
|
+
readonly PROFILE_RECOVERY_OPEN: "profile.recovery_open";
|
|
418
428
|
readonly PROFILE_PREVIEW_OPEN: "profile.preview_open";
|
|
419
429
|
readonly PROFILE_PREFERENCES_OPEN: "profile.preferences_open";
|
|
420
430
|
readonly PROFILE_SETTINGS_OPEN: "profile.settings_open";
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// GENERATED FILE - DO NOT EDIT.
|
|
2
|
-
// telemetry-integrity: sha256
|
|
2
|
+
// telemetry-integrity: sha256 de51f3327b79554e206d0d10ddda7f28c8da14b5226c1346c68de8d9630297a8
|
|
3
3
|
// Source of truth: OneHookBackend/packages/telemetry/src/catalog.ts
|
|
4
4
|
// Regenerate: (OneHookBackend) npm run telemetry:generate && npm run telemetry:sync
|
|
5
|
-
// Catalog version 1.
|
|
5
|
+
// Catalog version 1.16.0, hash 3d27632e55e2d44f.
|
|
6
6
|
//
|
|
7
7
|
// HARD RULE: every user interaction MUST emit ui_interaction with an id from THIS file, and
|
|
8
8
|
// ids are controlled by the backend. Read TELEMETRY_CONTRACT.txt (printed by every build).
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
package club.onehook.telemetry
|
|
13
13
|
|
|
14
14
|
object TelemetryCatalog {
|
|
15
|
-
const val VERSION = "1.
|
|
16
|
-
const val HASH = "
|
|
15
|
+
const val VERSION = "1.16.0"
|
|
16
|
+
const val HASH = "3d27632e55e2d44f"
|
|
17
17
|
/** The only allowed `telemetry-exempt: <category>: <reason>` categories (see the catalog). */
|
|
18
18
|
val EXEMPT_CATEGORIES: List<String> = listOf("duplicate", "backdrop", "gesture", "continuous", "disabled")
|
|
19
19
|
}
|
|
@@ -66,6 +66,7 @@ enum class TelemetryScreen(val wire: String, val viewable: Boolean) {
|
|
|
66
66
|
ADMISSIONS_STATUS("ADMISSIONS_STATUS", true),
|
|
67
67
|
ONBOARDING("ONBOARDING", true),
|
|
68
68
|
DISCOVER("DISCOVER", true),
|
|
69
|
+
MATCHING_INTRO("MATCHING_INTRO", true),
|
|
69
70
|
LIKE_COMPOSER("LIKE_COMPOSER", true),
|
|
70
71
|
LIKES_YOU("LIKES_YOU", true),
|
|
71
72
|
CHAT("CHAT", true),
|
|
@@ -88,7 +89,7 @@ enum class TelemetryScreen(val wire: String, val viewable: Boolean) {
|
|
|
88
89
|
companion object {
|
|
89
90
|
fun fromWire(wire: String): TelemetryScreen? = entries.firstOrNull { it.wire == wire }
|
|
90
91
|
/** Main-shell tabs, in order. */
|
|
91
|
-
val TABS: List<TelemetryScreen> = listOf(DISCOVER, LIKES_YOU, CHAT, PROFILE)
|
|
92
|
+
val TABS: List<TelemetryScreen> = listOf(DISCOVER, LIKES_YOU, CHAT, PROFILE, MATCHING_INTRO)
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
|
|
@@ -295,7 +296,7 @@ enum class UiElement(
|
|
|
295
296
|
/** Platforms this element is in scope for (parity contract; see PLATFORM_GAPS in the catalog). */
|
|
296
297
|
val platforms: List<TelemetryPlatform>,
|
|
297
298
|
) {
|
|
298
|
-
NAV_TAB_SELECT("nav.tab_select", TelemetryScreen.NAV, UiElementKind.TAB, listOf(UiAction.SELECT), listOf("DISCOVER", "LIKES_YOU", "CHAT", "PROFILE"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
299
|
+
NAV_TAB_SELECT("nav.tab_select", TelemetryScreen.NAV, UiElementKind.TAB, listOf(UiAction.SELECT), listOf("DISCOVER", "LIKES_YOU", "CHAT", "PROFILE", "MATCHING_INTRO"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
299
300
|
NAV_SEARCH_OPEN("nav.search_open", TelemetryScreen.NAV, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.WEB)),
|
|
300
301
|
NAV_MENU_OPEN("nav.menu_open", TelemetryScreen.NAV, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.WEB)),
|
|
301
302
|
NAV_BACK("nav.back", TelemetryScreen.NAV, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB)),
|
|
@@ -321,7 +322,7 @@ enum class UiElement(
|
|
|
321
322
|
LOGIN_GOOGLE("login.google", TelemetryScreen.LOGIN, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
322
323
|
LOGIN_APPLE("login.apple", TelemetryScreen.LOGIN, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS)),
|
|
323
324
|
LOGIN_PASSKEY("login.passkey", TelemetryScreen.LOGIN, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.IOS)),
|
|
324
|
-
LOGIN_IDENTIFIER_MODE("login.identifier_mode", TelemetryScreen.LOGIN, UiElementKind.TOGGLE, listOf(UiAction.TOGGLE), listOf("phone", "email"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
325
|
+
LOGIN_IDENTIFIER_MODE("login.identifier_mode", TelemetryScreen.LOGIN, UiElementKind.TOGGLE, listOf(UiAction.TOGGLE), listOf("phone", "email", "username"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
325
326
|
LOGIN_PASSWORD_MODE("login.password_mode", TelemetryScreen.LOGIN, UiElementKind.TOGGLE, listOf(UiAction.TOGGLE), listOf("password", "otp"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
326
327
|
LOGIN_FORGOT_PASSWORD("login.forgot_password", TelemetryScreen.LOGIN, UiElementKind.LINK, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
327
328
|
LOGIN_RESEND_CODE("login.resend_code", TelemetryScreen.LOGIN, UiElementKind.LINK, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS)),
|
|
@@ -349,8 +350,11 @@ enum class UiElement(
|
|
|
349
350
|
ADMISSIONS_STATUS_CONTINUE_INVITE("admissions_status.continue_invite", TelemetryScreen.ADMISSIONS_STATUS, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
350
351
|
ADMISSIONS_STATUS_WITHDRAW("admissions_status.withdraw", TelemetryScreen.ADMISSIONS_STATUS, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
351
352
|
ADMISSIONS_STATUS_TRAINING_OPT_OUT("admissions_status.training_opt_out", TelemetryScreen.ADMISSIONS_STATUS, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
352
|
-
ONBOARDING_NEXT("onboarding.next", TelemetryScreen.ONBOARDING, UiElementKind.BUTTON, listOf(UiAction.SUBMIT), listOf("basics", "photos", "media", "prompts", "details"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS)),
|
|
353
|
-
|
|
353
|
+
ONBOARDING_NEXT("onboarding.next", TelemetryScreen.ONBOARDING, UiElementKind.BUTTON, listOf(UiAction.SUBMIT), listOf("basics", "photos", "media", "prompts", "details", "username", "password", "social", "recovery"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
354
|
+
ONBOARDING_STEP_SKIP("onboarding.step_skip", TelemetryScreen.ONBOARDING, UiElementKind.BUTTON, listOf(UiAction.TAP), listOf("password", "social", "recovery"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
355
|
+
ONBOARDING_SOCIAL_LINK("onboarding.social_link", TelemetryScreen.ONBOARDING, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), listOf("apple", "google"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
356
|
+
ONBOARDING_RECOVERY_SETUP("onboarding.recovery_setup", TelemetryScreen.ONBOARDING, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
357
|
+
ONBOARDING_BACK("onboarding.back", TelemetryScreen.ONBOARDING, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
354
358
|
ONBOARDING_FINISH("onboarding.finish", TelemetryScreen.ONBOARDING, UiElementKind.BUTTON, listOf(UiAction.SUBMIT), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
355
359
|
ONBOARDING_SKIP_SIGN_OUT("onboarding.skip_sign_out", TelemetryScreen.ONBOARDING, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
356
360
|
ONBOARDING_SKIP_SIGN_OUT_CONFIRM("onboarding.skip_sign_out_confirm", TelemetryScreen.ONBOARDING, UiElementKind.DIALOG_BUTTON, listOf(UiAction.SUBMIT, UiAction.DISMISS), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
@@ -362,6 +366,8 @@ enum class UiElement(
|
|
|
362
366
|
ONBOARDING_VOICE_ADD("onboarding.voice_add", TelemetryScreen.ONBOARDING, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf()),
|
|
363
367
|
ONBOARDING_VOICE_REMOVE("onboarding.voice_remove", TelemetryScreen.ONBOARDING, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf()),
|
|
364
368
|
ONBOARDING_CHOICE_SELECT("onboarding.choice_select", TelemetryScreen.ONBOARDING, UiElementKind.SEGMENTED, listOf(UiAction.SELECT, UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
369
|
+
MATCHING_INTRO_TURN_ON("matching_intro.turn_on", TelemetryScreen.MATCHING_INTRO, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
370
|
+
MATCHING_INTRO_SHOULD_I_JOIN("matching_intro.should_i_join", TelemetryScreen.MATCHING_INTRO, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
365
371
|
DISCOVER_PASS_BUTTON("discover.pass_button", TelemetryScreen.DISCOVER, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
366
372
|
DISCOVER_LIKE_BUTTON("discover.like_button", TelemetryScreen.DISCOVER, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.ANDROID)),
|
|
367
373
|
DISCOVER_ROSE_BUTTON("discover.rose_button", TelemetryScreen.DISCOVER, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
@@ -458,7 +464,7 @@ enum class UiElement(
|
|
|
458
464
|
CHAT_INTRO_GET_STARTED("chat.intro_get_started", TelemetryScreen.CHAT, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.IOS)),
|
|
459
465
|
CHAT_HISTORY_RECOVER_METHOD("chat.history_recover_method", TelemetryScreen.CHAT, UiElementKind.MENU_ITEM, listOf(UiAction.TAP, UiAction.DISMISS), listOf("device", "qr_scan", "qr_import", "passkey"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
460
466
|
CHAT_HISTORY_RECOVER_STEP("chat.history_recover_step", TelemetryScreen.CHAT, UiElementKind.MENU_ITEM, listOf(UiAction.TAP), listOf("retry", "qr_retry", "done", "reset_open", "cancel"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
461
|
-
CHAT_HISTORY_RESET_CONFIRM("chat.history_reset_confirm", TelemetryScreen.CHAT, UiElementKind.DIALOG_BUTTON, listOf(UiAction.SUBMIT, UiAction.DISMISS), null, listOf(TelemetryPlatform.
|
|
467
|
+
CHAT_HISTORY_RESET_CONFIRM("chat.history_reset_confirm", TelemetryScreen.CHAT, UiElementKind.DIALOG_BUTTON, listOf(UiAction.SUBMIT, UiAction.DISMISS), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
462
468
|
CHAT_SETTINGS_LAST_SEEN_SELECT("chat_settings.last_seen_select", TelemetryScreen.CHAT_SETTINGS, UiElementKind.SEGMENTED, listOf(UiAction.SELECT, UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS)),
|
|
463
469
|
CHAT_SETTINGS_DISAPPEARING_SELECT("chat_settings.disappearing_select", TelemetryScreen.CHAT_SETTINGS, UiElementKind.SEGMENTED, listOf(UiAction.SELECT, UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS)),
|
|
464
470
|
CHAT_SETTINGS_NOTIFICATION_TOGGLE("chat_settings.notification_toggle", TelemetryScreen.CHAT_SETTINGS, UiElementKind.TOGGLE, listOf(UiAction.TOGGLE), listOf("on", "off"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
@@ -477,6 +483,8 @@ enum class UiElement(
|
|
|
477
483
|
NOTIFICATIONS_ITEM_OPEN("notifications.item_open", TelemetryScreen.NOTIFICATIONS, UiElementKind.LIST_ITEM, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.IOS)),
|
|
478
484
|
NOTIFICATIONS_ITEM_DISMISS("notifications.item_dismiss", TelemetryScreen.NOTIFICATIONS, UiElementKind.GESTURE, listOf(UiAction.DISMISS), null, listOf(TelemetryPlatform.IOS)),
|
|
479
485
|
PROFILE_EDIT_OPEN("profile.edit_open", TelemetryScreen.PROFILE, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
486
|
+
PROFILE_MATCHING_OPEN("profile.matching_open", TelemetryScreen.PROFILE, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
487
|
+
PROFILE_RECOVERY_OPEN("profile.recovery_open", TelemetryScreen.PROFILE, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
480
488
|
PROFILE_PREVIEW_OPEN("profile.preview_open", TelemetryScreen.PROFILE, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS)),
|
|
481
489
|
PROFILE_PREFERENCES_OPEN("profile.preferences_open", TelemetryScreen.PROFILE, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
482
490
|
PROFILE_SETTINGS_OPEN("profile.settings_open", TelemetryScreen.PROFILE, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB)),
|