lancer-shared 1.2.25 → 1.2.27

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.
Files changed (120) hide show
  1. package/dist/bundle.cjs.js +19345 -11795
  2. package/dist/constants/campaign-notifications.d.ts +2 -0
  3. package/dist/constants/organization.d.ts +2 -2
  4. package/dist/constants/proxies.d.ts +4 -0
  5. package/dist/constants/routes.d.ts +17 -8
  6. package/dist/constants/routes.js +6 -0
  7. package/dist/constants/upwork-accounts.d.ts +1 -1
  8. package/dist/constants/upwork-filters.d.ts +5 -0
  9. package/dist/constants/upwork-filters.js +75 -0
  10. package/dist/index.d.ts +3 -3
  11. package/dist/schemas/account/account-status.d.ts +2 -2
  12. package/dist/schemas/account/bidder-account.d.ts +286 -36
  13. package/dist/schemas/account/exceptions/index.d.ts +3 -0
  14. package/dist/schemas/account/exceptions/invalid-google-oauth-token.exception.d.ts +5 -0
  15. package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +5 -0
  16. package/dist/schemas/account/exceptions/no-bidder-accounts-available.exception.d.ts +5 -0
  17. package/dist/schemas/account/exceptions/no-google-oauth-tokens-found.exception.d.ts +5 -0
  18. package/dist/schemas/account/index.d.ts +4 -3
  19. package/dist/schemas/account/scraper-account.d.ts +7 -7
  20. package/dist/schemas/ai-config/ai-config.d.ts +39 -0
  21. package/dist/schemas/ai-config/ai-config.js +12 -0
  22. package/dist/schemas/ai-config/index.d.ts +1 -0
  23. package/dist/schemas/ai-config/index.js +17 -0
  24. package/dist/schemas/bid/bid-status.d.ts +30 -0
  25. package/dist/schemas/bid/bid-status.js +15 -0
  26. package/dist/schemas/bid/exceptions/base-exception.d.ts +4 -0
  27. package/dist/schemas/bid/exceptions/cloudflare-challenge-failed.exception.d.ts +5 -0
  28. package/dist/schemas/bid/exceptions/delete-multilogin-profile.exception.d.ts +5 -0
  29. package/dist/schemas/bid/exceptions/dropdown-option-not-present.exception.d.ts +5 -0
  30. package/dist/schemas/bid/exceptions/element-not-clickable.exception.d.ts +5 -0
  31. package/dist/schemas/bid/exceptions/evalaute-element.exception.d.ts +5 -0
  32. package/dist/schemas/bid/exceptions/evaluate-function.exception.d.ts +5 -0
  33. package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +5 -0
  34. package/dist/schemas/bid/exceptions/get-multilogin-browser.exception.d.ts +5 -0
  35. package/dist/schemas/bid/exceptions/incorrect-security-question-answer.exception.d.ts +5 -0
  36. package/dist/schemas/bid/exceptions/index.d.ts +61 -0
  37. package/dist/schemas/bid/exceptions/init-browser.exception.d.ts +5 -0
  38. package/dist/schemas/bid/exceptions/insufficient-connects.exception.d.ts +5 -0
  39. package/dist/schemas/bid/exceptions/invalid-credentials.exception.d.ts +5 -0
  40. package/dist/schemas/bid/exceptions/invalid-job-url.exception.d.ts +5 -0
  41. package/dist/schemas/bid/exceptions/login-failed.exception.d.ts +5 -0
  42. package/dist/schemas/bid/exceptions/multilogin-authentication.exception.d.ts +5 -0
  43. package/dist/schemas/bid/exceptions/navigation-timeout.exception.d.ts +5 -0
  44. package/dist/schemas/bid/exceptions/new-browser-page.exception.d.ts +5 -0
  45. package/dist/schemas/bid/exceptions/new-page.exception.d.ts +5 -0
  46. package/dist/schemas/bid/exceptions/open-new-url.exception.d.ts +5 -0
  47. package/dist/schemas/bid/exceptions/parse-connects.exception.d.ts +5 -0
  48. package/dist/schemas/bid/exceptions/proposal-error-alert.exception.d.ts +5 -0
  49. package/dist/schemas/bid/exceptions/proposal-form-warning-alert.exception.d.ts +5 -0
  50. package/dist/schemas/bid/exceptions/proposal-submit-failed.exception.d.ts +5 -0
  51. package/dist/schemas/bid/exceptions/pupeteer-conection-error.exception.d.ts +5 -0
  52. package/dist/schemas/bid/exceptions/question-pair-not-matching.exception.d.ts +5 -0
  53. package/dist/schemas/bid/exceptions/select-agency.exception.d.ts +5 -0
  54. package/dist/schemas/bid/exceptions/select-contractor.exception.d.ts +5 -0
  55. package/dist/schemas/bid/exceptions/selector-not-found.exception.d.ts +5 -0
  56. package/dist/schemas/bid/exceptions/typed-value-not-matching.exception.d.ts +5 -0
  57. package/dist/schemas/bid/exceptions/typing-input-field.exception.d.ts +5 -0
  58. package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +5 -0
  59. package/dist/schemas/bid/exceptions/wait-for-function-timeout.exception.d.ts +5 -0
  60. package/dist/schemas/bid/index.d.ts +1 -0
  61. package/dist/schemas/bidding/proposal-dto.d.ts +26 -0
  62. package/dist/schemas/bidding/proposal-dto.js +18 -0
  63. package/dist/schemas/campaign/campaign-integrations.d.ts +0 -5
  64. package/dist/schemas/campaign/campaign-notifications.d.ts +9 -0
  65. package/dist/schemas/campaign/campaign.d.ts +171 -238
  66. package/dist/schemas/campaign/index.d.ts +6 -6
  67. package/dist/schemas/index.d.ts +1 -0
  68. package/dist/schemas/invoice/index.d.ts +3 -0
  69. package/dist/schemas/job/job-pipeline.d.ts +74 -0
  70. package/dist/schemas/job/job-pipeline.js +29 -0
  71. package/dist/schemas/job/job-suitability.d.ts +12 -0
  72. package/dist/schemas/job/job-suitability.js +13 -0
  73. package/dist/schemas/job/job.d.ts +16 -16
  74. package/dist/schemas/job/pipeline-job.d.ts +9 -3
  75. package/dist/schemas/job/pipeline-job.js +1 -0
  76. package/dist/schemas/knowledge-object/index.d.ts +1 -0
  77. package/dist/schemas/knowledge-object/index.js +17 -0
  78. package/dist/schemas/knowledge-object/knowledge-object.d.ts +128 -0
  79. package/dist/schemas/knowledge-object/knowledge-object.js +47 -0
  80. package/dist/schemas/logger/log-event.d.ts +18 -17
  81. package/dist/schemas/organization/index.d.ts +16 -67
  82. package/dist/schemas/organization/subscription.d.ts +3 -0
  83. package/dist/schemas/proxy/proxy.js +3 -1
  84. package/dist/schemas/scraper/scrape-payload.d.ts +72 -60
  85. package/dist/schemas/scraper/scrape-response.d.ts +345 -0
  86. package/dist/schemas/scraper/scrape-response.js +9 -0
  87. package/dist/schemas/upwork-account/index.d.ts +1 -1
  88. package/dist/schemas/upwork-account/index.js +1 -1
  89. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +14 -14
  90. package/dist/schemas/upwork-account/upwork-business-manager-account.js +2 -2
  91. package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +92 -0
  92. package/dist/schemas/upwork-account/upwork-scraper-account.js +31 -0
  93. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +23 -23
  94. package/dist/schemas/upwork-account/upwork-scraping-account.js +4 -3
  95. package/dist/schemas/usage-event/index.d.ts +62 -0
  96. package/dist/types/ai-config/ai-config.d.ts +6 -0
  97. package/dist/types/ai-config/ai-config.js +2 -0
  98. package/dist/types/ai-config/index.d.ts +1 -0
  99. package/dist/types/ai-config/index.js +17 -0
  100. package/dist/types/bid/bid-status.d.ts +5 -0
  101. package/dist/types/bid/bid-status.js +2 -0
  102. package/dist/types/bidding/proposal-dto.d.ts +3 -0
  103. package/dist/types/bidding/proposal-dto.js +2 -0
  104. package/dist/types/campaign/campaign-insights.d.ts +1 -2
  105. package/dist/types/campaign/campaign-notifications.d.ts +7 -0
  106. package/dist/types/campaign/campaign.d.ts +5 -6
  107. package/dist/types/campaign/index.d.ts +3 -6
  108. package/dist/types/job/job-pipeline.d.ts +4 -0
  109. package/dist/types/job/job-pipeline.js +2 -0
  110. package/dist/types/job/job-suitability.d.ts +3 -0
  111. package/dist/types/job/job-suitability.js +2 -0
  112. package/dist/types/knowledge-object/index.d.ts +1 -0
  113. package/dist/types/knowledge-object/index.js +17 -0
  114. package/dist/types/knowledge-object/knowledge-object.d.ts +4 -0
  115. package/dist/types/knowledge-object/knowledge-object.js +2 -0
  116. package/dist/types/logger/log-event.d.ts +5 -4
  117. package/dist/types/scraper/scrape-response.d.ts +4 -0
  118. package/dist/types/scraper/scrape-response.js +2 -0
  119. package/dist/types/upwork-account/upwork-scraping-account.d.ts +2 -2
  120. package/package.json +1 -1
