@crosspost/types 0.1.9 → 0.1.11
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/index.cjs +279 -275
- package/dist/index.d.cts +147 -38
- package/dist/index.d.ts +147 -38
- package/dist/index.js +279 -275
- package/package.json +1 -1
- package/src/auth.ts +9 -6
package/dist/index.d.cts
CHANGED
@@ -299,12 +299,15 @@ declare const PlatformParamSchema: z.ZodObject<{
|
|
299
299
|
declare const AuthInitRequestSchema: z.ZodObject<{
|
300
300
|
successUrl: z.ZodOptional<z.ZodString>;
|
301
301
|
errorUrl: z.ZodOptional<z.ZodString>;
|
302
|
+
redirect: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
302
303
|
}, "strip", z.ZodTypeAny, {
|
304
|
+
redirect: boolean;
|
303
305
|
successUrl?: string | undefined;
|
304
306
|
errorUrl?: string | undefined;
|
305
307
|
}, {
|
306
308
|
successUrl?: string | undefined;
|
307
309
|
errorUrl?: string | undefined;
|
310
|
+
redirect?: boolean | undefined;
|
308
311
|
}>;
|
309
312
|
declare const AuthUrlResponseSchema: z.ZodObject<{
|
310
313
|
url: z.ZodString;
|
@@ -418,41 +421,147 @@ declare const AuthRevokeResponseSchema: z.ZodObject<{
|
|
418
421
|
declare const ConnectedAccountSchema: z.ZodObject<{
|
419
422
|
platform: z.ZodNativeEnum<typeof Platform>;
|
420
423
|
userId: z.ZodString;
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
+
connectedAt: z.ZodString;
|
425
|
+
profile: z.ZodNullable<z.ZodObject<{
|
426
|
+
userId: z.ZodString;
|
427
|
+
username: z.ZodString;
|
428
|
+
url: z.ZodOptional<z.ZodString>;
|
429
|
+
profileImageUrl: z.ZodString;
|
430
|
+
isPremium: z.ZodOptional<z.ZodBoolean>;
|
431
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
432
|
+
lastUpdated: z.ZodNumber;
|
433
|
+
}, "strip", z.ZodTypeAny, {
|
434
|
+
platform: Platform;
|
435
|
+
userId: string;
|
436
|
+
username: string;
|
437
|
+
profileImageUrl: string;
|
438
|
+
lastUpdated: number;
|
439
|
+
url?: string | undefined;
|
440
|
+
isPremium?: boolean | undefined;
|
441
|
+
}, {
|
442
|
+
platform: Platform;
|
443
|
+
userId: string;
|
444
|
+
username: string;
|
445
|
+
profileImageUrl: string;
|
446
|
+
lastUpdated: number;
|
447
|
+
url?: string | undefined;
|
448
|
+
isPremium?: boolean | undefined;
|
449
|
+
}>>;
|
424
450
|
}, "strip", z.ZodTypeAny, {
|
425
451
|
platform: Platform;
|
426
452
|
userId: string;
|
427
|
-
|
428
|
-
|
429
|
-
|
453
|
+
profile: {
|
454
|
+
platform: Platform;
|
455
|
+
userId: string;
|
456
|
+
username: string;
|
457
|
+
profileImageUrl: string;
|
458
|
+
lastUpdated: number;
|
459
|
+
url?: string | undefined;
|
460
|
+
isPremium?: boolean | undefined;
|
461
|
+
} | null;
|
462
|
+
connectedAt: string;
|
430
463
|
}, {
|
431
464
|
platform: Platform;
|
432
465
|
userId: string;
|
433
|
-
|
434
|
-
|
435
|
-
|
466
|
+
profile: {
|
467
|
+
platform: Platform;
|
468
|
+
userId: string;
|
469
|
+
username: string;
|
470
|
+
profileImageUrl: string;
|
471
|
+
lastUpdated: number;
|
472
|
+
url?: string | undefined;
|
473
|
+
isPremium?: boolean | undefined;
|
474
|
+
} | null;
|
475
|
+
connectedAt: string;
|
436
476
|
}>;
|
437
|
-
declare const ConnectedAccountsResponseSchema: z.
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
477
|
+
declare const ConnectedAccountsResponseSchema: z.ZodObject<{
|
478
|
+
accounts: z.ZodArray<z.ZodObject<{
|
479
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
480
|
+
userId: z.ZodString;
|
481
|
+
connectedAt: z.ZodString;
|
482
|
+
profile: z.ZodNullable<z.ZodObject<{
|
483
|
+
userId: z.ZodString;
|
484
|
+
username: z.ZodString;
|
485
|
+
url: z.ZodOptional<z.ZodString>;
|
486
|
+
profileImageUrl: z.ZodString;
|
487
|
+
isPremium: z.ZodOptional<z.ZodBoolean>;
|
488
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
489
|
+
lastUpdated: z.ZodNumber;
|
490
|
+
}, "strip", z.ZodTypeAny, {
|
491
|
+
platform: Platform;
|
492
|
+
userId: string;
|
493
|
+
username: string;
|
494
|
+
profileImageUrl: string;
|
495
|
+
lastUpdated: number;
|
496
|
+
url?: string | undefined;
|
497
|
+
isPremium?: boolean | undefined;
|
498
|
+
}, {
|
499
|
+
platform: Platform;
|
500
|
+
userId: string;
|
501
|
+
username: string;
|
502
|
+
profileImageUrl: string;
|
503
|
+
lastUpdated: number;
|
504
|
+
url?: string | undefined;
|
505
|
+
isPremium?: boolean | undefined;
|
506
|
+
}>>;
|
507
|
+
}, "strip", z.ZodTypeAny, {
|
508
|
+
platform: Platform;
|
509
|
+
userId: string;
|
510
|
+
profile: {
|
511
|
+
platform: Platform;
|
512
|
+
userId: string;
|
513
|
+
username: string;
|
514
|
+
profileImageUrl: string;
|
515
|
+
lastUpdated: number;
|
516
|
+
url?: string | undefined;
|
517
|
+
isPremium?: boolean | undefined;
|
518
|
+
} | null;
|
519
|
+
connectedAt: string;
|
520
|
+
}, {
|
521
|
+
platform: Platform;
|
522
|
+
userId: string;
|
523
|
+
profile: {
|
524
|
+
platform: Platform;
|
525
|
+
userId: string;
|
526
|
+
username: string;
|
527
|
+
profileImageUrl: string;
|
528
|
+
lastUpdated: number;
|
529
|
+
url?: string | undefined;
|
530
|
+
isPremium?: boolean | undefined;
|
531
|
+
} | null;
|
532
|
+
connectedAt: string;
|
533
|
+
}>, "many">;
|
443
534
|
}, "strip", z.ZodTypeAny, {
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
535
|
+
accounts: {
|
536
|
+
platform: Platform;
|
537
|
+
userId: string;
|
538
|
+
profile: {
|
539
|
+
platform: Platform;
|
540
|
+
userId: string;
|
541
|
+
username: string;
|
542
|
+
profileImageUrl: string;
|
543
|
+
lastUpdated: number;
|
544
|
+
url?: string | undefined;
|
545
|
+
isPremium?: boolean | undefined;
|
546
|
+
} | null;
|
547
|
+
connectedAt: string;
|
548
|
+
}[];
|
449
549
|
}, {
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
550
|
+
accounts: {
|
551
|
+
platform: Platform;
|
552
|
+
userId: string;
|
553
|
+
profile: {
|
554
|
+
platform: Platform;
|
555
|
+
userId: string;
|
556
|
+
username: string;
|
557
|
+
profileImageUrl: string;
|
558
|
+
lastUpdated: number;
|
559
|
+
url?: string | undefined;
|
560
|
+
isPremium?: boolean | undefined;
|
561
|
+
} | null;
|
562
|
+
connectedAt: string;
|
563
|
+
}[];
|
564
|
+
}>;
|
456
565
|
declare const NearAuthorizationRequestSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
457
566
|
declare const NearAuthorizationResponseSchema: z.ZodObject<{
|
458
567
|
nearAccount: z.ZodString;
|
@@ -2206,6 +2315,7 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2206
2315
|
}>, "many">;
|
2207
2316
|
lastUpdated: z.ZodString;
|
2208
2317
|
}, "strip", z.ZodTypeAny, {
|
2318
|
+
lastUpdated: string;
|
2209
2319
|
endpoints: {
|
2210
2320
|
remaining: number;
|
2211
2321
|
limit: number;
|
@@ -2214,8 +2324,8 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2214
2324
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
2215
2325
|
resetDate: string;
|
2216
2326
|
}[];
|
2217
|
-
lastUpdated: string;
|
2218
2327
|
}, {
|
2328
|
+
lastUpdated: string;
|
2219
2329
|
endpoints: {
|
2220
2330
|
remaining: number;
|
2221
2331
|
limit: number;
|
@@ -2224,7 +2334,6 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2224
2334
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
2225
2335
|
resetDate: string;
|
2226
2336
|
}[];
|
2227
|
-
lastUpdated: string;
|
2228
2337
|
}>>;
|
2229
2338
|
app: z.ZodOptional<z.ZodObject<{
|
2230
2339
|
limit: z.ZodNumber;
|
@@ -2244,6 +2353,7 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2244
2353
|
}>>;
|
2245
2354
|
}, "strip", z.ZodTypeAny, {
|
2246
2355
|
users: Record<string, {
|
2356
|
+
lastUpdated: string;
|
2247
2357
|
endpoints: {
|
2248
2358
|
remaining: number;
|
2249
2359
|
limit: number;
|
@@ -2252,7 +2362,6 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2252
2362
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
2253
2363
|
resetDate: string;
|
2254
2364
|
}[];
|
2255
|
-
lastUpdated: string;
|
2256
2365
|
}>;
|
2257
2366
|
app?: {
|
2258
2367
|
remaining: number;
|
@@ -2262,6 +2371,7 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2262
2371
|
} | undefined;
|
2263
2372
|
}, {
|
2264
2373
|
users: Record<string, {
|
2374
|
+
lastUpdated: string;
|
2265
2375
|
endpoints: {
|
2266
2376
|
remaining: number;
|
2267
2377
|
limit: number;
|
@@ -2270,7 +2380,6 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2270
2380
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
2271
2381
|
resetDate: string;
|
2272
2382
|
}[];
|
2273
|
-
lastUpdated: string;
|
2274
2383
|
}>;
|
2275
2384
|
app?: {
|
2276
2385
|
remaining: number;
|
@@ -2282,6 +2391,7 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2282
2391
|
}, "strip", z.ZodTypeAny, {
|
2283
2392
|
platforms: Partial<Record<Platform, {
|
2284
2393
|
users: Record<string, {
|
2394
|
+
lastUpdated: string;
|
2285
2395
|
endpoints: {
|
2286
2396
|
remaining: number;
|
2287
2397
|
limit: number;
|
@@ -2290,7 +2400,6 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2290
2400
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
2291
2401
|
resetDate: string;
|
2292
2402
|
}[];
|
2293
|
-
lastUpdated: string;
|
2294
2403
|
}>;
|
2295
2404
|
app?: {
|
2296
2405
|
remaining: number;
|
@@ -2302,6 +2411,7 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2302
2411
|
}, {
|
2303
2412
|
platforms: Partial<Record<Platform, {
|
2304
2413
|
users: Record<string, {
|
2414
|
+
lastUpdated: string;
|
2305
2415
|
endpoints: {
|
2306
2416
|
remaining: number;
|
2307
2417
|
limit: number;
|
@@ -2310,7 +2420,6 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2310
2420
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
2311
2421
|
resetDate: string;
|
2312
2422
|
}[];
|
2313
|
-
lastUpdated: string;
|
2314
2423
|
}>;
|
2315
2424
|
app?: {
|
2316
2425
|
remaining: number;
|
@@ -3012,16 +3121,16 @@ declare const UserProfileSchema: z.ZodObject<{
|
|
3012
3121
|
platform: Platform;
|
3013
3122
|
userId: string;
|
3014
3123
|
username: string;
|
3015
|
-
lastUpdated: number;
|
3016
3124
|
profileImageUrl: string;
|
3125
|
+
lastUpdated: number;
|
3017
3126
|
url?: string | undefined;
|
3018
3127
|
isPremium?: boolean | undefined;
|
3019
3128
|
}, {
|
3020
3129
|
platform: Platform;
|
3021
3130
|
userId: string;
|
3022
3131
|
username: string;
|
3023
|
-
lastUpdated: number;
|
3024
3132
|
profileImageUrl: string;
|
3133
|
+
lastUpdated: number;
|
3025
3134
|
url?: string | undefined;
|
3026
3135
|
isPremium?: boolean | undefined;
|
3027
3136
|
}>;
|
@@ -3038,16 +3147,16 @@ declare const ProfileRefreshResponseSchema: z.ZodObject<{
|
|
3038
3147
|
platform: Platform;
|
3039
3148
|
userId: string;
|
3040
3149
|
username: string;
|
3041
|
-
lastUpdated: number;
|
3042
3150
|
profileImageUrl: string;
|
3151
|
+
lastUpdated: number;
|
3043
3152
|
url?: string | undefined;
|
3044
3153
|
isPremium?: boolean | undefined;
|
3045
3154
|
}, {
|
3046
3155
|
platform: Platform;
|
3047
3156
|
userId: string;
|
3048
3157
|
username: string;
|
3049
|
-
lastUpdated: number;
|
3050
3158
|
profileImageUrl: string;
|
3159
|
+
lastUpdated: number;
|
3051
3160
|
url?: string | undefined;
|
3052
3161
|
isPremium?: boolean | undefined;
|
3053
3162
|
}>>;
|
@@ -3056,8 +3165,8 @@ declare const ProfileRefreshResponseSchema: z.ZodObject<{
|
|
3056
3165
|
platform: Platform;
|
3057
3166
|
userId: string;
|
3058
3167
|
username: string;
|
3059
|
-
lastUpdated: number;
|
3060
3168
|
profileImageUrl: string;
|
3169
|
+
lastUpdated: number;
|
3061
3170
|
url?: string | undefined;
|
3062
3171
|
isPremium?: boolean | undefined;
|
3063
3172
|
} | undefined;
|
@@ -3066,8 +3175,8 @@ declare const ProfileRefreshResponseSchema: z.ZodObject<{
|
|
3066
3175
|
platform: Platform;
|
3067
3176
|
userId: string;
|
3068
3177
|
username: string;
|
3069
|
-
lastUpdated: number;
|
3070
3178
|
profileImageUrl: string;
|
3179
|
+
lastUpdated: number;
|
3071
3180
|
url?: string | undefined;
|
3072
3181
|
isPremium?: boolean | undefined;
|
3073
3182
|
} | undefined;
|
package/dist/index.d.ts
CHANGED
@@ -299,12 +299,15 @@ declare const PlatformParamSchema: z.ZodObject<{
|
|
299
299
|
declare const AuthInitRequestSchema: z.ZodObject<{
|
300
300
|
successUrl: z.ZodOptional<z.ZodString>;
|
301
301
|
errorUrl: z.ZodOptional<z.ZodString>;
|
302
|
+
redirect: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
302
303
|
}, "strip", z.ZodTypeAny, {
|
304
|
+
redirect: boolean;
|
303
305
|
successUrl?: string | undefined;
|
304
306
|
errorUrl?: string | undefined;
|
305
307
|
}, {
|
306
308
|
successUrl?: string | undefined;
|
307
309
|
errorUrl?: string | undefined;
|
310
|
+
redirect?: boolean | undefined;
|
308
311
|
}>;
|
309
312
|
declare const AuthUrlResponseSchema: z.ZodObject<{
|
310
313
|
url: z.ZodString;
|
@@ -418,41 +421,147 @@ declare const AuthRevokeResponseSchema: z.ZodObject<{
|
|
418
421
|
declare const ConnectedAccountSchema: z.ZodObject<{
|
419
422
|
platform: z.ZodNativeEnum<typeof Platform>;
|
420
423
|
userId: z.ZodString;
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
+
connectedAt: z.ZodString;
|
425
|
+
profile: z.ZodNullable<z.ZodObject<{
|
426
|
+
userId: z.ZodString;
|
427
|
+
username: z.ZodString;
|
428
|
+
url: z.ZodOptional<z.ZodString>;
|
429
|
+
profileImageUrl: z.ZodString;
|
430
|
+
isPremium: z.ZodOptional<z.ZodBoolean>;
|
431
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
432
|
+
lastUpdated: z.ZodNumber;
|
433
|
+
}, "strip", z.ZodTypeAny, {
|
434
|
+
platform: Platform;
|
435
|
+
userId: string;
|
436
|
+
username: string;
|
437
|
+
profileImageUrl: string;
|
438
|
+
lastUpdated: number;
|
439
|
+
url?: string | undefined;
|
440
|
+
isPremium?: boolean | undefined;
|
441
|
+
}, {
|
442
|
+
platform: Platform;
|
443
|
+
userId: string;
|
444
|
+
username: string;
|
445
|
+
profileImageUrl: string;
|
446
|
+
lastUpdated: number;
|
447
|
+
url?: string | undefined;
|
448
|
+
isPremium?: boolean | undefined;
|
449
|
+
}>>;
|
424
450
|
}, "strip", z.ZodTypeAny, {
|
425
451
|
platform: Platform;
|
426
452
|
userId: string;
|
427
|
-
|
428
|
-
|
429
|
-
|
453
|
+
profile: {
|
454
|
+
platform: Platform;
|
455
|
+
userId: string;
|
456
|
+
username: string;
|
457
|
+
profileImageUrl: string;
|
458
|
+
lastUpdated: number;
|
459
|
+
url?: string | undefined;
|
460
|
+
isPremium?: boolean | undefined;
|
461
|
+
} | null;
|
462
|
+
connectedAt: string;
|
430
463
|
}, {
|
431
464
|
platform: Platform;
|
432
465
|
userId: string;
|
433
|
-
|
434
|
-
|
435
|
-
|
466
|
+
profile: {
|
467
|
+
platform: Platform;
|
468
|
+
userId: string;
|
469
|
+
username: string;
|
470
|
+
profileImageUrl: string;
|
471
|
+
lastUpdated: number;
|
472
|
+
url?: string | undefined;
|
473
|
+
isPremium?: boolean | undefined;
|
474
|
+
} | null;
|
475
|
+
connectedAt: string;
|
436
476
|
}>;
|
437
|
-
declare const ConnectedAccountsResponseSchema: z.
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
477
|
+
declare const ConnectedAccountsResponseSchema: z.ZodObject<{
|
478
|
+
accounts: z.ZodArray<z.ZodObject<{
|
479
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
480
|
+
userId: z.ZodString;
|
481
|
+
connectedAt: z.ZodString;
|
482
|
+
profile: z.ZodNullable<z.ZodObject<{
|
483
|
+
userId: z.ZodString;
|
484
|
+
username: z.ZodString;
|
485
|
+
url: z.ZodOptional<z.ZodString>;
|
486
|
+
profileImageUrl: z.ZodString;
|
487
|
+
isPremium: z.ZodOptional<z.ZodBoolean>;
|
488
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
489
|
+
lastUpdated: z.ZodNumber;
|
490
|
+
}, "strip", z.ZodTypeAny, {
|
491
|
+
platform: Platform;
|
492
|
+
userId: string;
|
493
|
+
username: string;
|
494
|
+
profileImageUrl: string;
|
495
|
+
lastUpdated: number;
|
496
|
+
url?: string | undefined;
|
497
|
+
isPremium?: boolean | undefined;
|
498
|
+
}, {
|
499
|
+
platform: Platform;
|
500
|
+
userId: string;
|
501
|
+
username: string;
|
502
|
+
profileImageUrl: string;
|
503
|
+
lastUpdated: number;
|
504
|
+
url?: string | undefined;
|
505
|
+
isPremium?: boolean | undefined;
|
506
|
+
}>>;
|
507
|
+
}, "strip", z.ZodTypeAny, {
|
508
|
+
platform: Platform;
|
509
|
+
userId: string;
|
510
|
+
profile: {
|
511
|
+
platform: Platform;
|
512
|
+
userId: string;
|
513
|
+
username: string;
|
514
|
+
profileImageUrl: string;
|
515
|
+
lastUpdated: number;
|
516
|
+
url?: string | undefined;
|
517
|
+
isPremium?: boolean | undefined;
|
518
|
+
} | null;
|
519
|
+
connectedAt: string;
|
520
|
+
}, {
|
521
|
+
platform: Platform;
|
522
|
+
userId: string;
|
523
|
+
profile: {
|
524
|
+
platform: Platform;
|
525
|
+
userId: string;
|
526
|
+
username: string;
|
527
|
+
profileImageUrl: string;
|
528
|
+
lastUpdated: number;
|
529
|
+
url?: string | undefined;
|
530
|
+
isPremium?: boolean | undefined;
|
531
|
+
} | null;
|
532
|
+
connectedAt: string;
|
533
|
+
}>, "many">;
|
443
534
|
}, "strip", z.ZodTypeAny, {
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
535
|
+
accounts: {
|
536
|
+
platform: Platform;
|
537
|
+
userId: string;
|
538
|
+
profile: {
|
539
|
+
platform: Platform;
|
540
|
+
userId: string;
|
541
|
+
username: string;
|
542
|
+
profileImageUrl: string;
|
543
|
+
lastUpdated: number;
|
544
|
+
url?: string | undefined;
|
545
|
+
isPremium?: boolean | undefined;
|
546
|
+
} | null;
|
547
|
+
connectedAt: string;
|
548
|
+
}[];
|
449
549
|
}, {
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
550
|
+
accounts: {
|
551
|
+
platform: Platform;
|
552
|
+
userId: string;
|
553
|
+
profile: {
|
554
|
+
platform: Platform;
|
555
|
+
userId: string;
|
556
|
+
username: string;
|
557
|
+
profileImageUrl: string;
|
558
|
+
lastUpdated: number;
|
559
|
+
url?: string | undefined;
|
560
|
+
isPremium?: boolean | undefined;
|
561
|
+
} | null;
|
562
|
+
connectedAt: string;
|
563
|
+
}[];
|
564
|
+
}>;
|
456
565
|
declare const NearAuthorizationRequestSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
457
566
|
declare const NearAuthorizationResponseSchema: z.ZodObject<{
|
458
567
|
nearAccount: z.ZodString;
|
@@ -2206,6 +2315,7 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2206
2315
|
}>, "many">;
|
2207
2316
|
lastUpdated: z.ZodString;
|
2208
2317
|
}, "strip", z.ZodTypeAny, {
|
2318
|
+
lastUpdated: string;
|
2209
2319
|
endpoints: {
|
2210
2320
|
remaining: number;
|
2211
2321
|
limit: number;
|
@@ -2214,8 +2324,8 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2214
2324
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
2215
2325
|
resetDate: string;
|
2216
2326
|
}[];
|
2217
|
-
lastUpdated: string;
|
2218
2327
|
}, {
|
2328
|
+
lastUpdated: string;
|
2219
2329
|
endpoints: {
|
2220
2330
|
remaining: number;
|
2221
2331
|
limit: number;
|
@@ -2224,7 +2334,6 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2224
2334
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
2225
2335
|
resetDate: string;
|
2226
2336
|
}[];
|
2227
|
-
lastUpdated: string;
|
2228
2337
|
}>>;
|
2229
2338
|
app: z.ZodOptional<z.ZodObject<{
|
2230
2339
|
limit: z.ZodNumber;
|
@@ -2244,6 +2353,7 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2244
2353
|
}>>;
|
2245
2354
|
}, "strip", z.ZodTypeAny, {
|
2246
2355
|
users: Record<string, {
|
2356
|
+
lastUpdated: string;
|
2247
2357
|
endpoints: {
|
2248
2358
|
remaining: number;
|
2249
2359
|
limit: number;
|
@@ -2252,7 +2362,6 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2252
2362
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
2253
2363
|
resetDate: string;
|
2254
2364
|
}[];
|
2255
|
-
lastUpdated: string;
|
2256
2365
|
}>;
|
2257
2366
|
app?: {
|
2258
2367
|
remaining: number;
|
@@ -2262,6 +2371,7 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2262
2371
|
} | undefined;
|
2263
2372
|
}, {
|
2264
2373
|
users: Record<string, {
|
2374
|
+
lastUpdated: string;
|
2265
2375
|
endpoints: {
|
2266
2376
|
remaining: number;
|
2267
2377
|
limit: number;
|
@@ -2270,7 +2380,6 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2270
2380
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
2271
2381
|
resetDate: string;
|
2272
2382
|
}[];
|
2273
|
-
lastUpdated: string;
|
2274
2383
|
}>;
|
2275
2384
|
app?: {
|
2276
2385
|
remaining: number;
|
@@ -2282,6 +2391,7 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2282
2391
|
}, "strip", z.ZodTypeAny, {
|
2283
2392
|
platforms: Partial<Record<Platform, {
|
2284
2393
|
users: Record<string, {
|
2394
|
+
lastUpdated: string;
|
2285
2395
|
endpoints: {
|
2286
2396
|
remaining: number;
|
2287
2397
|
limit: number;
|
@@ -2290,7 +2400,6 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2290
2400
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
2291
2401
|
resetDate: string;
|
2292
2402
|
}[];
|
2293
|
-
lastUpdated: string;
|
2294
2403
|
}>;
|
2295
2404
|
app?: {
|
2296
2405
|
remaining: number;
|
@@ -2302,6 +2411,7 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2302
2411
|
}, {
|
2303
2412
|
platforms: Partial<Record<Platform, {
|
2304
2413
|
users: Record<string, {
|
2414
|
+
lastUpdated: string;
|
2305
2415
|
endpoints: {
|
2306
2416
|
remaining: number;
|
2307
2417
|
limit: number;
|
@@ -2310,7 +2420,6 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
|
|
2310
2420
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
2311
2421
|
resetDate: string;
|
2312
2422
|
}[];
|
2313
|
-
lastUpdated: string;
|
2314
2423
|
}>;
|
2315
2424
|
app?: {
|
2316
2425
|
remaining: number;
|
@@ -3012,16 +3121,16 @@ declare const UserProfileSchema: z.ZodObject<{
|
|
3012
3121
|
platform: Platform;
|
3013
3122
|
userId: string;
|
3014
3123
|
username: string;
|
3015
|
-
lastUpdated: number;
|
3016
3124
|
profileImageUrl: string;
|
3125
|
+
lastUpdated: number;
|
3017
3126
|
url?: string | undefined;
|
3018
3127
|
isPremium?: boolean | undefined;
|
3019
3128
|
}, {
|
3020
3129
|
platform: Platform;
|
3021
3130
|
userId: string;
|
3022
3131
|
username: string;
|
3023
|
-
lastUpdated: number;
|
3024
3132
|
profileImageUrl: string;
|
3133
|
+
lastUpdated: number;
|
3025
3134
|
url?: string | undefined;
|
3026
3135
|
isPremium?: boolean | undefined;
|
3027
3136
|
}>;
|
@@ -3038,16 +3147,16 @@ declare const ProfileRefreshResponseSchema: z.ZodObject<{
|
|
3038
3147
|
platform: Platform;
|
3039
3148
|
userId: string;
|
3040
3149
|
username: string;
|
3041
|
-
lastUpdated: number;
|
3042
3150
|
profileImageUrl: string;
|
3151
|
+
lastUpdated: number;
|
3043
3152
|
url?: string | undefined;
|
3044
3153
|
isPremium?: boolean | undefined;
|
3045
3154
|
}, {
|
3046
3155
|
platform: Platform;
|
3047
3156
|
userId: string;
|
3048
3157
|
username: string;
|
3049
|
-
lastUpdated: number;
|
3050
3158
|
profileImageUrl: string;
|
3159
|
+
lastUpdated: number;
|
3051
3160
|
url?: string | undefined;
|
3052
3161
|
isPremium?: boolean | undefined;
|
3053
3162
|
}>>;
|
@@ -3056,8 +3165,8 @@ declare const ProfileRefreshResponseSchema: z.ZodObject<{
|
|
3056
3165
|
platform: Platform;
|
3057
3166
|
userId: string;
|
3058
3167
|
username: string;
|
3059
|
-
lastUpdated: number;
|
3060
3168
|
profileImageUrl: string;
|
3169
|
+
lastUpdated: number;
|
3061
3170
|
url?: string | undefined;
|
3062
3171
|
isPremium?: boolean | undefined;
|
3063
3172
|
} | undefined;
|
@@ -3066,8 +3175,8 @@ declare const ProfileRefreshResponseSchema: z.ZodObject<{
|
|
3066
3175
|
platform: Platform;
|
3067
3176
|
userId: string;
|
3068
3177
|
username: string;
|
3069
|
-
lastUpdated: number;
|
3070
3178
|
profileImageUrl: string;
|
3179
|
+
lastUpdated: number;
|
3071
3180
|
url?: string | undefined;
|
3072
3181
|
isPremium?: boolean | undefined;
|
3073
3182
|
} | undefined;
|