@apify/utilities 2.35.11 → 3.0.0-beta.1

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 (52) hide show
  1. package/code_hash_manager.d.ts +34 -0
  2. package/code_hash_manager.js +66 -0
  3. package/code_hash_manager.js.map +1 -0
  4. package/crypto.d.ts +35 -0
  5. package/crypto.js +58 -0
  6. package/crypto.js.map +1 -0
  7. package/exponential_backoff.d.ts +9 -0
  8. package/exponential_backoff.js +47 -0
  9. package/exponential_backoff.js.map +1 -0
  10. package/health_checker.d.ts +61 -0
  11. package/health_checker.js +132 -0
  12. package/health_checker.js.map +1 -0
  13. package/hmac.d.ts +20 -0
  14. package/hmac.js +59 -0
  15. package/hmac.js.map +1 -0
  16. package/index.d.ts +14 -0
  17. package/index.js +15 -0
  18. package/index.js.map +1 -0
  19. package/package.json +16 -21
  20. package/parse_boolean.d.ts +10 -0
  21. package/parse_boolean.js +25 -0
  22. package/parse_boolean.js.map +1 -0
  23. package/parse_jsonl_stream.d.ts +25 -0
  24. package/parse_jsonl_stream.js +79 -0
  25. package/parse_jsonl_stream.js.map +1 -0
  26. package/storages.d.ts +29 -0
  27. package/storages.js +37 -0
  28. package/storages.js.map +1 -0
  29. package/streams_utilities.d.ts +10 -0
  30. package/streams_utilities.js +26 -0
  31. package/streams_utilities.js.map +1 -0
  32. package/url_params_utils.d.ts +7 -0
  33. package/url_params_utils.js +11 -0
  34. package/url_params_utils.js.map +1 -0
  35. package/usernames.d.ts +10 -0
  36. package/usernames.js +1137 -0
  37. package/usernames.js.map +1 -0
  38. package/utilities.client.d.ts +125 -0
  39. package/utilities.client.js +408 -0
  40. package/utilities.client.js.map +1 -0
  41. package/utilities.d.ts +111 -0
  42. package/utilities.js +263 -0
  43. package/utilities.js.map +1 -0
  44. package/webhook_payload_template.d.ts +114 -0
  45. package/webhook_payload_template.js +245 -0
  46. package/webhook_payload_template.js.map +1 -0
  47. package/cjs/index.cjs +0 -2402
  48. package/cjs/index.cjs.map +0 -1
  49. package/cjs/index.d.ts +0 -609
  50. package/esm/index.d.mts +0 -609
  51. package/esm/index.mjs +0 -2314
  52. package/esm/index.mjs.map +0 -1