@@ -1,126 +1,376 @@
1
- import { z } from "zod";
1
+ import { z } from 'zod';
2
2
  export declare const bidderAccountProvider: z.ZodEnum<["user-provided", "lancer-provided"]>;
3
+ export declare const bidderAccountCredentialsStatus: z.ZodEnum<["pending_verification", "verified", "invalid"]>;
4
+ export declare const bidderAccountAgencySchema: z.ZodObject<{
5
+ name: z.ZodString;
6
+ logoUrl: z.ZodNullable<z.ZodString>;
7
+ contractors: z.ZodArray<z.ZodString, "many">;
8
+ organizationId: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ name: string;
11
+ logoUrl: string | null;
12
+ contractors: string[];
13
+ organizationId: string;
14
+ }, {
15
+ name: string;
16
+ logoUrl: string | null;
17
+ contractors: string[];
18
+ organizationId: string;
19
+ }>;
3
20
  export declare const bidderAccountSchema: z.ZodObject<{
4
21
  id: z.ZodString;
5
22
  provider: z.ZodEnum<["user-provided", "lancer-provided"]>;
6
23
  email: z.ZodString;
7
24
  password: z.ZodString;
8
- cookies: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
9
- status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
10
- verified: z.ZodBoolean;
11
- isActive: z.ZodBoolean;
25
+ securityQuestionAnswer: z.ZodNullable<z.ZodString>;
12
26
  assignedOrganizations: z.ZodArray<z.ZodString, "many">;
27
+ googleOauthTokens: z.ZodNullable<z.ZodAny>;
13
28
  lastUsed: z.ZodNullable<z.ZodNumber>;
14
29
  multiLoginProfileId: z.ZodNullable<z.ZodString>;
15
30
  proxyId: z.ZodNullable<z.ZodString>;
31
+ profilePhotoUrl: z.ZodNullable<z.ZodString>;
32
+ name: z.ZodNullable<z.ZodString>;
33
+ agencies: z.ZodNullable<z.ZodArray<z.ZodObject<{
34
+ name: z.ZodString;
35
+ logoUrl: z.ZodNullable<z.ZodString>;
36
+ contractors: z.ZodArray<z.ZodString, "many">;
37
+ organizationId: z.ZodString;
38
+ }, "strip", z.ZodTypeAny, {
39
+ name: string;
40
+ logoUrl: string | null;
41
+ contractors: string[];
42
+ organizationId: string;
43
+ }, {
44
+ name: string;
45
+ logoUrl: string | null;
46
+ contractors: string[];
47
+ organizationId: string;
48
+ }>, "many">>;
16
49
  createdAt: z.ZodNumber;
17
50
  updatedAt: z.ZodNumber;
18
51
  }, "strip", z.ZodTypeAny, {
52
+ name: string | null;
19
53
  id: string;
20
54
  provider: "user-provided" | "lancer-provided";
21
55
  email: string;
22
56
  password: string;
23
- cookies: any[] | null;
24
- status: "verification_required" | "shadow_banned" | "healthy" | "banned" | "suspended";
25
- verified: boolean;
26
- isActive: boolean;
57
+ securityQuestionAnswer: string | null;
27
58
  assignedOrganizations: string[];
28
59
  lastUsed: number | null;
29
60
  multiLoginProfileId: string | null;
30
61
  proxyId: string | null;
62
+ profilePhotoUrl: string | null;
63
+ agencies: {
64
+ name: string;
65
+ logoUrl: string | null;
66
+ contractors: string[];
67
+ organizationId: string;
68
+ }[] | null;
31
69
  createdAt: number;
32
70
  updatedAt: number;
71
+ googleOauthTokens?: any;
33
72
  }, {
73
+ name: string | null;
34
74
  id: string;
35
75
  provider: "user-provided" | "lancer-provided";
36
76
  email: string;
37
77
  password: string;
38
- cookies: any[] | null;
39
- status: "verification_required" | "shadow_banned" | "healthy" | "banned" | "suspended";
40
- verified: boolean;
41
- isActive: boolean;
78
+ securityQuestionAnswer: string | null;
42
79
  assignedOrganizations: string[];
43
80
  lastUsed: number | null;
44
81
  multiLoginProfileId: string | null;
45
82
  proxyId: string | null;
83
+ profilePhotoUrl: string | null;
84
+ agencies: {
85
+ name: string;
86
+ logoUrl: string | null;
87
+ contractors: string[];
88
+ organizationId: string;
89
+ }[] | null;
46
90
  createdAt: number;
47
91
  updatedAt: number;
92
+ googleOauthTokens?: any;
48
93
  }>;
