@homespot-sdk/core 0.0.307 → 0.0.311
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/rem/index.d.ts +2 -2
- package/dist/rem/index.d.ts.map +1 -1
- package/dist/rem/index.js +1 -1
- package/dist/rem/index.js.map +1 -1
- package/dist/rem/schemas.gen.d.ts +169 -29
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +174 -37
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +6 -1
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +27 -1
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/transformers.gen.d.ts +2 -1
- package/dist/rem/transformers.gen.d.ts.map +1 -1
- package/dist/rem/transformers.gen.js +18 -0
- package/dist/rem/transformers.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +126 -9
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +321 -37
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +161 -11
- package/dist/rem/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/zod.gen.js
CHANGED
|
@@ -946,6 +946,75 @@ export const zOauthConnectionResponse = z.object({
|
|
|
946
946
|
updatedAt: z.iso.datetime(),
|
|
947
947
|
revokedAt: z.optional(z.iso.datetime()),
|
|
948
948
|
});
|
|
949
|
+
export const zContactId = z.object({
|
|
950
|
+
value: z.optional(z.coerce
|
|
951
|
+
.bigint()
|
|
952
|
+
.min(BigInt('-9223372036854775808'), {
|
|
953
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
954
|
+
})
|
|
955
|
+
.max(BigInt('9223372036854775807'), {
|
|
956
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
957
|
+
})),
|
|
958
|
+
});
|
|
959
|
+
export const zConversationId = z.object({
|
|
960
|
+
value: z.optional(z.uuid()),
|
|
961
|
+
});
|
|
962
|
+
export const zNewContact = z.object({
|
|
963
|
+
contactId: z.optional(zContactId),
|
|
964
|
+
contactName: z.optional(z.string()),
|
|
965
|
+
kind: z.enum(['NEW_CONTACT']),
|
|
966
|
+
});
|
|
967
|
+
export const zNewMessage = z.object({
|
|
968
|
+
contactId: z.optional(zContactId),
|
|
969
|
+
conversationId: z.optional(zConversationId),
|
|
970
|
+
channelType: z.optional(z.enum(['FACEBOOK', 'INSTAGRAM', 'WHATSAPP'])),
|
|
971
|
+
preview: z.optional(z.string()),
|
|
972
|
+
displayName: z.optional(z.string()),
|
|
973
|
+
kind: z.enum(['NEW_MESSAGE']),
|
|
974
|
+
});
|
|
975
|
+
export const zNotificationContent = z.unknown();
|
|
976
|
+
export const zNotificationView = z.object({
|
|
977
|
+
id: z.uuid(),
|
|
978
|
+
seq: z.coerce
|
|
979
|
+
.bigint()
|
|
980
|
+
.min(BigInt('-9223372036854775808'), {
|
|
981
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
982
|
+
})
|
|
983
|
+
.max(BigInt('9223372036854775807'), {
|
|
984
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
985
|
+
}),
|
|
986
|
+
type: z.enum(['NEW_MESSAGE', 'NEW_CONTACT']),
|
|
987
|
+
targetId: z.optional(z.string()),
|
|
988
|
+
payload: z.union([zNewContact, zNewMessage]),
|
|
989
|
+
createdAt: z.iso.datetime(),
|
|
990
|
+
read: z.boolean(),
|
|
991
|
+
});
|
|
992
|
+
export const zCursorPageNotificationView = z.object({
|
|
993
|
+
items: z.optional(z.array(zNotificationView)),
|
|
994
|
+
nextCursor: z.optional(z.string()),
|
|
995
|
+
hasNext: z.optional(z.boolean()),
|
|
996
|
+
});
|
|
997
|
+
export const zNotificationFeed = z.object({
|
|
998
|
+
unreadCount: z
|
|
999
|
+
.int()
|
|
1000
|
+
.min(-2147483648, {
|
|
1001
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
1002
|
+
})
|
|
1003
|
+
.max(2147483647, {
|
|
1004
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
1005
|
+
}),
|
|
1006
|
+
notifications: zCursorPageNotificationView,
|
|
1007
|
+
});
|
|
1008
|
+
export const zUnreadCount = z.object({
|
|
1009
|
+
count: z
|
|
1010
|
+
.int()
|
|
1011
|
+
.min(-2147483648, {
|
|
1012
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
1013
|
+
})
|
|
1014
|
+
.max(2147483647, {
|
|
1015
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
1016
|
+
}),
|
|
1017
|
+
});
|
|
949
1018
|
export const zMemberViewResponse = z.object({
|
|
950
1019
|
userId: z.string(),
|
|
951
1020
|
memberId: z.uuid(),
|
|
@@ -1234,23 +1303,31 @@ export const zCursorPageInboxResponse = z.object({
|
|
|
1234
1303
|
nextCursor: z.optional(z.string()),
|
|
1235
1304
|
hasNext: z.optional(z.boolean()),
|
|
1236
1305
|
});
|
|
1237
|
-
export const zMessageContent = z.object({
|
|
1238
|
-
'@type': z.string(),
|
|
1239
|
-
});
|
|
1240
1306
|
export const zSentBy = z.object({
|
|
1241
1307
|
memberId: z.optional(z.uuid()),
|
|
1242
1308
|
firstName: z.optional(z.string()),
|
|
1243
1309
|
lastName: z.optional(z.string()),
|
|
1244
1310
|
picture: z.optional(z.string()),
|
|
1245
1311
|
});
|
|
1246
|
-
export const zText =
|
|
1312
|
+
export const zText = z.object({
|
|
1247
1313
|
body: z.optional(z.string()),
|
|
1248
|
-
|
|
1249
|
-
})
|
|
1250
|
-
export const zUnsupported =
|
|
1251
|
-
kind: z.
|
|
1252
|
-
|
|
1253
|
-
|
|
1314
|
+
kind: z.enum(['TEXT']),
|
|
1315
|
+
});
|
|
1316
|
+
export const zUnsupported = z.object({
|
|
1317
|
+
kind: z.enum(['UNSUPPORTED']),
|
|
1318
|
+
});
|
|
1319
|
+
export const zMessageContent = z.union([
|
|
1320
|
+
z
|
|
1321
|
+
.object({
|
|
1322
|
+
kind: z.literal('TEXT'),
|
|
1323
|
+
})
|
|
1324
|
+
.and(zText),
|
|
1325
|
+
z
|
|
1326
|
+
.object({
|
|
1327
|
+
kind: z.literal('UNSUPPORTED'),
|
|
1328
|
+
})
|
|
1329
|
+
.and(zUnsupported),
|
|
1330
|
+
]);
|
|
1254
1331
|
export const zMessageView = z.object({
|
|
1255
1332
|
id: z.uuid(),
|
|
1256
1333
|
seq: z.coerce
|
|
@@ -1262,7 +1339,7 @@ export const zMessageView = z.object({
|
|
|
1262
1339
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1263
1340
|
}),
|
|
1264
1341
|
direction: z.enum(['INBOUND', 'OUTBOUND']),
|
|
1265
|
-
content:
|
|
1342
|
+
content: zMessageContent,
|
|
1266
1343
|
status: z.enum(['RECEIVED', 'PENDING', 'SENT', 'FAILED']),
|
|
1267
1344
|
sentAt: z.iso.datetime(),
|
|
1268
1345
|
failureReason: z.optional(z.string()),
|
|
@@ -2175,6 +2252,17 @@ export const zPostPublicRecomendationsByRecommendationsIdItemsByItemIdRateData =
|
|
|
2175
2252
|
* No Content
|
|
2176
2253
|
*/
|
|
2177
2254
|
export const zPostPublicRecomendationsByRecommendationsIdItemsByItemIdRateResponse = z.void();
|
|
2255
|
+
export const zPostNotificationsReadData = z.object({
|
|
2256
|
+
body: z.optional(z.never()),
|
|
2257
|
+
path: z.optional(z.never()),
|
|
2258
|
+
query: z.optional(z.object({
|
|
2259
|
+
target: z.optional(z.string()),
|
|
2260
|
+
})),
|
|
2261
|
+
});
|
|
2262
|
+
/**
|
|
2263
|
+
* No Content
|
|
2264
|
+
*/
|
|
2265
|
+
export const zPostNotificationsReadResponse = z.void();
|
|
2178
2266
|
export const zPostMemberPresignedUrlsData = z.object({
|
|
2179
2267
|
body: zPhotoRequest,
|
|
2180
2268
|
path: z.optional(z.never()),
|
|
@@ -2260,6 +2348,17 @@ export const zPostInternalPrincipleData = z.object({
|
|
|
2260
2348
|
* OK
|
|
2261
2349
|
*/
|
|
2262
2350
|
export const zPostInternalPrincipleResponse = zAgencyPrincipalDto;
|
|
2351
|
+
export const zPostConversationsByConversationIdReadData = z.object({
|
|
2352
|
+
body: z.optional(z.never()),
|
|
2353
|
+
path: z.object({
|
|
2354
|
+
conversationId: z.uuid(),
|
|
2355
|
+
}),
|
|
2356
|
+
query: z.optional(z.never()),
|
|
2357
|
+
});
|
|
2358
|
+
/**
|
|
2359
|
+
* No Content
|
|
2360
|
+
*/
|
|
2361
|
+
export const zPostConversationsByConversationIdReadResponse = z.void();
|
|
2263
2362
|
export const zGetConversationsByConversationIdMessagesData = z.object({
|
|
2264
2363
|
body: z.optional(z.never()),
|
|
2265
2364
|
path: z.object({
|
|
@@ -2936,6 +3035,36 @@ export const zGetOauthGoogleAuthorizeData = z.object({
|
|
|
2936
3035
|
* OK
|
|
2937
3036
|
*/
|
|
2938
3037
|
export const zGetOauthGoogleAuthorizeResponse = z.record(z.string(), z.string());
|
|
3038
|
+
export const zGetNotificationsData = z.object({
|
|
3039
|
+
body: z.optional(z.never()),
|
|
3040
|
+
path: z.optional(z.never()),
|
|
3041
|
+
query: z.optional(z.object({
|
|
3042
|
+
cursor: z.optional(z.string()),
|
|
3043
|
+
limit: z
|
|
3044
|
+
.optional(z
|
|
3045
|
+
.int()
|
|
3046
|
+
.min(-2147483648, {
|
|
3047
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
3048
|
+
})
|
|
3049
|
+
.max(2147483647, {
|
|
3050
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
3051
|
+
}))
|
|
3052
|
+
.default(20),
|
|
3053
|
+
})),
|
|
3054
|
+
});
|
|
3055
|
+
/**
|
|
3056
|
+
* OK
|
|
3057
|
+
*/
|
|
3058
|
+
export const zGetNotificationsResponse = zNotificationFeed;
|
|
3059
|
+
export const zGetNotificationsUnreadCountData = z.object({
|
|
3060
|
+
body: z.optional(z.never()),
|
|
3061
|
+
path: z.optional(z.never()),
|
|
3062
|
+
query: z.optional(z.never()),
|
|
3063
|
+
});
|
|
3064
|
+
/**
|
|
3065
|
+
* OK
|
|
3066
|
+
*/
|
|
3067
|
+
export const zGetNotificationsUnreadCountResponse = zUnreadCount;
|
|
2939
3068
|
export const zGetMemberData = z.object({
|
|
2940
3069
|
body: z.optional(z.never()),
|
|
2941
3070
|
path: z.optional(z.never()),
|
|
@@ -3312,6 +3441,16 @@ export const zGetConversationsByConversationIdUpdatesData = z.object({
|
|
|
3312
3441
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
3313
3442
|
}))
|
|
3314
3443
|
.default(BigInt(0)),
|
|
3444
|
+
limit: z
|
|
3445
|
+
.optional(z
|
|
3446
|
+
.int()
|
|
3447
|
+
.min(-2147483648, {
|
|
3448
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
3449
|
+
})
|
|
3450
|
+
.max(2147483647, {
|
|
3451
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
3452
|
+
}))
|
|
3453
|
+
.default(50),
|
|
3315
3454
|
})),
|
|
3316
3455
|
});
|
|
3317
3456
|
/**
|
|
@@ -3626,6 +3765,17 @@ export const zDeleteMemberByMemberIdData = z.object({
|
|
|
3626
3765
|
* No Content
|
|
3627
3766
|
*/
|
|
3628
3767
|
export const zDeleteMemberByMemberIdResponse = z.void();
|
|
3768
|
+
export const zDeleteConversationsByConversationIdPresenceData = z.object({
|
|
3769
|
+
body: z.optional(z.never()),
|
|
3770
|
+
path: z.object({
|
|
3771
|
+
conversationId: z.uuid(),
|
|
3772
|
+
}),
|
|
3773
|
+
query: z.optional(z.never()),
|
|
3774
|
+
});
|
|
3775
|
+
/**
|
|
3776
|
+
* No Content
|
|
3777
|
+
*/
|
|
3778
|
+
export const zDeleteConversationsByConversationIdPresenceResponse = z.void();
|
|
3629
3779
|
export const zDeleteContactsByContactIdRecommendationsByRecommendationsIdItemsByItemIdData = z.object({
|
|
3630
3780
|
body: z.optional(z.never()),
|
|
3631
3781
|
path: z.object({
|