@gscdump/contracts 4.6.0 → 4.7.0
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 +1 -1
- package/dist/analytics.d.mts +2 -2
- package/dist/endpoints.d.mts +14 -0
- package/dist/entitlements.d.mts +90 -0
- package/dist/entitlements.mjs +55 -0
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +2 -1
- package/dist/onboarding.d.mts +3 -0
- package/dist/partner.d.mts +2 -2
- package/dist/schemas.d.mts +55 -3
- package/dist/schemas.mjs +11 -1
- package/dist/types.d.mts +14 -1
- package/dist/v1/browser.d.mts +13 -1
- package/dist/v1/browser.mjs +3 -0
- package/dist/v1/http.d.mts +2 -2
- package/dist/v1/index.d.mts +2 -2
- package/dist/v1/operations.d.mts +351 -11
- package/dist/v1/operations.mjs +129 -0
- package/dist/v1/route-catalog.d.mts +5 -0
- package/dist/v1/route-catalog.mjs +5 -0
- package/dist/webhook-constants.d.mts +2 -2
- package/dist/webhook-constants.mjs +2 -1
- package/package.json +1 -1
package/dist/v1/operations.d.mts
CHANGED
|
@@ -740,12 +740,12 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
740
740
|
readonly GOOGLE_NEWS: "googleNews";
|
|
741
741
|
}>>;
|
|
742
742
|
dimensions: z.ZodArray<z.ZodEnum<{
|
|
743
|
-
date: "date";
|
|
744
743
|
page: "page";
|
|
745
744
|
query: "query";
|
|
746
745
|
queryCanonical: "queryCanonical";
|
|
747
746
|
country: "country";
|
|
748
747
|
device: "device";
|
|
748
|
+
date: "date";
|
|
749
749
|
searchAppearance: "searchAppearance";
|
|
750
750
|
hour: "hour";
|
|
751
751
|
}>>;
|
|
@@ -760,12 +760,12 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
760
760
|
readonly GOOGLE_NEWS: "googleNews";
|
|
761
761
|
}>>;
|
|
762
762
|
dimensions: z.ZodArray<z.ZodEnum<{
|
|
763
|
-
date: "date";
|
|
764
763
|
page: "page";
|
|
765
764
|
query: "query";
|
|
766
765
|
queryCanonical: "queryCanonical";
|
|
767
766
|
country: "country";
|
|
768
767
|
device: "device";
|
|
768
|
+
date: "date";
|
|
769
769
|
searchAppearance: "searchAppearance";
|
|
770
770
|
hour: "hour";
|
|
771
771
|
}>>;
|
|
@@ -897,12 +897,12 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
897
897
|
readonly GOOGLE_NEWS: "googleNews";
|
|
898
898
|
}>>;
|
|
899
899
|
dimensions: z.ZodArray<z.ZodEnum<{
|
|
900
|
-
date: "date";
|
|
901
900
|
page: "page";
|
|
902
901
|
query: "query";
|
|
903
902
|
queryCanonical: "queryCanonical";
|
|
904
903
|
country: "country";
|
|
905
904
|
device: "device";
|
|
905
|
+
date: "date";
|
|
906
906
|
searchAppearance: "searchAppearance";
|
|
907
907
|
hour: "hour";
|
|
908
908
|
}>>;
|
|
@@ -917,12 +917,12 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
917
917
|
readonly GOOGLE_NEWS: "googleNews";
|
|
918
918
|
}>>;
|
|
919
919
|
dimensions: z.ZodArray<z.ZodEnum<{
|
|
920
|
-
date: "date";
|
|
921
920
|
page: "page";
|
|
922
921
|
query: "query";
|
|
923
922
|
queryCanonical: "queryCanonical";
|
|
924
923
|
country: "country";
|
|
925
924
|
device: "device";
|
|
925
|
+
date: "date";
|
|
926
926
|
searchAppearance: "searchAppearance";
|
|
927
927
|
hour: "hour";
|
|
928
928
|
}>>;
|
|
@@ -1025,12 +1025,12 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
1025
1025
|
}, z.core.$strip>>;
|
|
1026
1026
|
analyticsRowsRequest: z.ZodObject<{
|
|
1027
1027
|
dimensions: z.ZodArray<z.ZodEnum<{
|
|
1028
|
-
date: "date";
|
|
1029
1028
|
page: "page";
|
|
1030
1029
|
query: "query";
|
|
1031
1030
|
queryCanonical: "queryCanonical";
|
|
1032
1031
|
country: "country";
|
|
1033
1032
|
device: "device";
|
|
1033
|
+
date: "date";
|
|
1034
1034
|
searchAppearance: "searchAppearance";
|
|
1035
1035
|
hour: "hour";
|
|
1036
1036
|
}>>;
|
|
@@ -2836,6 +2836,12 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
2836
2836
|
retry_indexing: "retry_indexing";
|
|
2837
2837
|
}>;
|
|
2838
2838
|
}, z.core.$strip>;
|
|
2839
|
+
readonly hold: z.ZodNullable<z.ZodEnum<{
|
|
2840
|
+
size_limit: "size_limit";
|
|
2841
|
+
sitemap_limit: "sitemap_limit";
|
|
2842
|
+
size_unknown: "size_unknown";
|
|
2843
|
+
size_pending: "size_pending";
|
|
2844
|
+
}>>;
|
|
2839
2845
|
readonly latestError: z.ZodNullable<z.ZodObject<{
|
|
2840
2846
|
readonly code: z.ZodEnum<{
|
|
2841
2847
|
missing_refresh_token: "missing_refresh_token";
|
|
@@ -2992,6 +2998,12 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
2992
2998
|
retry_indexing: "retry_indexing";
|
|
2993
2999
|
}>;
|
|
2994
3000
|
}, z.core.$strip>;
|
|
3001
|
+
readonly hold: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
3002
|
+
size_limit: "size_limit";
|
|
3003
|
+
sitemap_limit: "sitemap_limit";
|
|
3004
|
+
size_unknown: "size_unknown";
|
|
3005
|
+
size_pending: "size_pending";
|
|
3006
|
+
}>>>;
|
|
2995
3007
|
readonly latestError: z.ZodNullable<z.ZodObject<{
|
|
2996
3008
|
readonly code: z.ZodEnum<{
|
|
2997
3009
|
missing_refresh_token: "missing_refresh_token";
|
|
@@ -3019,6 +3031,87 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
3019
3031
|
readonly version: z.ZodLiteral<"1.0">;
|
|
3020
3032
|
}, z.core.$strip>;
|
|
3021
3033
|
}, z.core.$strip>>;
|
|
3034
|
+
userEntitlementsResponse: CompatibleResponseSchema<z.ZodObject<{
|
|
3035
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3036
|
+
readonly mode: z.ZodLiteral<"exempt">;
|
|
3037
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3038
|
+
readonly meters: z.ZodObject<{
|
|
3039
|
+
readonly sites: z.ZodObject<{
|
|
3040
|
+
readonly used: z.ZodNumber;
|
|
3041
|
+
readonly allowance: z.ZodNumber;
|
|
3042
|
+
}, z.core.$strip>;
|
|
3043
|
+
readonly preservedRows: z.ZodObject<{
|
|
3044
|
+
readonly used: z.ZodNullable<z.ZodNumber>;
|
|
3045
|
+
readonly allowance: z.ZodNumber;
|
|
3046
|
+
}, z.core.$strip>;
|
|
3047
|
+
readonly urlInspections: z.ZodObject<{
|
|
3048
|
+
readonly used: z.ZodNumber;
|
|
3049
|
+
readonly allowance: z.ZodNullable<z.ZodNumber>;
|
|
3050
|
+
readonly resetsAt: z.ZodISODate;
|
|
3051
|
+
}, z.core.$strip>;
|
|
3052
|
+
}, z.core.$strip>;
|
|
3053
|
+
readonly heldSites: z.ZodArray<z.ZodObject<{
|
|
3054
|
+
readonly siteId: z.ZodString;
|
|
3055
|
+
readonly hold: z.ZodEnum<{
|
|
3056
|
+
size_limit: "size_limit";
|
|
3057
|
+
sitemap_limit: "sitemap_limit";
|
|
3058
|
+
size_unknown: "size_unknown";
|
|
3059
|
+
size_pending: "size_pending";
|
|
3060
|
+
}>;
|
|
3061
|
+
}, z.core.$strip>>;
|
|
3062
|
+
readonly mode: z.ZodLiteral<"metered">;
|
|
3063
|
+
readonly phase: z.ZodEnum<{
|
|
3064
|
+
beta: "beta";
|
|
3065
|
+
billing: "billing";
|
|
3066
|
+
}>;
|
|
3067
|
+
readonly sizeLimitRowsPerDay: z.ZodNumber;
|
|
3068
|
+
}, z.core.$strip>], "mode">;
|
|
3069
|
+
meta: z.ZodObject<{
|
|
3070
|
+
readonly requestId: z.ZodString;
|
|
3071
|
+
readonly surface: z.ZodLiteral<"partner">;
|
|
3072
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
3073
|
+
}, z.core.$strip>;
|
|
3074
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3075
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3076
|
+
readonly mode: z.ZodLiteral<"exempt">;
|
|
3077
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3078
|
+
readonly meters: z.ZodObject<{
|
|
3079
|
+
readonly sites: z.ZodObject<{
|
|
3080
|
+
readonly used: z.ZodNumber;
|
|
3081
|
+
readonly allowance: z.ZodNumber;
|
|
3082
|
+
}, z.core.$strip>;
|
|
3083
|
+
readonly preservedRows: z.ZodObject<{
|
|
3084
|
+
readonly used: z.ZodNullable<z.ZodNumber>;
|
|
3085
|
+
readonly allowance: z.ZodNumber;
|
|
3086
|
+
}, z.core.$strip>;
|
|
3087
|
+
readonly urlInspections: z.ZodObject<{
|
|
3088
|
+
readonly used: z.ZodNumber;
|
|
3089
|
+
readonly allowance: z.ZodNullable<z.ZodNumber>;
|
|
3090
|
+
readonly resetsAt: z.ZodISODate;
|
|
3091
|
+
}, z.core.$strip>;
|
|
3092
|
+
}, z.core.$strip>;
|
|
3093
|
+
readonly heldSites: z.ZodArray<z.ZodObject<{
|
|
3094
|
+
readonly siteId: z.ZodString;
|
|
3095
|
+
readonly hold: z.ZodEnum<{
|
|
3096
|
+
size_limit: "size_limit";
|
|
3097
|
+
sitemap_limit: "sitemap_limit";
|
|
3098
|
+
size_unknown: "size_unknown";
|
|
3099
|
+
size_pending: "size_pending";
|
|
3100
|
+
}>;
|
|
3101
|
+
}, z.core.$strip>>;
|
|
3102
|
+
readonly mode: z.ZodLiteral<"metered">;
|
|
3103
|
+
readonly phase: z.ZodEnum<{
|
|
3104
|
+
beta: "beta";
|
|
3105
|
+
billing: "billing";
|
|
3106
|
+
}>;
|
|
3107
|
+
readonly sizeLimitRowsPerDay: z.ZodNumber;
|
|
3108
|
+
}, z.core.$strip>], "mode">;
|
|
3109
|
+
meta: z.ZodObject<{
|
|
3110
|
+
readonly requestId: z.ZodString;
|
|
3111
|
+
readonly surface: z.ZodLiteral<"partner">;
|
|
3112
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
3113
|
+
}, z.core.$strip>;
|
|
3114
|
+
}, z.core.$strip>>;
|
|
3022
3115
|
registerSiteRequest: z.ZodObject<{
|
|
3023
3116
|
externalSiteId: z.ZodOptional<z.ZodString>;
|
|
3024
3117
|
requestedUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -3034,6 +3127,7 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
3034
3127
|
"site.indexing.ready": "site.indexing.ready";
|
|
3035
3128
|
"site.auth.failed": "site.auth.failed";
|
|
3036
3129
|
"job.failed": "job.failed";
|
|
3130
|
+
"user.allowance.notice": "user.allowance.notice";
|
|
3037
3131
|
}>>>;
|
|
3038
3132
|
enabledSearchTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3039
3133
|
readonly WEB: "web";
|
|
@@ -3462,6 +3556,12 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
3462
3556
|
retry_indexing: "retry_indexing";
|
|
3463
3557
|
}>;
|
|
3464
3558
|
}, z.core.$loose>;
|
|
3559
|
+
hold: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
3560
|
+
size_limit: "size_limit";
|
|
3561
|
+
sitemap_limit: "sitemap_limit";
|
|
3562
|
+
size_unknown: "size_unknown";
|
|
3563
|
+
size_pending: "size_pending";
|
|
3564
|
+
}>>>;
|
|
3465
3565
|
latestError: z.ZodNullable<z.ZodObject<{
|
|
3466
3566
|
code: z.ZodEnum<{
|
|
3467
3567
|
missing_refresh_token: "missing_refresh_token";
|
|
@@ -3619,6 +3719,12 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
3619
3719
|
retry_indexing: "retry_indexing";
|
|
3620
3720
|
}>;
|
|
3621
3721
|
}, z.core.$loose>;
|
|
3722
|
+
hold: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
3723
|
+
size_limit: "size_limit";
|
|
3724
|
+
sitemap_limit: "sitemap_limit";
|
|
3725
|
+
size_unknown: "size_unknown";
|
|
3726
|
+
size_pending: "size_pending";
|
|
3727
|
+
}>>>;
|
|
3622
3728
|
latestError: z.ZodNullable<z.ZodObject<{
|
|
3623
3729
|
code: z.ZodEnum<{
|
|
3624
3730
|
missing_refresh_token: "missing_refresh_token";
|
|
@@ -3972,6 +4078,12 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
3972
4078
|
retry_indexing: "retry_indexing";
|
|
3973
4079
|
}>;
|
|
3974
4080
|
}, z.core.$strip>;
|
|
4081
|
+
readonly hold: z.ZodNullable<z.ZodEnum<{
|
|
4082
|
+
size_limit: "size_limit";
|
|
4083
|
+
sitemap_limit: "sitemap_limit";
|
|
4084
|
+
size_unknown: "size_unknown";
|
|
4085
|
+
size_pending: "size_pending";
|
|
4086
|
+
}>>;
|
|
3975
4087
|
readonly latestError: z.ZodNullable<z.ZodObject<{
|
|
3976
4088
|
readonly code: z.ZodEnum<{
|
|
3977
4089
|
missing_refresh_token: "missing_refresh_token";
|
|
@@ -4128,6 +4240,12 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
4128
4240
|
retry_indexing: "retry_indexing";
|
|
4129
4241
|
}>;
|
|
4130
4242
|
}, z.core.$strip>;
|
|
4243
|
+
readonly hold: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
4244
|
+
size_limit: "size_limit";
|
|
4245
|
+
sitemap_limit: "sitemap_limit";
|
|
4246
|
+
size_unknown: "size_unknown";
|
|
4247
|
+
size_pending: "size_pending";
|
|
4248
|
+
}>>>;
|
|
4131
4249
|
readonly latestError: z.ZodNullable<z.ZodObject<{
|
|
4132
4250
|
readonly code: z.ZodEnum<{
|
|
4133
4251
|
missing_refresh_token: "missing_refresh_token";
|
|
@@ -4238,6 +4356,213 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
4238
4356
|
readonly method: "GET";
|
|
4239
4357
|
readonly path: "/users/{userId}/lifecycle";
|
|
4240
4358
|
};
|
|
4359
|
+
readonly getUserEntitlements: {
|
|
4360
|
+
readonly visibility: "public";
|
|
4361
|
+
readonly semantics: {
|
|
4362
|
+
readonly kind: "query";
|
|
4363
|
+
readonly sideEffects: "none";
|
|
4364
|
+
readonly idempotent: true;
|
|
4365
|
+
readonly retry: "idempotent";
|
|
4366
|
+
readonly readConsistency: "primary";
|
|
4367
|
+
};
|
|
4368
|
+
readonly auth: {
|
|
4369
|
+
readonly credentials: readonly ["user_key", "partner_key"];
|
|
4370
|
+
readonly scopes: readonly ["users:read"];
|
|
4371
|
+
readonly ownership: readonly [{
|
|
4372
|
+
readonly credential: "user_key";
|
|
4373
|
+
readonly rule: "self";
|
|
4374
|
+
}, {
|
|
4375
|
+
readonly credential: "partner_key";
|
|
4376
|
+
readonly rule: "linked_user";
|
|
4377
|
+
}];
|
|
4378
|
+
};
|
|
4379
|
+
readonly request: {
|
|
4380
|
+
readonly params: z.ZodObject<{
|
|
4381
|
+
userId: z.ZodString;
|
|
4382
|
+
}, z.core.$strict>;
|
|
4383
|
+
readonly query: null;
|
|
4384
|
+
readonly headers: z.ZodObject<{
|
|
4385
|
+
'x-request-id': z.ZodOptional<z.ZodString>;
|
|
4386
|
+
}, z.core.$strict>;
|
|
4387
|
+
readonly body: null;
|
|
4388
|
+
};
|
|
4389
|
+
readonly responses: {
|
|
4390
|
+
readonly 200: CompatibleResponseSchema<z.ZodObject<{
|
|
4391
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4392
|
+
readonly mode: z.ZodLiteral<"exempt">;
|
|
4393
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4394
|
+
readonly meters: z.ZodObject<{
|
|
4395
|
+
readonly sites: z.ZodObject<{
|
|
4396
|
+
readonly used: z.ZodNumber;
|
|
4397
|
+
readonly allowance: z.ZodNumber;
|
|
4398
|
+
}, z.core.$strip>;
|
|
4399
|
+
readonly preservedRows: z.ZodObject<{
|
|
4400
|
+
readonly used: z.ZodNullable<z.ZodNumber>;
|
|
4401
|
+
readonly allowance: z.ZodNumber;
|
|
4402
|
+
}, z.core.$strip>;
|
|
4403
|
+
readonly urlInspections: z.ZodObject<{
|
|
4404
|
+
readonly used: z.ZodNumber;
|
|
4405
|
+
readonly allowance: z.ZodNullable<z.ZodNumber>;
|
|
4406
|
+
readonly resetsAt: z.ZodISODate;
|
|
4407
|
+
}, z.core.$strip>;
|
|
4408
|
+
}, z.core.$strip>;
|
|
4409
|
+
readonly heldSites: z.ZodArray<z.ZodObject<{
|
|
4410
|
+
readonly siteId: z.ZodString;
|
|
4411
|
+
readonly hold: z.ZodEnum<{
|
|
4412
|
+
size_limit: "size_limit";
|
|
4413
|
+
sitemap_limit: "sitemap_limit";
|
|
4414
|
+
size_unknown: "size_unknown";
|
|
4415
|
+
size_pending: "size_pending";
|
|
4416
|
+
}>;
|
|
4417
|
+
}, z.core.$strip>>;
|
|
4418
|
+
readonly mode: z.ZodLiteral<"metered">;
|
|
4419
|
+
readonly phase: z.ZodEnum<{
|
|
4420
|
+
beta: "beta";
|
|
4421
|
+
billing: "billing";
|
|
4422
|
+
}>;
|
|
4423
|
+
readonly sizeLimitRowsPerDay: z.ZodNumber;
|
|
4424
|
+
}, z.core.$strip>], "mode">;
|
|
4425
|
+
meta: z.ZodObject<{
|
|
4426
|
+
readonly requestId: z.ZodString;
|
|
4427
|
+
readonly surface: z.ZodLiteral<"partner">;
|
|
4428
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
4429
|
+
}, z.core.$strip>;
|
|
4430
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4431
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4432
|
+
readonly mode: z.ZodLiteral<"exempt">;
|
|
4433
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4434
|
+
readonly meters: z.ZodObject<{
|
|
4435
|
+
readonly sites: z.ZodObject<{
|
|
4436
|
+
readonly used: z.ZodNumber;
|
|
4437
|
+
readonly allowance: z.ZodNumber;
|
|
4438
|
+
}, z.core.$strip>;
|
|
4439
|
+
readonly preservedRows: z.ZodObject<{
|
|
4440
|
+
readonly used: z.ZodNullable<z.ZodNumber>;
|
|
4441
|
+
readonly allowance: z.ZodNumber;
|
|
4442
|
+
}, z.core.$strip>;
|
|
4443
|
+
readonly urlInspections: z.ZodObject<{
|
|
4444
|
+
readonly used: z.ZodNumber;
|
|
4445
|
+
readonly allowance: z.ZodNullable<z.ZodNumber>;
|
|
4446
|
+
readonly resetsAt: z.ZodISODate;
|
|
4447
|
+
}, z.core.$strip>;
|
|
4448
|
+
}, z.core.$strip>;
|
|
4449
|
+
readonly heldSites: z.ZodArray<z.ZodObject<{
|
|
4450
|
+
readonly siteId: z.ZodString;
|
|
4451
|
+
readonly hold: z.ZodEnum<{
|
|
4452
|
+
size_limit: "size_limit";
|
|
4453
|
+
sitemap_limit: "sitemap_limit";
|
|
4454
|
+
size_unknown: "size_unknown";
|
|
4455
|
+
size_pending: "size_pending";
|
|
4456
|
+
}>;
|
|
4457
|
+
}, z.core.$strip>>;
|
|
4458
|
+
readonly mode: z.ZodLiteral<"metered">;
|
|
4459
|
+
readonly phase: z.ZodEnum<{
|
|
4460
|
+
beta: "beta";
|
|
4461
|
+
billing: "billing";
|
|
4462
|
+
}>;
|
|
4463
|
+
readonly sizeLimitRowsPerDay: z.ZodNumber;
|
|
4464
|
+
}, z.core.$strip>], "mode">;
|
|
4465
|
+
meta: z.ZodObject<{
|
|
4466
|
+
readonly requestId: z.ZodString;
|
|
4467
|
+
readonly surface: z.ZodLiteral<"partner">;
|
|
4468
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
4469
|
+
}, z.core.$strip>;
|
|
4470
|
+
}, z.core.$strip>>;
|
|
4471
|
+
};
|
|
4472
|
+
readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"];
|
|
4473
|
+
readonly errorResponse: CompatibleResponseSchema<z.ZodObject<{
|
|
4474
|
+
readonly error: z.ZodObject<{
|
|
4475
|
+
code: z.ZodEnum<{
|
|
4476
|
+
internal_error: "internal_error";
|
|
4477
|
+
invalid_request: "invalid_request";
|
|
4478
|
+
unauthorized: "unauthorized";
|
|
4479
|
+
forbidden: "forbidden";
|
|
4480
|
+
user_not_found: "user_not_found";
|
|
4481
|
+
rate_limited: "rate_limited";
|
|
4482
|
+
contract_violation: "contract_violation";
|
|
4483
|
+
}>;
|
|
4484
|
+
message: z.ZodString;
|
|
4485
|
+
requestId: z.ZodString;
|
|
4486
|
+
retryable: z.ZodBoolean;
|
|
4487
|
+
details: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
4488
|
+
}, z.core.$strict>;
|
|
4489
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4490
|
+
readonly error: z.ZodObject<{
|
|
4491
|
+
code: z.ZodEnum<{
|
|
4492
|
+
internal_error: "internal_error";
|
|
4493
|
+
invalid_request: "invalid_request";
|
|
4494
|
+
unauthorized: "unauthorized";
|
|
4495
|
+
forbidden: "forbidden";
|
|
4496
|
+
user_not_found: "user_not_found";
|
|
4497
|
+
rate_limited: "rate_limited";
|
|
4498
|
+
contract_violation: "contract_violation";
|
|
4499
|
+
}>;
|
|
4500
|
+
message: z.ZodString;
|
|
4501
|
+
requestId: z.ZodString;
|
|
4502
|
+
retryable: z.ZodBoolean;
|
|
4503
|
+
details: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
4504
|
+
}, z.core.$loose>;
|
|
4505
|
+
}, z.core.$strip>>;
|
|
4506
|
+
readonly resources: {
|
|
4507
|
+
readonly reads: readonly [{
|
|
4508
|
+
readonly type: "partner.user";
|
|
4509
|
+
readonly idFrom: "params.userId";
|
|
4510
|
+
}, {
|
|
4511
|
+
readonly type: "user.sites";
|
|
4512
|
+
readonly idFrom: "params.userId";
|
|
4513
|
+
}];
|
|
4514
|
+
readonly changes: readonly [];
|
|
4515
|
+
};
|
|
4516
|
+
readonly lifecycle: {
|
|
4517
|
+
readonly introduced: "4.7.0";
|
|
4518
|
+
};
|
|
4519
|
+
readonly docs: {
|
|
4520
|
+
readonly summary: "Get user entitlements";
|
|
4521
|
+
readonly description: "Returns the Meters that apply to the user's partner Sites. If the partner is exempt, the response is `{ mode: \"exempt\" }` and no free allowance applies. If the partner is metered, the response gives the usage of the user's Billing owner against each free allowance, the size limit in query×page rows per day, and the held Sites the user can read. `urlInspections.allowance` is `null` when URL Inspections have no cap. `urlInspections.resetsAt` is the first UTC day of the next usage month.";
|
|
4522
|
+
readonly tags: readonly ["Users"];
|
|
4523
|
+
readonly examples: {
|
|
4524
|
+
readonly request: {
|
|
4525
|
+
readonly params: {
|
|
4526
|
+
readonly userId: "u_01";
|
|
4527
|
+
};
|
|
4528
|
+
};
|
|
4529
|
+
readonly response: {
|
|
4530
|
+
readonly data: {
|
|
4531
|
+
readonly mode: "metered";
|
|
4532
|
+
readonly phase: "beta";
|
|
4533
|
+
readonly meters: {
|
|
4534
|
+
readonly sites: {
|
|
4535
|
+
readonly used: 2;
|
|
4536
|
+
readonly allowance: 3;
|
|
4537
|
+
};
|
|
4538
|
+
readonly preservedRows: {
|
|
4539
|
+
readonly used: 120000;
|
|
4540
|
+
readonly allowance: 250000;
|
|
4541
|
+
};
|
|
4542
|
+
readonly urlInspections: {
|
|
4543
|
+
readonly used: 310;
|
|
4544
|
+
readonly allowance: 5000;
|
|
4545
|
+
readonly resetsAt: "2026-11-01";
|
|
4546
|
+
};
|
|
4547
|
+
};
|
|
4548
|
+
readonly sizeLimitRowsPerDay: 2500;
|
|
4549
|
+
readonly heldSites: readonly [{
|
|
4550
|
+
readonly siteId: "s_02";
|
|
4551
|
+
readonly hold: "size_limit";
|
|
4552
|
+
}];
|
|
4553
|
+
};
|
|
4554
|
+
readonly meta: {
|
|
4555
|
+
readonly requestId: "req_01";
|
|
4556
|
+
readonly surface: "partner";
|
|
4557
|
+
readonly version: "1.0";
|
|
4558
|
+
};
|
|
4559
|
+
};
|
|
4560
|
+
};
|
|
4561
|
+
};
|
|
4562
|
+
readonly id: "partner.users.entitlements.get";
|
|
4563
|
+
readonly method: "GET";
|
|
4564
|
+
readonly path: "/users/{userId}/entitlements";
|
|
4565
|
+
};
|
|
4241
4566
|
readonly listAvailableSites: {
|
|
4242
4567
|
readonly visibility: "public";
|
|
4243
4568
|
readonly semantics: {
|
|
@@ -4450,6 +4775,7 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
4450
4775
|
"site.indexing.ready": "site.indexing.ready";
|
|
4451
4776
|
"site.auth.failed": "site.auth.failed";
|
|
4452
4777
|
"job.failed": "job.failed";
|
|
4778
|
+
"user.allowance.notice": "user.allowance.notice";
|
|
4453
4779
|
}>>>;
|
|
4454
4780
|
enabledSearchTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4455
4781
|
readonly WEB: "web";
|
|
@@ -4592,6 +4918,12 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
4592
4918
|
retry_indexing: "retry_indexing";
|
|
4593
4919
|
}>;
|
|
4594
4920
|
}, z.core.$loose>;
|
|
4921
|
+
hold: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
4922
|
+
size_limit: "size_limit";
|
|
4923
|
+
sitemap_limit: "sitemap_limit";
|
|
4924
|
+
size_unknown: "size_unknown";
|
|
4925
|
+
size_pending: "size_pending";
|
|
4926
|
+
}>>>;
|
|
4595
4927
|
latestError: z.ZodNullable<z.ZodObject<{
|
|
4596
4928
|
code: z.ZodEnum<{
|
|
4597
4929
|
missing_refresh_token: "missing_refresh_token";
|
|
@@ -4749,6 +5081,12 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
4749
5081
|
retry_indexing: "retry_indexing";
|
|
4750
5082
|
}>;
|
|
4751
5083
|
}, z.core.$loose>;
|
|
5084
|
+
hold: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
5085
|
+
size_limit: "size_limit";
|
|
5086
|
+
sitemap_limit: "sitemap_limit";
|
|
5087
|
+
size_unknown: "size_unknown";
|
|
5088
|
+
size_pending: "size_pending";
|
|
5089
|
+
}>>>;
|
|
4752
5090
|
latestError: z.ZodNullable<z.ZodObject<{
|
|
4753
5091
|
code: z.ZodEnum<{
|
|
4754
5092
|
missing_refresh_token: "missing_refresh_token";
|
|
@@ -15599,12 +15937,12 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
15599
15937
|
}, z.core.$strict>;
|
|
15600
15938
|
readonly body: z.ZodObject<{
|
|
15601
15939
|
dimensions: z.ZodArray<z.ZodEnum<{
|
|
15602
|
-
date: "date";
|
|
15603
15940
|
page: "page";
|
|
15604
15941
|
query: "query";
|
|
15605
15942
|
queryCanonical: "queryCanonical";
|
|
15606
15943
|
country: "country";
|
|
15607
15944
|
device: "device";
|
|
15945
|
+
date: "date";
|
|
15608
15946
|
searchAppearance: "searchAppearance";
|
|
15609
15947
|
hour: "hour";
|
|
15610
15948
|
}>>;
|
|
@@ -15802,12 +16140,12 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
15802
16140
|
readonly GOOGLE_NEWS: "googleNews";
|
|
15803
16141
|
}>>;
|
|
15804
16142
|
dimensions: z.ZodArray<z.ZodEnum<{
|
|
15805
|
-
date: "date";
|
|
15806
16143
|
page: "page";
|
|
15807
16144
|
query: "query";
|
|
15808
16145
|
queryCanonical: "queryCanonical";
|
|
15809
16146
|
country: "country";
|
|
15810
16147
|
device: "device";
|
|
16148
|
+
date: "date";
|
|
15811
16149
|
searchAppearance: "searchAppearance";
|
|
15812
16150
|
hour: "hour";
|
|
15813
16151
|
}>>;
|
|
@@ -15822,12 +16160,12 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
15822
16160
|
readonly GOOGLE_NEWS: "googleNews";
|
|
15823
16161
|
}>>;
|
|
15824
16162
|
dimensions: z.ZodArray<z.ZodEnum<{
|
|
15825
|
-
date: "date";
|
|
15826
16163
|
page: "page";
|
|
15827
16164
|
query: "query";
|
|
15828
16165
|
queryCanonical: "queryCanonical";
|
|
15829
16166
|
country: "country";
|
|
15830
16167
|
device: "device";
|
|
16168
|
+
date: "date";
|
|
15831
16169
|
searchAppearance: "searchAppearance";
|
|
15832
16170
|
hour: "hour";
|
|
15833
16171
|
}>>;
|
|
@@ -16063,12 +16401,12 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
16063
16401
|
readonly GOOGLE_NEWS: "googleNews";
|
|
16064
16402
|
}>>;
|
|
16065
16403
|
dimensions: z.ZodArray<z.ZodEnum<{
|
|
16066
|
-
date: "date";
|
|
16067
16404
|
page: "page";
|
|
16068
16405
|
query: "query";
|
|
16069
16406
|
queryCanonical: "queryCanonical";
|
|
16070
16407
|
country: "country";
|
|
16071
16408
|
device: "device";
|
|
16409
|
+
date: "date";
|
|
16072
16410
|
searchAppearance: "searchAppearance";
|
|
16073
16411
|
hour: "hour";
|
|
16074
16412
|
}>>;
|
|
@@ -16083,12 +16421,12 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
16083
16421
|
readonly GOOGLE_NEWS: "googleNews";
|
|
16084
16422
|
}>>;
|
|
16085
16423
|
dimensions: z.ZodArray<z.ZodEnum<{
|
|
16086
|
-
date: "date";
|
|
16087
16424
|
page: "page";
|
|
16088
16425
|
query: "query";
|
|
16089
16426
|
queryCanonical: "queryCanonical";
|
|
16090
16427
|
country: "country";
|
|
16091
16428
|
device: "device";
|
|
16429
|
+
date: "date";
|
|
16092
16430
|
searchAppearance: "searchAppearance";
|
|
16093
16431
|
hour: "hour";
|
|
16094
16432
|
}>>;
|
|
@@ -16604,4 +16942,6 @@ export type PartnerSitemapsV1Response = z.infer<GscdumpV1Protocol['schemas']['si
|
|
|
16604
16942
|
export type PartnerSitemapChangesV1Response = z.infer<GscdumpV1Protocol['schemas']['sitemapChangesResponse']['client']>;
|
|
16605
16943
|
export type PartnerSiteRegistrationV1Response = z.infer<GscdumpV1Protocol['schemas']['siteRegistrationResponse']['client']>;
|
|
16606
16944
|
export type PartnerSiteDeletionV1Response = z.infer<GscdumpV1Protocol['schemas']['siteDeletionResponse']['client']>;
|
|
16607
|
-
export type PartnerUserLifecycleV1Response = z.infer<GscdumpV1Protocol['schemas']['lifecycleResponse']['client']>;
|
|
16945
|
+
export type PartnerUserLifecycleV1Response = z.infer<GscdumpV1Protocol['schemas']['lifecycleResponse']['client']>;
|
|
16946
|
+
export type PartnerUserEntitlementsV1Response = z.infer<GscdumpV1Protocol['schemas']['userEntitlementsResponse']['client']>;
|
|
16947
|
+
export type PartnerUserEntitlementsV1 = PartnerUserEntitlementsV1Response['data'];
|