49
94
  export declare const createBidderAccountSchema: z.ZodObject<Pick<{
50
95
  id: z.ZodString;
51
96
  provider: z.ZodEnum<["user-provided", "lancer-provided"]>;
52
97
  email: z.ZodString;
53
98
  password: z.ZodString;
54
- cookies: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
55
- status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
56
- verified: z.ZodBoolean;
57
- isActive: z.ZodBoolean;
99
+ securityQuestionAnswer: z.ZodNullable<z.ZodString>;
58
100
  assignedOrganizations: z.ZodArray<z.ZodString, "many">;
101
+ googleOauthTokens: z.ZodNullable<z.ZodAny>;
59
102
  lastUsed: z.ZodNullable<z.ZodNumber>;
60
103
  multiLoginProfileId: z.ZodNullable<z.ZodString>;
61
104
  proxyId: z.ZodNullable<z.ZodString>;
105
+ profilePhotoUrl: z.ZodNullable<z.ZodString>;
106
+ name: z.ZodNullable<z.ZodString>;
107
+ agencies: z.ZodNullable<z.ZodArray<z.ZodObject<{
108
+ name: z.ZodString;
109
+ logoUrl: z.ZodNullable<z.ZodString>;
110
+ contractors: z.ZodArray<z.ZodString, "many">;
111
+ organizationId: z.ZodString;
112
+ }, "strip", z.ZodTypeAny, {
113
+ name: string;
114
+ logoUrl: string | null;
115
+ contractors: string[];
116
+ organizationId: string;
117
+ }, {
118
+ name: string;
119
+ logoUrl: string | null;
120
+ contractors: string[];
121
+ organizationId: string;
122
+ }>, "many">>;
62
123
  createdAt: z.ZodNumber;
63
124
  updatedAt: z.ZodNumber;
64
- }, "provider" | "email" | "password" | "status" | "verified" | "isActive">, "strip", z.ZodTypeAny, {
125
+ }, "name" | "provider" | "email" | "password" | "securityQuestionAnswer" | "assignedOrganizations" | "profilePhotoUrl" | "agencies">, "strip", z.ZodTypeAny, {
126
+ name: string | null;
65
127
  provider: "user-provided" | "lancer-provided";
66
128
  email: string;
67
129
  password: string;
68
- status: "verification_required" | "shadow_banned" | "healthy" | "banned" | "suspended";
69
- verified: boolean;
70
- isActive: boolean;
130
+ securityQuestionAnswer: string | null;
131
+ assignedOrganizations: string[];
132
+ profilePhotoUrl: string | null;
133
+ agencies: {
134
+ name: string;
135
+ logoUrl: string | null;
136
+ contractors: string[];
137
+ organizationId: string;
138
+ }[] | null;
71
139
  }, {
140
+ name: string | null;
72
141
  provider: "user-provided" | "lancer-provided";
73
142
  email: string;
74
143
  password: string;
75
- status: "verification_required" | "shadow_banned" | "healthy" | "banned" | "suspended";
76
- verified: boolean;
77
- isActive: boolean;
144
+ securityQuestionAnswer: string | null;
145
+ assignedOrganizations: string[];
146
+ profilePhotoUrl: string | null;
147
+ agencies: {
148
+ name: string;
149
+ logoUrl: string | null;
150
+ contractors: string[];
151
+ organizationId: string;
152
+ }[] | null;
78
153
  }>;