package/usernames.js ADDED
@@ -0,0 +1,1137 @@
1
+ import { ANONYMOUS_USERNAME, APIFY_ID_REGEX } from '@apify/consts';
2
+ /**
3
+ * List of forbidden usernames. Note that usernames can be used as apify.com/username,
4
+ * so we need to prohibit any username that might be part of our website or confusing in any way.
5
+ *
6
+ * After extending this list, check whether any existing users already hold one of the
7
+ * newly-forbidden usernames. The thorough way is to mirror `isForbiddenUsername` server-side
8
+ * by rebuilding the same regex inside Robo 3T / mongosh — paste the contents of this array
9
+ * verbatim into `var patterns = [...]` and run something like:
10
+ *
11
+ * var forbiddenRegex = new RegExp('^(anonymous|' + patterns.join('|') + ')$', 'i');
12
+ * var apifyIdRegex = /^[a-zA-Z0-9]{17}$/;
13
+ * db.getCollection('users').find({
14
+ * $or: [{ username: forbiddenRegex }, { username: apifyIdRegex }],
15
+ * }, { username: 1, 'profile.isPublic': 1, createdAt: 1, lastActivityAt: 1 })
16
+ * .sort({ username: 1 })
17
+ * .forEach(function (u) { print(u.username + '\t' + !!(u.profile && u.profile.isPublic)); });
18
+ *
19
+ * For a quick sanity check (literals only, fast) use `$in` with an exact-string array
20
+ * of the new additions instead.
21
+ */
22
+ const FORBIDDEN_USERNAMES_REGEXPS = [
23
+ // App routes
24
+ 'page-not-found',
25
+ 'docs',
26
+ 'terms-of-use',
27
+ 'about',
28
+ 'pricing',
29
+ 'privacy-policy',
30
+ 'customers',
31
+ 'request-form',
32
+ 'request-solution',
33
+ 'release-notes',
34
+ 'jobs',
35
+ 'api-reference',
36
+ 'video-tutorials',
37
+ 'acts',
38
+ 'key-value-stores',
39
+ 'schedules',
40
+ 'account',
41
+ 'sign-up',
42
+ 'sign-in-discourse',
43
+ 'admin',
44
+ 'documentation',
45
+ 'change-password',
46
+ 'enroll-account',
47
+ 'forgot-password',
48
+ 'reset-password',
49
+ 'sign-in',
50
+ 'verify-email',
51
+ 'live-status',
52
+ 'browser-info',
53
+ 'webhooks',
54
+ 'health-check',
55
+ 'api',
56
+ 'change-log',
57
+ 'dashboard',
58
+ 'community',
59
+ 'crawlers',
60
+ 'ext',
61
+ 'schemas',
62
+ // Various strings
63
+ 'admin',
64
+ 'administration',
65
+ 'crawler',
66
+ 'act',
67
+ 'library',
68
+ 'lib',
69
+ 'apifier',
70
+ 'team',
71
+ 'contact',
72
+ 'doc',
73
+ 'documentation',
74
+ 'for-business',
75
+ 'for-developers',
76
+ 'developers',
77
+ 'business',
78
+ 'integrations',
79
+ 'job',
80
+ 'setting',
81
+ 'settings',
82
+ 'privacy',
83
+ 'policy',
84
+ 'assets',
85
+ 'help',
86
+ 'config',
87
+ 'configuration',
88
+ 'terms',
89
+ 'hiring',
90
+ 'hire',
91
+ 'status',
92
+ 'status-page',
93
+ 'solutions',
94
+ 'support',
95
+ 'market',
96
+ 'marketplace',
97
+ 'download',
98
+ 'downloads',
99
+ 'username',
100
+ 'users',
101
+ 'user',
102
+ 'login',
103
+ 'logout',
104
+ 'signin',
105
+ 'sign',
106
+ 'signup',
107
+ 'sign-out',
108
+ 'signout',
109
+ 'plugins',
110
+ 'plug-ins',
111
+ 'reset',
112
+ 'password',
113
+ 'passwords',
114
+ 'square',
115
+ 'profile-photos',
116
+ 'profiles',
117
+ 'true',
118
+ 'false',
119
+ 'js',
120
+ 'css',
121
+ 'img',
122
+ 'images',
123
+ 'image',
124
+ 'partials',
125
+ 'fonts',
126
+ 'font',
127
+ 'dynamic_templates',
128
+ 'app',
129
+ 'schedules',
130
+ 'community',
131
+ 'storage',
132
+ 'storages',
133
+ 'account',
134
+ 'node_modules',
135
+ 'bower_components',
136
+ 'video',
137
+ 'knowledgebase',
138
+ 'forum',
139
+ 'customers',
140
+ 'blog',
141
+ 'health-check',
142
+ 'health',
143
+ 'anim',
144
+ 'forum_topics.json',
145
+ 'forum_categories.json',
146
+ 'me',
147
+ 'you',
148
+ 'him',
149
+ 'she',
150
+ 'it',
151
+ 'external',
152
+ 'actor',
153
+ 'crawler',
154
+ 'scheduler',
155
+ 'api',
156
+ 'sdk',
157
+ 'puppeteer',
158
+ 'webdriver',
159
+ 'selenium',
160
+ '(selenium.*webdriver)',
161
+ 'undefined',
162
+ 'page-analyzer',
163
+ 'wp-login.php',
164
+ 'welcome.action',
165
+ 'echo',
166
+ 'proxy',
167
+ 'super-proxy',
168
+ 'gdpr',
169
+ 'case-studies',
170
+ 'use-cases',
171
+ 'how-to',
172
+ 'kb',
173
+ 'cookies',
174
+ 'cookie-policy',
175
+ 'cookies-policy',
176
+ 'powered-by',
177
+ 'run',
178
+ 'runs',
179
+ 'actor',
180
+ 'actors',
181
+ 'act',
182
+ 'acts',
183
+ 'success-stories',
184
+ 'roadmap',
185
+ 'join-marketplace',
186
+ 'presskit',
187
+ 'press-kit',
188
+ 'covid-19',
189
+ 'covid',
190
+ 'covid19',
191
+ 'matfyz',
192
+ 'ideas',
193
+ 'public-actors',
194
+ 'resources',
195
+ 'partners',
196
+ 'affiliate',
197
+ 'industries',
198
+ 'web-scraping',
199
+ 'custom-solutions',
200
+ 'solution-provider',
201
+ 'alternatives',
202
+ 'platform',
203
+ 'freelancers',
204
+ 'freelancer',
205
+ 'partner',
206
+ 'preview',
207
+ 'templates',
208
+ 'data-for-generative-ai',
209
+ 'discord',
210
+ 'praguecrawl',
211
+ 'prague-crawl',
212
+ 'bob',
213
+ 'ai-agents',
214
+ 'reel',
215
+ 'video-reel',
216
+ 'mcp',
217
+ 'mcpc',
218
+ 'model-context-protocol',
219
+ 'modelcontextprotocol',
220
+ // 'apify.com' intentionally unescaped so "." matches any character, also blocking variants like "apify_com" or "apifyxcom"
221
+ 'apify.com',
222
+ 'design-kit',
223
+ 'press-kit',
224
+ 'scrapers',
225
+ 'professional-services',
226
+ 'challenge',
227
+ 'challange',
228
+ '1m-challenge',
229
+ '1m-usd-challenge',
230
+ 'contact-sales',
231
+ 'creator',
232
+ 'creators',
233
+ 'creator-plan',
234
+ 'request-an-integration',
235
+ 'whitepaper',
236
+ 'adviser',
237
+ 'crawlee',
238
+ 'ultimate-scraper',
239
+ 'agent-skills',
240
+ // Apify platform resources
241
+ 'key-value-store',
242
+ 'request-queue',
243
+ 'request-queues',
244
+ 'build',
245
+ 'builds',
246
+ 'dataset',
247
+ 'datasets',
248
+ 'schedule',
249
+ 'standby',
250
+ 'pay-per-event',
251
+ 'pay-per-result',
252
+ 'pay-per-usage',
253
+ 'ppe',
254
+ 'ppr',
255
+ 'compute-unit',
256
+ 'compute-units',
257
+ // AI / LLM related
258
+ 'agent',
259
+ 'agents',
260
+ 'agentic',
261
+ 'llms',
262
+ 'llm',
263
+ 'openai',
264
+ 'anthropic',
265
+ 'claude',
266
+ 'copilot',
267
+ 'mistral',
268
+ 'gemini',
269
+ 'llama',
270
+ 'chatbot',
271
+ 'chatgpt',
272
+ 'prompt',
273
+ 'prompts',
274
+ 'embeddings',
275
+ 'vectors',
276
+ 'rag',
277
+ // Agentic protocols / agentic payments / agent identity
278
+ 'agentic-commerce',
279
+ 'agentic-economy',
280
+ 'agentic-payments',
281
+ 'a2a',
282
+ 'a2b',
283
+ 'a2p',
284
+ 'ap2',
285
+ 'b2a',
286
+ 'acp',
287
+ 'ucp',
288
+ 'mpp',
289
+ 'x402',
290
+ 'l402',
291
+ 'anp',
292
+ 'agp',
293
+ 'erc-8004',
294
+ 'kya',
295
+ 'kyapay',
296
+ // Trust / verification / anti-impersonation handles
297
+ // (entries containing 'apify' are already blocked by USERNAME.RESTRICTED_REGEX)
298
+ 'official',
299
+ 'verified',
300
+ 'certified',
301
+ 'authorized',
302
+ 'partner-official',
303
+ 'gold-partner',
304
+ 'premium-partner',
305
+ 'staff',
306
+ 'moderator',
307
+ 'apify-admin',
308
+ // Apify subdomain / service names (current and future)
309
+ 'console',
310
+ 'cli',
311
+ 'studio',
312
+ 'gateway',
313
+ 'workbench',
314
+ 'agents-marketplace',
315
+ 'agents-store',
316
+ 'mcp-server',
317
+ 'mcp-servers',
318
+ 'mcp-gateway',
319
+ // Region / locale codes (3+ chars only; 1-2 char codes are blocked by USERNAME.MIN_LENGTH)
320
+ 'asia',
321
+ 'latam',
322
+ 'emea',
323
+ 'apac',
324
+ 'i18n',
325
+ 'l10n',
326
+ 'localization',
327
+ 'localisation',
328
+ // Currency / payment generics (open standards, not company brands)
329
+ 'usd',
330
+ 'eur',
331
+ 'gbp',
332
+ 'jpy',
333
+ 'cny',
334
+ 'usdc',
335
+ 'usdt',
336
+ 'btc',
337
+ 'eth',
338
+ 'sol',
339
+ 'crypto',
340
+ 'fiat',
341
+ 'stablecoin',
342
+ 'stablecoins',
343
+ 'payment',
344
+ 'payments',
345
+ 'payout',
346
+ 'payouts',
347
+ 'invoice',
348
+ 'invoices',
349
+ 'wallet',
350
+ // Compliance / certifications
351
+ 'soc',
352
+ 'soc2',
353
+ 'iso',
354
+ 'iso-27001',
355
+ 'hipaa',
356
+ 'ccpa',
357
+ 'pci',
358
+ 'pci-dss',
359
+ 'dpa',
360
+ 'dpia',
361
+ 'dmca',
362
+ 'sla',
363
+ 'eula',
364
+ 'aml',
365
+ 'kyc',
366
+ // Open-source / community roles
367
+ 'contributor',
368
+ 'contributors',
369
+ 'maintainer',
370
+ 'maintainers',
371
+ 'core-team',
372
+ 'oss',
373
+ 'open-source',
374
+ 'opensource',
375
+ 'open-source-software',
376
+ // Anti-abuse / scam-bait names (frequently used in account fraud)
377
+ 'spam',
378
+ 'scam',
379
+ 'phishing',
380
+ 'malware',
381
+ 'hack',
382
+ 'hacked',
383
+ 'giveaway',
384
+ 'airdrop',
385
+ 'bitcoin-giveaway',
386
+ 'free-credits',
387
+ 'free-money',
388
+ // Apify marketing / campaign slugs
389
+ 'launch',
390
+ 'launches',
391
+ 'webinar',
392
+ 'webinars',
393
+ 'meetup',
394
+ 'meetups',
395
+ 'summit',
396
+ 'conference',
397
+ 'conferences',
398
+ // Organizations / workspaces / permissions
399
+ 'org',
400
+ 'orgs',
401
+ 'organisation',
402
+ 'workspace',
403
+ 'workspaces',
404
+ 'tenant',
405
+ 'tenants',
406
+ 'role',
407
+ 'roles',
408
+ 'permission',
409
+ 'permissions',
410
+ // Auth / security
411
+ 'saml',
412
+ 'scim',
413
+ 'token',
414
+ 'tokens',
415
+ 'apikey',
416
+ 'api-key',
417
+ 'api-keys',
418
+ 'keys',
419
+ 'secret',
420
+ 'secrets',
421
+ // Billing / commerce
422
+ 'coupon',
423
+ 'coupons',
424
+ 'discount',
425
+ 'discounts',
426
+ 'promos',
427
+ 'refund',
428
+ 'refunds',
429
+ 'credit',
430
+ 'credits',
431
+ 'billing-portal',
432
+ // Infrastructure / environments
433
+ 'production',
434
+ 'prod',
435
+ 'canary',
436
+ 'internal',
437
+ 'restricted',
438
+ // Communication
439
+ 'conversations',
440
+ 'reactions',
441
+ 'mentions',
442
+ 'channel',
443
+ 'channels',
444
+ 'inbox',
445
+ 'no-reply',
446
+ 'noreply',
447
+ // Legal / trust / web standards
448
+ 'accessibility',
449
+ 'imprint',
450
+ 'impressum',
451
+ 'trust',
452
+ 'trust-center',
453
+ 'security-center',
454
+ // Brand protection / impersonation prevention
455
+ 'brand',
456
+ 'branding',
457
+ 'support-team',
458
+ 'abuse',
459
+ // Incidents / updates
460
+ 'outage',
461
+ 'incident',
462
+ 'incidents',
463
+ 'what-is-new',
464
+ 'whatsnew',
465
+ // Special files
466
+ 'index',
467
+ 'index\\.html',
468
+ '(favicon\\.[a-z]+)',
469
+ 'BingSiteAuth.xml',
470
+ '(google.+\\.html)',
471
+ 'robots\\.txt',
472
+ '(sitemap\\.[a-z]+)',
473
+ '(apple-touch-icon.*)',
474
+ 'security-whitepaper\\.pdf',
475
+ 'security\\.txt',
476
+ 'llms\\.txt',
477
+ 'llms-full\\.txt',
478
+ 'AGENTS\\.md',
479
+ 'CLAUDE\\.md',
480
+ 'auth\\.md',
481
+ // All hidden files
482
+ '(\\..*)',
483
+ // Username starting with xxx-
484
+ '(xxx-.*)',
485
+ // Usernames containing inappropriate/adult content keywords.
486
+ // Each entry requires non-letter boundaries on both sides so the keyword only
487
+ // matches as a whole word — this avoids false positives like Akshit (shit),
488
+ // Hancock (cock), Nudelman (nude), Uranus (anus), pussycat (pussy),
489
+ // snaked (naked), scunthorpe (cunt), christoph-dick-media (dick — legitimate
490
+ // German surname, not blocked), etc.
491
+ '((.+[^a-z]|)porn([^a-z].+|))',
492
+ '((.+[^a-z]|)vagina([^a-z].+|))',
493
+ '((.+[^a-z]|)dildo([^a-z].+|))',
494
+ '((.+[^a-z]|)nsfw([^a-z].+|))',
495
+ '((.+[^a-z]|)hentai([^a-z].+|))',
496
+ '((.+[^a-z]|)cunt([^a-z].+|))',
497
+ '((.+[^a-z]|)fuck([^a-z].+|))',
498
+ '((.+[^a-z]|)shit([^a-z].+|))',
499
+ '((.+[^a-z]|)bitch([^a-z].+|))',
500
+ '((.+[^a-z]|)slut([^a-z].+|))',
501
+ '((.+[^a-z]|)whore([^a-z].+|))',
502
+ '((.+[^a-z]|)boob([^a-z].+|))',
503
+ '((.+[^a-z]|)tits([^a-z].+|))',
504
+ '((.+[^a-z]|)cock([^a-z].+|))',
505
+ '((.+[^a-z]|)anus([^a-z].+|))',
506
+ '((.+[^a-z]|)pussy([^a-z].+|))',
507
+ '((.+[^a-z]|)nude([^a-z].+|))',
508
+ '((.+[^a-z]|)penis([^a-z].+|))',
509
+ '((.+[^a-z]|)naked([^a-z].+|))',
510
+ // Username starting with install-cli. (see https://docs.apify.com/cli/docs/installation)
511
+ '(install-cli\\..*)',
512
+ // Strings not starting with letter or number
513
+ '([^0-9a-z].*)',
514
+ // Strings not ending with letter or number
515
+ '(.*[^0-9a-z])',
516
+ // Strings where there's more than one underscore, comma or dash in row
517
+ '(.*[_.\\-]{2}.*)',
518
+ // Reserved usernames from https://github.com/shouldbee/reserved-usernames/blob/master/reserved-usernames.json
519
+ '0',
520
+ 'about',
521
+ 'access',
522
+ 'account',
523
+ 'accounts',
524
+ 'activate',
525
+ 'activities',
526
+ 'activity',
527
+ 'ad',
528
+ 'add',
529
+ 'address',
530
+ 'adm',
531
+ 'admin',
532
+ 'administration',
533
+ 'administrator',
534
+ 'ads',
535
+ 'adult',
536
+ 'advertising',
537
+ 'affiliate',
538
+ 'affiliates',
539
+ 'ajax',
540
+ 'all',
541
+ 'alpha',
542
+ 'analysis',
543
+ 'analytics',
544
+ 'android',
545
+ 'anon',
546
+ 'anonymous',
547
+ 'api',
548
+ 'app',
549
+ 'apps',
550
+ 'archive',
551
+ 'archives',
552
+ 'article',
553
+ 'asct',
554
+ 'asset',
555
+ 'atom',
556
+ 'auth',
557
+ 'authentication',
558
+ 'avatar',
559
+ 'backup',
560
+ 'balancer-manager',
561
+ 'banner',
562
+ 'banners',
563
+ 'beta',
564
+ 'billing',
565
+ 'bin',
566
+ 'blog',
567
+ 'blogs',
568
+ 'board',
569
+ 'book',
570
+ 'bookmark',
571
+ 'bot',
572
+ 'bots',
573
+ 'bug',
574
+ 'business',
575
+ 'cache',
576
+ 'cadastro',
577
+ 'calendar',
578
+ 'call',
579
+ 'campaign',
580
+ 'cancel',
581
+ 'captcha',
582
+ 'career',
583
+ 'careers',
584
+ 'cart',
585
+ 'categories',
586
+ 'category',
587
+ 'cgi',
588
+ 'cgi-bin',
589
+ 'changelog',
590
+ 'chat',
591
+ 'check',
592
+ 'checking',
593
+ 'checkout',
594
+ 'client',
595
+ 'cliente',
596
+ 'clients',
597
+ 'code',
598
+ 'codereview',
599
+ 'comercial',
600
+ 'comment',
601
+ 'comments',
602
+ 'communities',
603
+ 'community',
604
+ 'company',
605
+ 'compare',
606
+ 'compras',
607
+ 'config',
608
+ 'configuration',
609
+ 'connect',
610
+ 'contact',
611
+ 'contact-us',
612
+ 'contact_us',
613
+ 'contactus',
614
+ 'contest',
615
+ 'contribute',
616
+ 'corp',
617
+ 'create',
618
+ 'css',
619
+ 'dashboard',
620
+ 'data',
621
+ 'db',
622
+ 'default',
623
+ 'delete',
624
+ 'demo',
625
+ 'design',
626
+ 'designer',
627
+ 'destroy',
628
+ 'dev',
629
+ 'devel',
630
+ 'developer',
631
+ 'developers',
632
+ 'diagram',
633
+ 'diary',
634
+ 'dict',
635
+ 'dictionary',
636
+ 'die',
637
+ 'dir',
638
+ 'direct_messages',
639
+ 'directory',
640
+ 'dist',
641
+ 'doc',
642
+ 'docs',
643
+ 'documentation',
644
+ 'domain',
645
+ 'download',
646
+ 'downloads',
647
+ 'ecommerce',
648
+ 'edit',
649
+ 'editor',
650
+ 'edu',
651
+ 'education',
652
+ 'email',
653
+ 'employment',
654
+ 'empty',
655
+ 'end',
656
+ 'enterprise',
657
+ 'entries',
658
+ 'entry',
659
+ 'error',
660
+ 'errors',
661
+ 'eval',
662
+ 'event',
663
+ 'events',
664
+ 'exit',
665
+ 'explore',
666
+ 'facebook',
667
+ 'faq',
668
+ 'favorite',
669
+ 'favorites',
670
+ 'feature',
671
+ 'features',
672
+ 'feed',
673
+ 'feedback',
674
+ 'feeds',
675
+ 'file',
676
+ 'files',
677
+ 'first',
678
+ 'flash',
679
+ 'fleet',
680
+ 'fleets',
681
+ 'flog',
682
+ 'follow',
683
+ 'followers',
684
+ 'following',
685
+ 'forgot',
686
+ 'form',
687
+ 'forum',
688
+ 'forums',
689
+ 'founder',
690
+ 'free',
691
+ 'friend',
692
+ 'friends',
693
+ 'ftp',
694
+ 'gadget',
695
+ 'gadgets',
696
+ 'game',
697
+ 'games',
698
+ 'get',
699
+ 'gift',
700
+ 'gifts',
701
+ 'gist',
702
+ 'github',
703
+ 'graph',
704
+ 'group',
705
+ 'groups',
706
+ 'guest',
707
+ 'guests',
708
+ 'help',
709
+ 'home',
710
+ 'homepage',
711
+ 'host',
712
+ 'hosting',
713
+ 'hostmaster',
714
+ 'hostname',
715
+ 'howto',
716
+ 'hpg',
717
+ 'html',
718
+ 'http',
719
+ 'httpd',
720
+ 'https',
721
+ 'i',
722
+ 'iamges',
723
+ 'icon',
724
+ 'icons',
725
+ 'id',
726
+ 'idea',
727
+ 'ideas',
728
+ 'image',
729
+ 'images',
730
+ 'imap',
731
+ 'img',
732
+ 'index',
733
+ 'indice',
734
+ 'info',
735
+ 'information',
736
+ 'inquiry',
737
+ 'instagram',
738
+ 'intranet',
739
+ 'invitations',
740
+ 'invite',
741
+ 'ipad',
742
+ 'iphone',
743
+ 'irc',
744
+ 'is',
745
+ 'issue',
746
+ 'issues',
747
+ 'it',
748
+ 'item',
749
+ 'items',
750
+ 'java',
751
+ 'javascript',
752
+ 'job',
753
+ 'jobs',
754
+ 'join',
755
+ 'js',
756
+ 'json',
757
+ 'jump',
758
+ 'knowledgebase',
759
+ 'language',
760
+ 'languages',
761
+ 'last',
762
+ 'ldap-status',
763
+ 'legal',
764
+ 'license',
765
+ 'link',
766
+ 'links',
767
+ 'linux',
768
+ 'list',
769
+ 'lists',
770
+ 'log',
771
+ 'log-in',
772
+ 'log-out',
773
+ 'log_in',
774
+ 'log_out',
775
+ 'login',
776
+ 'logout',
777
+ 'logs',
778
+ 'm',
779
+ 'mac',
780
+ 'mail',
781
+ 'mail1',
782
+ 'mail2',
783
+ 'mail3',
784
+ 'mail4',
785
+ 'mail5',
786
+ 'mailer',
787
+ 'mailing',
788
+ 'maintenance',
789
+ 'manager',
790
+ 'manual',
791
+ 'map',
792
+ 'maps',
793
+ 'marketing',
794
+ 'master',
795
+ 'me',
796
+ 'media',
797
+ 'member',
798
+ 'members',
799
+ 'message',
800
+ 'messages',
801
+ 'messenger',
802
+ 'microblog',
803
+ 'microblogs',
804
+ 'mine',
805
+ 'mis',
806
+ 'mob',
807
+ 'mobile',
808
+ 'movie',
809
+ 'movies',
810
+ 'mp3',
811
+ 'msg',
812
+ 'msn',
813
+ 'music',
814
+ 'musicas',
815
+ 'mx',
816
+ 'my',
817
+ 'mysql',
818
+ 'name',
819
+ 'named',
820
+ 'nan',
821
+ 'navi',
822
+ 'navigation',
823
+ 'net',
824
+ 'network',
825
+ 'new',
826
+ 'news',
827
+ 'newsletter',
828
+ 'nick',
829
+ 'nickname',
830
+ 'notes',
831
+ 'noticias',
832
+ 'notification',
833
+ 'notifications',
834
+ 'notify',
835
+ 'ns',
836
+ 'ns1',
837
+ 'ns10',
838
+ 'ns2',
839
+ 'ns3',
840
+ 'ns4',
841
+ 'ns5',
842
+ 'ns6',
843
+ 'ns7',
844
+ 'ns8',
845
+ 'ns9',
846
+ 'null',
847
+ 'oauth',
848
+ 'oauth_clients',
849
+ 'offer',
850
+ 'offers',
851
+ 'official',
852
+ 'old',
853
+ 'online',
854
+ 'openid',
855
+ 'operator',
856
+ 'order',
857
+ 'orders',
858
+ 'organization',
859
+ 'organizations',
860
+ 'overview',
861
+ 'owner',
862
+ 'owners',
863
+ 'page',
864
+ 'pager',
865
+ 'pages',
866
+ 'panel',
867
+ 'password',
868
+ 'payment',
869
+ 'perl',
870
+ 'phone',
871
+ 'photo',
872
+ 'photoalbum',
873
+ 'photos',
874
+ 'php',
875
+ 'phpmyadmin',
876
+ 'phppgadmin',
877
+ 'phpredisadmin',
878
+ 'pic',
879
+ 'pics',
880
+ 'ping',
881
+ 'plan',
882
+ 'plans',
883
+ 'plugin',
884
+ 'plugins',
885
+ 'policy',
886
+ 'pop',
887
+ 'pop3',
888
+ 'popular',
889
+ 'portal',
890
+ 'post',
891
+ 'postfix',
892
+ 'postmaster',
893
+ 'posts',
894
+ 'pr',
895
+ 'premium',
896
+ 'press',
897
+ 'price',
898
+ 'pricing',
899
+ 'privacy',
900
+ 'privacy-policy',
901
+ 'privacy_policy',
902
+ 'privacypolicy',
903
+ 'private',
904
+ 'product',
905
+ 'products',
906
+ 'profile',
907
+ 'project',
908
+ 'projects',
909
+ 'promo',
910
+ 'pub',
911
+ 'public',
912
+ 'purpose',
913
+ 'put',
914
+ 'python',
915
+ 'query',
916
+ 'random',
917
+ 'ranking',
918
+ 'read',
919
+ 'readme',
920
+ 'recent',
921
+ 'recruit',
922
+ 'recruitment',
923
+ 'register',
924
+ 'registration',
925
+ 'release',
926
+ 'remove',
927
+ 'replies',
928
+ 'report',
929
+ 'reports',
930
+ 'repositories',
931
+ 'repository',
932
+ 'req',
933
+ 'request',
934
+ 'requests',
935
+ 'reset',
936
+ 'roc',
937
+ 'root',
938
+ 'rss',
939
+ 'ruby',
940
+ 'rule',
941
+ 'sag',
942
+ 'sale',
943
+ 'sales',
944
+ 'sample',
945
+ 'samples',
946
+ 'save',
947
+ 'school',
948
+ 'script',
949
+ 'scripts',
950
+ 'search',
951
+ 'secure',
952
+ 'security',
953
+ 'self',
954
+ 'send',
955
+ 'server',
956
+ 'server-info',
957
+ 'server-status',
958
+ 'service',
959
+ 'services',
960
+ 'session',
961
+ 'sessions',
962
+ 'setting',
963
+ 'settings',
964
+ 'setup',
965
+ 'share',
966
+ 'shop',
967
+ 'show',
968
+ 'sign-in',
969
+ 'sign-up',
970
+ 'sign_in',
971
+ 'sign_up',
972
+ 'signin',
973
+ 'signout',
974
+ 'signup',
975
+ 'site',
976
+ 'sitemap',
977
+ 'sites',
978
+ 'smartphone',
979
+ 'smtp',
980
+ 'soporte',
981
+ 'source',
982
+ 'spec',
983
+ 'special',
984
+ 'sql',
985
+ 'src',
986
+ 'ssh',
987
+ 'ssl',
988
+ 'ssladmin',
989
+ 'ssladministrator',
990
+ 'sslwebmaster',
991
+ 'staff',
992
+ 'stage',
993
+ 'staging',
994
+ 'start',
995
+ 'stat',
996
+ 'state',
997
+ 'static',
998
+ 'stats',
999
+ 'status',
1000
+ 'store',
1001
+ 'stores',
1002
+ 'stories',
1003
+ 'style',
1004
+ 'styleguide',
1005
+ 'stylesheet',
1006
+ 'stylesheets',
1007
+ 'subdomain',
1008
+ 'subscribe',
1009
+ 'subscription',
1010
+ 'subscriptions',
1011
+ 'suporte',
1012
+ 'support',
1013
+ 'svn',
1014
+ 'swf',
1015
+ 'sys',
1016
+ 'sysadmin',
1017
+ 'sysadministrator',
1018
+ 'system',
1019
+ 'tablet',
1020
+ 'tablets',
1021
+ 'tag',
1022
+ 'talk',
1023
+ 'task',
1024
+ 'tasks',
1025
+ 'team',
1026
+ 'teams',
1027
+ 'tech',
1028
+ 'telnet',
1029
+ 'term',
1030
+ 'terms',
1031
+ 'terms-of-service',
1032
+ 'terms_of_service',
1033
+ 'termsofservice',
1034
+ 'test',
1035
+ 'test1',
1036
+ 'test2',
1037
+ 'test3',
1038
+ 'teste',
1039
+ 'testing',
1040
+ 'tests',
1041
+ 'theme',
1042
+ 'themes',
1043
+ 'thread',
1044
+ 'threads',
1045
+ 'tmp',
1046
+ 'todo',
1047
+ 'tool',
1048
+ 'tools',
1049
+ 'top',
1050
+ 'topic',
1051
+ 'topics',
1052
+ 'tos',
1053
+ 'tour',
1054
+ 'translations',
1055
+ 'trends',
1056
+ 'tutorial',
1057
+ 'tux',
1058
+ 'tv',
1059
+ 'twitter',
1060
+ 'undef',
1061
+ 'unfollow',
1062
+ 'unsubscribe',
1063
+ 'update',
1064
+ 'upload',
1065
+ 'uploads',
1066
+ 'url',
1067
+ 'usage',
1068
+ 'user',
1069
+ 'username',
1070
+ 'users',
1071
+ 'usuario',
1072
+ 'vendas',
1073
+ 'ver',
1074
+ 'version',
1075
+ 'video',
1076
+ 'videos',
1077
+ 'visitor',
1078
+ 'watch',
1079
+ 'weather',
1080
+ 'web',
1081
+ 'webhook',
1082
+ 'webhooks',
1083
+ 'webmail',
1084
+ 'webmaster',
1085
+ 'website',
1086
+ 'websites',
1087
+ 'welcome',
1088
+ 'widget',
1089
+ 'widgets',
1090
+ 'wiki',
1091
+ 'win',
1092
+ 'windows',
1093
+ 'word',
1094
+ 'work',
1095
+ 'works',
1096
+ 'workshop',
1097
+ 'ww',
1098
+ 'wws',
1099
+ 'www',
1100
+ 'www1',
1101
+ 'www2',
1102
+ 'www3',
1103
+ 'www4',
1104
+ 'www5',
1105
+ 'www6',
1106
+ 'www7',
1107
+ 'wwws',
1108
+ 'wwww',
1109
+ 'xfn',
1110
+ 'xml',
1111
+ 'xmpp',
1112
+ 'xpg',
1113
+ 'xxx',
1114
+ 'yaml',
1115
+ 'year',
1116
+ 'yml',
1117
+ 'you',
1118
+ 'yourdomain',
1119
+ 'yourname',
1120
+ 'yoursite',
1121
+ 'yourusername',
1122
+ ];
1123
+ // Regex matching forbidden usernames.
1124
+ const FORBIDDEN_REGEXP = new RegExp(`^(${ANONYMOUS_USERNAME}|${FORBIDDEN_USERNAMES_REGEXPS.join('|')})$`, 'i');
1125
+ /**
1126
+ * Checks whether username is listed in the forbidden username list
1127
+ * or looks like an Apify ID.
1128
+ *
1129
+ * NOTE: The forbidden list may expand over time, so a username that was
1130
+ * previously permitted may later become forbidden. Use this function only
1131
+ * when validating a username change, not as part of normal authentication
1132
+ * or authorization flow.
1133
+ */
1134
+ export function isForbiddenUsername(username) {
1135
+ return !!username.match(APIFY_ID_REGEX) || !!username.match(FORBIDDEN_REGEXP);
1136
+ }
1137
+ //# sourceMappingURL=usernames.js.map