79
154
  export declare const updateBidderAccountSchema: z.ZodObject<{
155
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
156
  provider: z.ZodOptional<z.ZodEnum<["user-provided", "lancer-provided"]>>;
81
157
  email: z.ZodOptional<z.ZodString>;
82
158
  password: z.ZodOptional<z.ZodString>;
83
- cookies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
84
- status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
85
- verified: z.ZodOptional<z.ZodBoolean>;
86
- isActive: z.ZodOptional<z.ZodBoolean>;
159
+ securityQuestionAnswer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
160
  assignedOrganizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
161
+ googleOauthTokens: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
88
162
  lastUsed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
89
163
  multiLoginProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
164
  proxyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
+ profilePhotoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
166
+ agencies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
167
+ name: z.ZodString;
168
+ logoUrl: z.ZodNullable<z.ZodString>;
169
+ contractors: z.ZodArray<z.ZodString, "many">;
170
+ organizationId: z.ZodString;
171
+ }, "strip", z.ZodTypeAny, {
172
+ name: string;
173
+ logoUrl: string | null;
174
+ contractors: string[];
175
+ organizationId: string;
176
+ }, {
177
+ name: string;
178
+ logoUrl: string | null;
179
+ contractors: string[];
180
+ organizationId: string;
181
+ }>, "many">>>;
91
182
  createdAt: z.ZodOptional<z.ZodNumber>;
92
183
  updatedAt: z.ZodOptional<z.ZodNumber>;
93
184
  }, "strip", z.ZodTypeAny, {
185
+ name?: string | null | undefined;
94
186
  provider?: "user-provided" | "lancer-provided" | undefined;
95
187
  email?: string | undefined;
96
188
  password?: string | undefined;
97
- cookies?: any[] | null | undefined;
98
- status?: "verification_required" | "shadow_banned" | "healthy" | "banned" | "suspended" | undefined;
99
- verified?: boolean | undefined;
100
- isActive?: boolean | undefined;
189
+ securityQuestionAnswer?: string | null | undefined;
101
190
  assignedOrganizations?: string[] | undefined;
191
+ googleOauthTokens?: any;
102
192
  lastUsed?: number | null | undefined;
103
193
  multiLoginProfileId?: string | null | undefined;
104
194
  proxyId?: string | null | undefined;
195
+ profilePhotoUrl?: string | null | undefined;
196
+ agencies?: {
197
+ name: string;
198
+ logoUrl: string | null;
199
+ contractors: string[];
200
+ organizationId: string;
201
+ }[] | null | undefined;
105
202
  createdAt?: number | undefined;
106
203
  updatedAt?: number | undefined;
107
204
  }, {
205
+ name?: string | null | undefined;
108
206
  provider?: "user-provided" | "lancer-provided" | undefined;
109
207
  email?: string | undefined;
110
208
  password?: string | undefined;
111
- cookies?: any[] | null | undefined;
112
- status?: "verification_required" | "shadow_banned" | "healthy" | "banned" | "suspended" | undefined;
113
- verified?: boolean | undefined;
114
- isActive?: boolean | undefined;
209
+ securityQuestionAnswer?: string | null | undefined;
115
210
  assignedOrganizations?: string[] | undefined;
211
+ googleOauthTokens?: any;
116
212
  lastUsed?: number | null | undefined;
117
213
  multiLoginProfileId?: string | null | undefined;
118
214
  proxyId?: string | null | undefined;
215
+ profilePhotoUrl?: string | null | undefined;
216
+ agencies?: {
217
+ name: string;
218
+ logoUrl: string | null;
219
+ contractors: string[];
220
+ organizationId: string;
221
+ }[] | null | undefined;
119
222
  createdAt?: number | undefined;
120
223
  updatedAt?: number | undefined;
121
224
  }>;
225
+ export declare const verifyBidderAccountCredentialsSchema: z.ZodObject<{
226
+ email: z.ZodString;
227
+ password: z.ZodString;
228
+ securityQuestionAnswer: z.ZodString;
229
+ multiloginProfileId: z.ZodString;
230
+ proxy: z.ZodObject<{
231
+ id: z.ZodString;
232
+ externalId: z.ZodString;
233
+ host: z.ZodString;
234
+ port: z.ZodNumber;
235
+ username: z.ZodString;
236
+ password: z.ZodString;
237
+ provider: z.ZodEnum<["webshare"]>;
238
+ fraudScore: z.ZodNullable<z.ZodNumber>;
239
+ claimedCountry: z.ZodEnum<["US", "CA", "GB", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]>;
240
+ status: z.ZodNullable<z.ZodEnum<["invalid", "valid", "pending_validation"]>>;
241
+ country: z.ZodNullable<z.ZodEnum<["US", "CA", "GB", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]>>;
242
+ bidderId: z.ZodNullable<z.ZodString>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ status: "invalid" | "valid" | "pending_validation" | null;
245
+ id: string;
246
+ provider: "webshare";
247
+ password: string;
248
+ externalId: string;
249
+ host: string;
250
+ port: number;
251
+ username: string;
252
+ fraudScore: number | null;
253
+ claimedCountry: "US" | "CA" | "GB" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW";
254
+ country: "US" | "CA" | "GB" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW" | null;
255
+ bidderId: string | null;
256
+ }, {
257
+ status: "invalid" | "valid" | "pending_validation" | null;
258
+ id: string;
259
+ provider: "webshare";
260
+ password: string;
261
+ externalId: string;
262
+ host: string;
263
+ port: number;
264
+ username: string;
265
+ fraudScore: number | null;
266
+ claimedCountry: "US" | "CA" | "GB" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW";
267
+ country: "US" | "CA" | "GB" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW" | null;
268
+ bidderId: string | null;
269
+ }>;
270
+ }, "strip", z.ZodTypeAny, {
271
+ email: string;
272
+ password: string;
273
+ securityQuestionAnswer: string;
274
+ multiloginProfileId: string;
275
+ proxy: {
276
+ status: "invalid" | "valid" | "pending_validation" | null;
277
+ id: string;
278
+ provider: "webshare";
279
+ password: string;
280
+ externalId: string;
281
+ host: string;
282
+ port: number;
283
+ username: string;
284
+ fraudScore: number | null;
285
+ claimedCountry: "US" | "CA" | "GB" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW";
286
+ country: "US" | "CA" | "GB" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW" | null;
287
+ bidderId: string | null;
288
+ };
289
+ }, {
290
+ email: string;
291
+ password: string;
292
+ securityQuestionAnswer: string;
293
+ multiloginProfileId: string;
294
+ proxy: {
295
+ status: "invalid" | "valid" | "pending_validation" | null;
296
+ id: string;
297
+ provider: "webshare";
298
+ password: string;
299
+ externalId: string;
300
+ host: string;
301
+ port: number;
302
+ username: string;
303
+ fraudScore: number | null;
304
+ claimedCountry: "US" | "CA" | "GB" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW";
305
+ country: "US" | "CA" | "GB" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW" | null;
306
+ bidderId: string | null;
307
+ };
308
+ }>;
309
+ export declare const verifyBidderAccountCredentialsResponseSchema: z.ZodObject<{
310
+ accountName: z.ZodNullable<z.ZodString>;
311
+ accountPhotoUrl: z.ZodNullable<z.ZodString>;
312
+ agencies: z.ZodNullable<z.ZodArray<z.ZodObject<{
313
+ name: z.ZodString;
314
+ logoUrl: z.ZodNullable<z.ZodString>;
315
+ contractors: z.ZodArray<z.ZodString, "many">;
316
+ organizationId: z.ZodString;
317
+ }, "strip", z.ZodTypeAny, {
318
+ name: string;
319
+ logoUrl: string | null;
320
+ contractors: string[];
321
+ organizationId: string;
322
+ }, {
323
+ name: string;
324
+ logoUrl: string | null;
325
+ contractors: string[];
326
+ organizationId: string;
327
+ }>, "many">>;
328
+ }, "strip", z.ZodTypeAny, {
329
+ agencies: {
330
+ name: string;
331
+ logoUrl: string | null;
332
+ contractors: string[];
333
+ organizationId: string;
334
+ }[] | null;
335
+ accountName: string | null;
336
+ accountPhotoUrl: string | null;
337
+ }, {
338
+ agencies: {
339
+ name: string;
340
+ logoUrl: string | null;
341
+ contractors: string[];
342
+ organizationId: string;
343
+ }[] | null;
344
+ accountName: string | null;
345
+ accountPhotoUrl: string | null;
346
+ }>;
347
+ export declare const acceptUpworkInvitationSchema: z.ZodObject<{
348
+ code: z.ZodString;
349
+ }, "strip", z.ZodTypeAny, {
350
+ code: string;
351
+ }, {
352
+ code: string;
353
+ }>;
354
+ export declare const acceptUpworkInvitationResponseSchema: z.ZodObject<{
355
+ agencyName: z.ZodString;
356
+ photoUrl: z.ZodString;
357
+ contractors: z.ZodArray<z.ZodString, "many">;
358
+ }, "strip", z.ZodTypeAny, {
359
+ contractors: string[];
360
+ agencyName: string;
361
+ photoUrl: string;
362
+ }, {
363
+ contractors: string[];
364
+ agencyName: string;
365
+ photoUrl: string;
366
+ }>;
122
367
  export interface BidderAccount extends z.infer<typeof bidderAccountSchema> {
123
368
  }
124
369
  export type BidderAccountProvider = z.infer<typeof bidderAccountProvider>;
125
370
  export type CreateBidderAccount = z.infer<typeof createBidderAccountSchema>;
126
371
  export type UpdateBidderAccount = z.infer<typeof updateBidderAccountSchema>;
372
+ export type VerifyBidderAccountCredentials = z.infer<typeof verifyBidderAccountCredentialsSchema>;
373
+ export type VerifyBidderAccountCredentialsResponse = z.infer<typeof verifyBidderAccountCredentialsResponseSchema>;
374
+ export type BidderAccountAgency = z.infer<typeof bidderAccountAgencySchema>;
375
+ export type AcceptUpworkInvitation = z.infer<typeof acceptUpworkInvitationSchema>;
376
+ export type AcceptUpworkInvitationResponse = z.infer<typeof acceptUpworkInvitationResponseSchema>;
@@ -0,0 +1,3 @@
1
+ export * from './invalid-google-oauth-token.exception';
2
+ export * from './no-bidder-accounts-available.exception';
3
+ export * from './no-google-oauth-tokens-found.exception';
@@ -0,0 +1,5 @@
1
+ export declare class InvalidGoogleOAuthTokenException extends Error {
2
+ readonly code = "INVALID_GOOGLE_OAUTH_TOKEN";
3
+ constructor(message: string);
4
+ }
5
+ export declare const invalidGoogleOAuthTokenSchema: (message: string) => InvalidGoogleOAuthTokenException;
@@ -0,0 +1,5 @@
1
+ export declare class NoBidderAccountsAvailableException extends Error {
2
+ readonly code = "NO_BIDDER_ACCOUNTS_AVAILABLE";
3
+ constructor(message: string);
4
+ }
5
+ export declare const noBidderAccountsAvailableException: (message: string) => NoBidderAccountsAvailableException;
@@ -0,0 +1,5 @@
1
+ export declare class NoBidderAccountsAvailableException extends Error {
2
+ readonly code = "NO_BIDDER_ACCOUNTS_AVAILABLE";
3
+ constructor(message: string);
4
+ }
5
+ export declare const noBidderAccountsAvailableException: (message: string) => NoBidderAccountsAvailableException;
@@ -0,0 +1,5 @@
1
+ export declare class NoGoogleOAuthTokensFoundException extends Error {
2
+ readonly code = "NO_GOOGLE_OAUTH_TOKENS_FOUND";
3
+ constructor(message: string);
4
+ }
5
+ export declare const noGoogleOAuthTokensFoundException: (message: string) => NoGoogleOAuthTokensFoundException;
@@ -1,3 +1,4 @@
1
- export * from "./account-status";
2
- export * from "./bidder-account";
3
- export * from "./scraper-account";
1
+ export * from './account-status';
2
+ export * from './bidder-account';
3
+ export * from './exceptions';
4
+ export * from './scraper-account';
@@ -8,7 +8,7 @@ export declare const scraperAccountSchema: z.ZodObject<{
8
8
  region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
9
9
  isActive: z.ZodBoolean;
10
10
  lastUsed: z.ZodNumber;
11
- status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
11
+ status: z.ZodEnum<["pending_credentials_verification", "valid_credentials", "invalid_credentials"]>;
12
12
  verified: z.ZodBoolean;
13
13
  errors: z.ZodArray<z.ZodObject<{
14
14
  errorMessage: z.ZodString;
@@ -31,7 +31,7 @@ export declare const scraperAccountSchema: z.ZodObject<{
31
31
  email: string;
32
32
  password: string;
33
33
  cookies: Record<string, string>;
34
- status: "verification_required" | "shadow_banned" | "healthy" | "banned" | "suspended";
34
+ status: "pending_credentials_verification" | "valid_credentials" | "invalid_credentials";
35
35
  proxy_credentials: string;
36
36
  region: "all" | "Worldwide" | "UKOnly" | "USOnly";
37
37
  isActive: boolean;
@@ -48,7 +48,7 @@ export declare const scraperAccountSchema: z.ZodObject<{
48
48
  email: string;
49
49
  password: string;
50
50
  cookies: Record<string, string>;
51
- status: "verification_required" | "shadow_banned" | "healthy" | "banned" | "suspended";
51
+ status: "pending_credentials_verification" | "valid_credentials" | "invalid_credentials";
52
52
  proxy_credentials: string;
53
53
  region: "all" | "Worldwide" | "UKOnly" | "USOnly";
54
54
  isActive: boolean;
@@ -70,7 +70,7 @@ export declare const createScraperAccountSchema: z.ZodObject<Pick<{
70
70
  region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
71
71
  isActive: z.ZodBoolean;
72
72
  lastUsed: z.ZodNumber;
73
- status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
73
+ status: z.ZodEnum<["pending_credentials_verification", "valid_credentials", "invalid_credentials"]>;
74
74
  verified: z.ZodBoolean;
75
75
  errors: z.ZodArray<z.ZodObject<{
76
76
  errorMessage: z.ZodString;
@@ -107,7 +107,7 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
107
107
  email: z.ZodOptional<z.ZodString>;
108
108
  password: z.ZodOptional<z.ZodString>;
109
109
  cookies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
110
- status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
110
+ status: z.ZodOptional<z.ZodEnum<["pending_credentials_verification", "valid_credentials", "invalid_credentials"]>>;
111
111
  proxy_credentials: z.ZodOptional<z.ZodString>;
112
112
  region: z.ZodOptional<z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>>;
113
113
  isActive: z.ZodOptional<z.ZodBoolean>;
@@ -133,7 +133,7 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
133
133
  email?: string | undefined;
134
134
  password?: string | undefined;
135
135
  cookies?: Record<string, string> | undefined;
136
- status?: "verification_required" | "shadow_banned" | "healthy" | "banned" | "suspended" | undefined;
136
+ status?: "pending_credentials_verification" | "valid_credentials" | "invalid_credentials" | undefined;
137
137
  proxy_credentials?: string | undefined;
138
138
  region?: "all" | "Worldwide" | "UKOnly" | "USOnly" | undefined;
139
139
  isActive?: boolean | undefined;
@@ -149,7 +149,7 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
149
149
  email?: string | undefined;
150
150
  password?: string | undefined;
151
151
  cookies?: Record<string, string> | undefined;
152
- status?: "verification_required" | "shadow_banned" | "healthy" | "banned" | "suspended" | undefined;
152
+ status?: "pending_credentials_verification" | "valid_credentials" | "invalid_credentials" | undefined;
153
153
  proxy_credentials?: string | undefined;
154
154
  region?: "all" | "Worldwide" | "UKOnly" | "USOnly" | undefined;
155
155
  isActive?: boolean | undefined;
@@ -0,0 +1,39 @@
1
+ import { z } from 'zod';
2
+ export declare const aiConfigSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ suitabilityPrompt: z.ZodOptional<z.ZodString>;
5
+ proposalPrompt: z.ZodOptional<z.ZodString>;
6
+ questionProposalPrompt: z.ZodOptional<z.ZodString>;
7
+ knowledgeBase: z.ZodOptional<z.ZodString>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ id: string;
10
+ suitabilityPrompt?: string | undefined;
11
+ proposalPrompt?: string | undefined;
12
+ questionProposalPrompt?: string | undefined;
13
+ knowledgeBase?: string | undefined;
14
+ }, {
15
+ id: string;
16
+ suitabilityPrompt?: string | undefined;
17
+ proposalPrompt?: string | undefined;
18
+ questionProposalPrompt?: string | undefined;
19
+ knowledgeBase?: string | undefined;
20
+ }>;
21
+ export declare const updateAiConfigSchema: z.ZodObject<{
22
+ id: z.ZodOptional<z.ZodString>;
23
+ suitabilityPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
24
+ proposalPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
25
+ questionProposalPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
26
+ knowledgeBase: z.ZodOptional<z.ZodOptional<z.ZodString>>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ id?: string | undefined;
29
+ suitabilityPrompt?: string | undefined;
30
+ proposalPrompt?: string | undefined;
31
+ questionProposalPrompt?: string | undefined;
32
+ knowledgeBase?: string | undefined;
33
+ }, {
34
+ id?: string | undefined;
35
+ suitabilityPrompt?: string | undefined;
36
+ proposalPrompt?: string | undefined;
37
+ questionProposalPrompt?: string | undefined;
38
+ knowledgeBase?: string | undefined;
39
+ }>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateAiConfigSchema = exports.aiConfigSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.aiConfigSchema = zod_1.z.object({
6
+ id: zod_1.z.string(),
7
+ suitabilityPrompt: zod_1.z.string().optional(),
8
+ proposalPrompt: zod_1.z.string().optional(),
9
+ questionProposalPrompt: zod_1.z.string().optional(),
10
+ knowledgeBase: zod_1.z.string().optional(),
11
+ });
12
+ exports.updateAiConfigSchema = exports.aiConfigSchema.partial();