@pipe0/base 0.0.7 → 0.0.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @pipe0/ops
2
2
 
3
+ ## 0.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - v1 preparations
8
+ - Updated dependencies
9
+ - @pipe0/client@0.0.34
10
+
11
+ ## 0.0.8
12
+
13
+ ### Patch Changes
14
+
15
+ - Update billing info
16
+ - Updated dependencies
17
+ - @pipe0/client@0.0.33
18
+
3
19
  ## 0.0.7
4
20
 
5
21
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -2868,7 +2868,7 @@ declare const ProviderNameSchema: z.ZodEnum<{
2868
2868
  type ProviderRateLimitOperation = "pipe0_logic" | "pipe0_generic" | "pipe0-sheet-operation" | "pipe0_scraper" | "findymail_generic" | "findymail_email_lookup" | "findymail_email_b2b_lookup" | "findymail_phone_lookup" | "dropcontact_generic" | "hunter_generic" | "hunter_email_finder" | "hunter_email_enrichment" | "zerobounce_generic" | "millionverifier_generic" | "googlemaps_generic" | "gemini_25_flash_preview" | "gemini_20_flash" | "leadmagic_company_search" | "leadmagic_email_lookup" | "leadmagic_email_b2b_lookup" | "leadmagic_email_to_b2b_profile" | "leadmagic_personal_email_finder" | "leadmagic_mobile_number_lookup" | "leadmagic_company_funding" | "leadmagic_role_finder" | "contactout_generic" | "builtwith_generic" | "perplexity_generic" | "serper_search" | "clado_search_people" | "clado_contact_information" | "icypeas_scrape_profile" | "icypeas_lead_database" | "icypeas_company_database" | "icypeas_email_lookup" | "prospeo_phone_number_lookup" | "prospeo_social_profile_lookup" | "clado_social_profile_lookup" | "prospeo_email_lookup" | "resend_generic" | "slack_post_message" | "gmail_send_email" | "leadmagic_employee_finder" | "firecrawl_generic" | "firecrawl_map_requests" | "firecrawl_extract" | "exa_websets" | "openai_gpt-5" | "openai_gpt-5-mini" | "company_enrich_generic" | "logodev_describe" | "crustdata_company_db_search" | "crustdata_company_enrich" | "crustdata_people_db_search" | "crustdata_realtime_post_fetch" | "crustdata_realtime_person_enrich" | "amplemarket_generic" | "amplemarket-person-reveal" | "amplemarket_people_search" | "amplemarket_company_search" | "mixrank-person-match";
2869
2869
  type ProviderName = z.infer<typeof ProviderNameSchema>;
2870
2870
  type ExternalProviderName = Exclude<ProviderName, "pipe0">;
2871
- type BillableOperation = "builtwith-get-financial-profile1" | "pipe0-get-company-identity" | "pipe0-get-company-news-summary" | "pipe0-get-company-overview" | "gemini-flash-latest-prompt" | "prospeo-get-work-email" | "leadmagic-get-work-email" | "icypeas-get-work-email" | "pipe0-company-domain-from-work-email" | "pipe0-extract-json" | "pipe0-is-workemail-check" | "pipe0-join-name" | "pipe0-split-name" | "pipe0-platform-operation" | "leadmagic-mobile-from-profile" | "leadmagic-mobile-from-workemail" | "prospeo-mobile-from-profile" | "clado-personal-email-from-profile" | "leadmagic-personal-email-from-profile" | "leadmagic-find-role" | "findymail-find-role" | "findymail-reverse-email-lookup" | "icypeas-get-professional-profile" | "prospeo-get-professional-profile" | "clado-get-professional-profile" | "leadmagic-profile-url-from-email" | "pipe0-get-profileurl-from-name" | "pipe0-split-name" | "zerobounce-validate-email" | "millionverifier-validate-email" | "builtwith-get-technology-stack" | "send-email-resend" | "gemini-flash-latest-write-email" | "gemini-flash-latest-write-message" | "openai-gpt-latest-write-message" | "openai-gpt-mini-latest-write-message" | "send-message-slack" | "findymail-get-work-email" | "findymail-mobile-from-profile" | "get-company-funding-leadmagic" | "template-fill" | "send-email-gmail" | "pipe0-field-or" | "firecrawl-website-scrape" | "firecrawl-list-url-scrape" | "firecrawl-website-extract" | "firecrawl-website-maplinks" | "openai-gpt-latest-write-email" | "openai-gpt-mini-latest-write-email" | "openai-gpt-latest-prompt" | "openai-gpt-mini-latest-prompt" | "contact-create-resend" | "sheets-append-pipe0" | "sheets-appendexpand-pipe0" | "companyenrich_lookalike_result" | "logodev-company-describe" | "crustdata-single-post-fetch" | "crustdata-reverse-email-lookup" | "crustdata-profile-from-workemail" | "crustdata-workemail-profileurl" | "leadmagic-workemail-profileurl" | "findymail-workemail-profileurl" | "hunter-workemail-profileurl" | "hunter-get-work-email" | "hunter-reverse-email-lookup" | "clado-mobile-from-profile" | "clado-workemail-profileurl" | "crustdata_company_enrich" | "amplemarket-person-identity" | "amplemarket-person-match" | "amplemarket-phone-lookup" | "amplemarket-email-lookup" | "amplemarket-people-search" | "amplemarket-company-search" | "mixrank-personal-email-reveal" | "mixrank-work-email-reveal" | "mixrank-mobile-reveal" | "pipe0-http-request";
2871
+ type BillableOperation = "company-describe-logodev" | "company-domain-from-workemail-pipe0" | "company-enrich-crustdata" | "company-funding-leadmagic" | "company-identity-pipe0" | "company-news-summary-pipe0" | "company-overview-pipe0" | "company-search-amplemarket" | "contact-create-resend" | "email-lookup-amplemarket" | "email-send-gmail" | "email-send-resend" | "extract-json-pipe0" | "field-domainify-pipe0" | "field-or-pipe0" | "field-slugify-pipe0" | "financial-profile-builtwith" | "find-role-findymail" | "find-role-leadmagic" | "http-request-pipe0" | "is-workemail-pipe0" | "join-name-pipe0" | "list-url-scrape-firecrawl" | "lookalikes-companyenrich" | "message-send-slack" | "mobile-from-profile-clado" | "mobile-from-profile-findymail" | "mobile-from-profile-leadmagic" | "mobile-from-profile-prospeo" | "mobile-from-workemail-leadmagic" | "mobile-reveal-mixrank" | "people-search-amplemarket" | "person-identity-amplemarket" | "person-match-amplemarket" | "personal-email-from-profile-clado" | "personal-email-from-profile-leadmagic" | "personal-email-reveal-mixrank" | "phone-lookup-amplemarket" | "profile-from-workemail-crustdata" | "professional-profile-clado" | "professional-profile-icypeas" | "professional-profile-prospeo" | "profileurl-from-email-leadmagic" | "profileurl-from-name-pipe0" | "prompt-gemini-flash-latest" | "prompt-openai-gpt-latest" | "prompt-openai-gpt-mini-latest" | "reverse-email-lookup-crustdata" | "reverse-email-lookup-findymail" | "reverse-email-lookup-hunter" | "sheet-row-append-pipe0" | "sheet-row-appendexpand-pipe0" | "single-post-fetch-crustdata" | "split-name-pipe0" | "technology-stack-builtwith" | "template-fill-pipe0" | "validate-email-millionverifier" | "validate-email-zerobounce" | "website-extract-firecrawl" | "website-maplinks-firecrawl" | "website-scrape-firecrawl" | "work-email-findymail" | "work-email-hunter" | "work-email-icypeas" | "work-email-leadmagic" | "work-email-prospeo" | "work-email-reveal-mixrank" | "workemail-from-profileurl-clado" | "workemail-from-profileurl-crustdata" | "workemail-from-profileurl-findymail" | "workemail-from-profileurl-hunter" | "workemail-from-profileurl-leadmagic" | "write-email-gemini-flash-latest" | "write-email-openai-gpt-latest" | "write-email-openai-gpt-mini-latest" | "write-message-gemini-flash-latest" | "write-message-openai-gpt-latest" | "write-message-openai-gpt-mini-latest" | "companies-profiles-amplemarket" | "companies-profiles-crustdata" | "companies-profiles-exa" | "companies-profiles-icypeas" | "people-employees-leadmagic" | "people-profiles-amplemarket" | "people-profiles-clado" | "people-profiles-crustdata" | "people-profiles-exa" | "people-profiles-icypeas";
2872
2872
  //#endregion
2873
2873
  //#region src/fields/field-catalog.d.ts
2874
2874
  type FieldEntry = {
@@ -12738,6 +12738,7 @@ type SearchDef<PayloadSchema extends z.ZodType> = {
12738
12738
  baseSearch: string;
12739
12739
  paginationType: PaginationType;
12740
12740
  provider: ProviderName;
12741
+ billableOperation: BillableOperation;
12741
12742
  hasManagedConnection: boolean;
12742
12743
  allowsUserConnection: boolean;
12743
12744
  label: string;
@@ -17482,6 +17483,7 @@ declare const searchesPayloadSchemaCatalog: {
17482
17483
  declare const searchesCatalog: {
17483
17484
  "people:profiles:crustdata@1": {
17484
17485
  searchId: "people:profiles:crustdata@1";
17486
+ billableOperation: "people-profiles-crustdata";
17485
17487
  baseSearch: string;
17486
17488
  label: string;
17487
17489
  categories: "people"[];
@@ -17563,6 +17565,7 @@ declare const searchesCatalog: {
17563
17565
  };
17564
17566
  "companies:profiles:crustdata@1": {
17565
17567
  searchId: "companies:profiles:crustdata@1";
17568
+ billableOperation: "companies-profiles-crustdata";
17566
17569
  baseSearch: string;
17567
17570
  label: string;
17568
17571
  categories: "companies"[];
@@ -17635,6 +17638,7 @@ declare const searchesCatalog: {
17635
17638
  };
17636
17639
  "companies:profiles:exa@1": {
17637
17640
  searchId: "companies:profiles:exa@1";
17641
+ billableOperation: "companies-profiles-exa";
17638
17642
  baseSearch: string;
17639
17643
  label: string;
17640
17644
  categories: "companies"[];
@@ -17688,6 +17692,7 @@ declare const searchesCatalog: {
17688
17692
  };
17689
17693
  "people:profiles:exa@1": {
17690
17694
  searchId: "people:profiles:exa@1";
17695
+ billableOperation: "people-profiles-exa";
17691
17696
  baseSearch: string;
17692
17697
  label: string;
17693
17698
  categories: "people"[];
@@ -17741,6 +17746,7 @@ declare const searchesCatalog: {
17741
17746
  };
17742
17747
  "people:profiles:icypeas@1": {
17743
17748
  searchId: "people:profiles:icypeas@1";
17749
+ billableOperation: "people-profiles-icypeas";
17744
17750
  provider: "icypeas";
17745
17751
  baseSearch: string;
17746
17752
  label: string;
@@ -17849,6 +17855,7 @@ declare const searchesCatalog: {
17849
17855
  };
17850
17856
  "companies:profiles:icypeas@1": {
17851
17857
  searchId: "companies:profiles:icypeas@1";
17858
+ billableOperation: "companies-profiles-icypeas";
17852
17859
  baseSearch: string;
17853
17860
  label: string;
17854
17861
  categories: "companies"[];
@@ -17934,6 +17941,7 @@ declare const searchesCatalog: {
17934
17941
  };
17935
17942
  "people:employees:leadmagic@1": {
17936
17943
  searchId: "people:employees:leadmagic@1";
17944
+ billableOperation: "people-employees-leadmagic";
17937
17945
  baseSearch: string;
17938
17946
  label: string;
17939
17947
  categories: "people"[];
@@ -17979,6 +17987,7 @@ declare const searchesCatalog: {
17979
17987
  };
17980
17988
  "people:profiles:clado@1": {
17981
17989
  searchId: "people:profiles:clado@1";
17990
+ billableOperation: "people-profiles-clado";
17982
17991
  baseSearch: string;
17983
17992
  label: string;
17984
17993
  categories: "people"[];
@@ -18035,6 +18044,7 @@ declare const searchesCatalog: {
18035
18044
  };
18036
18045
  "people:profiles:clado@2": {
18037
18046
  searchId: "people:profiles:clado@2";
18047
+ billableOperation: "people-profiles-clado";
18038
18048
  baseSearch: string;
18039
18049
  label: string;
18040
18050
  categories: "deprecated"[];
@@ -20520,6 +20530,7 @@ declare function getSearchesTableDataAggregates(initialTableData: SearchesCatalo
20520
20530
  };
20521
20531
  declare function getSearchesEntry(searchId: SearchesId): {
20522
20532
  searchId: "people:profiles:crustdata@1";
20533
+ billableOperation: "people-profiles-crustdata";
20523
20534
  baseSearch: string;
20524
20535
  label: string;
20525
20536
  categories: "people"[];
@@ -20600,6 +20611,7 @@ declare function getSearchesEntry(searchId: SearchesId): {
20600
20611
  };
20601
20612
  } | {
20602
20613
  searchId: "companies:profiles:crustdata@1";
20614
+ billableOperation: "companies-profiles-crustdata";
20603
20615
  baseSearch: string;
20604
20616
  label: string;
20605
20617
  categories: "companies"[];
@@ -20671,6 +20683,7 @@ declare function getSearchesEntry(searchId: SearchesId): {
20671
20683
  };
20672
20684
  } | {
20673
20685
  searchId: "companies:profiles:exa@1";
20686
+ billableOperation: "companies-profiles-exa";
20674
20687
  baseSearch: string;
20675
20688
  label: string;
20676
20689
  categories: "companies"[];
@@ -20723,6 +20736,7 @@ declare function getSearchesEntry(searchId: SearchesId): {
20723
20736
  };
20724
20737
  } | {
20725
20738
  searchId: "people:profiles:exa@1";
20739
+ billableOperation: "people-profiles-exa";
20726
20740
  baseSearch: string;
20727
20741
  label: string;
20728
20742
  categories: "people"[];
@@ -20775,6 +20789,7 @@ declare function getSearchesEntry(searchId: SearchesId): {
20775
20789
  };
20776
20790
  } | {
20777
20791
  searchId: "people:profiles:icypeas@1";
20792
+ billableOperation: "people-profiles-icypeas";
20778
20793
  provider: "icypeas";
20779
20794
  baseSearch: string;
20780
20795
  label: string;
@@ -20882,6 +20897,7 @@ declare function getSearchesEntry(searchId: SearchesId): {
20882
20897
  };
20883
20898
  } | {
20884
20899
  searchId: "companies:profiles:icypeas@1";
20900
+ billableOperation: "companies-profiles-icypeas";
20885
20901
  baseSearch: string;
20886
20902
  label: string;
20887
20903
  categories: "companies"[];
@@ -20966,6 +20982,7 @@ declare function getSearchesEntry(searchId: SearchesId): {
20966
20982
  };
20967
20983
  } | {
20968
20984
  searchId: "people:employees:leadmagic@1";
20985
+ billableOperation: "people-employees-leadmagic";
20969
20986
  baseSearch: string;
20970
20987
  label: string;
20971
20988
  categories: "people"[];
@@ -21010,6 +21027,7 @@ declare function getSearchesEntry(searchId: SearchesId): {
21010
21027
  };
21011
21028
  } | {
21012
21029
  searchId: "people:profiles:clado@1";
21030
+ billableOperation: "people-profiles-clado";
21013
21031
  baseSearch: string;
21014
21032
  label: string;
21015
21033
  categories: "people"[];
@@ -21065,6 +21083,7 @@ declare function getSearchesEntry(searchId: SearchesId): {
21065
21083
  };
21066
21084
  } | {
21067
21085
  searchId: "people:profiles:clado@2";
21086
+ billableOperation: "people-profiles-clado";
21068
21087
  baseSearch: string;
21069
21088
  label: string;
21070
21089
  categories: "deprecated"[];
@@ -42232,18 +42251,19 @@ type ManagedBillableOperationDef = {
42232
42251
  credits: number;
42233
42252
  };
42234
42253
  /**
42235
- * Build billable operations for all AI models with a given suffix.
42236
- * Returns a record keyed by `${modelId}-${suffix}`.
42254
+ * Build billable operations for all AI models with a given action prefix.
42255
+ * Returns a record keyed by `${action}-${modelId}` (e.g. `prompt-gemini-flash-latest`).
42256
+ * Action-first matches the billable-operation convention (provider/model at end).
42237
42257
  */
42238
- declare function buildAiModelBillableOperations<Suffix extends string>(suffix: Suffix, creditOverrides?: Partial<Record<AiModelId, number>>): { [M in AiModelId as `${M}-${Suffix}`]: ManagedBillableOperationDef };
42258
+ declare function buildAiModelBillableOperations<Action extends string>(action: Action, creditOverrides?: Partial<Record<AiModelId, number>>): { [M in AiModelId as `${Action}-${M}`]: ManagedBillableOperationDef };
42239
42259
  /**
42240
42260
  * Get the provider names for a given model.
42241
42261
  */
42242
42262
  declare function getAiModelProviders(modelId: AiModelId): ProviderName[];
42243
42263
  /**
42244
- * Get the billing key for a given model and suffix.
42264
+ * Get the billing key for a given model and action. Format: `${action}-${modelId}`.
42245
42265
  */
42246
- declare function getAiModelBillingKey<Suffix extends string>(modelId: AiModelId, suffix: Suffix): `${AiModelId}-${Suffix}`;
42266
+ declare function getAiModelBillingKey<Action extends string>(modelId: AiModelId, action: Action): `${Action}-${AiModelId}`;
42247
42267
  /**
42248
42268
  * Get connection requirements for a given model.
42249
42269
  */
@@ -43323,37 +43343,37 @@ declare class PipeClass extends Pipe<Payload> {
43323
43343
  payload: Payload;
43324
43344
  payloadSchema: ZodType;
43325
43345
  billableOperations: {
43326
- readonly "leadmagic-get-work-email": {
43346
+ readonly "work-email-leadmagic": {
43327
43347
  readonly provider: "leadmagic";
43328
43348
  readonly allowManagedConnection: true;
43329
43349
  readonly credits: 0.5;
43330
43350
  readonly mode: "onSuccess";
43331
43351
  };
43332
- readonly "icypeas-get-work-email": {
43352
+ readonly "work-email-icypeas": {
43333
43353
  readonly provider: "icypeas";
43334
43354
  readonly allowManagedConnection: true;
43335
43355
  readonly credits: 0.5;
43336
43356
  readonly mode: "onSuccess";
43337
43357
  };
43338
- readonly "prospeo-get-work-email": {
43358
+ readonly "work-email-prospeo": {
43339
43359
  readonly provider: "prospeo";
43340
43360
  readonly allowManagedConnection: true;
43341
43361
  readonly credits: 1;
43342
43362
  readonly mode: "onSuccess";
43343
43363
  };
43344
- readonly "findymail-get-work-email": {
43364
+ readonly "work-email-findymail": {
43345
43365
  readonly provider: "findymail";
43346
43366
  readonly allowManagedConnection: true;
43347
43367
  readonly credits: 1;
43348
43368
  readonly mode: "onSuccess";
43349
43369
  };
43350
- readonly "hunter-get-work-email": {
43370
+ readonly "work-email-hunter": {
43351
43371
  readonly provider: "hunter";
43352
43372
  readonly allowManagedConnection: true;
43353
43373
  readonly credits: 1;
43354
43374
  readonly mode: "onSuccess";
43355
43375
  };
43356
- readonly "amplemarket-email-lookup": {
43376
+ readonly "email-lookup-amplemarket": {
43357
43377
  readonly provider: "amplemarket";
43358
43378
  readonly allowManagedConnection: true;
43359
43379
  readonly credits: 2.5;
@@ -43474,37 +43494,37 @@ declare const PersonWorkemailWaterfall1Entry: {
43474
43494
  readonly inputFieldMode: "static";
43475
43495
  readonly outputFieldMode: "static";
43476
43496
  readonly billableOperations: {
43477
- readonly "leadmagic-get-work-email": {
43497
+ readonly "work-email-leadmagic": {
43478
43498
  readonly provider: "leadmagic";
43479
43499
  readonly allowManagedConnection: true;
43480
43500
  readonly credits: 0.5;
43481
43501
  readonly mode: "onSuccess";
43482
43502
  };
43483
- readonly "icypeas-get-work-email": {
43503
+ readonly "work-email-icypeas": {
43484
43504
  readonly provider: "icypeas";
43485
43505
  readonly allowManagedConnection: true;
43486
43506
  readonly credits: 0.5;
43487
43507
  readonly mode: "onSuccess";
43488
43508
  };
43489
- readonly "prospeo-get-work-email": {
43509
+ readonly "work-email-prospeo": {
43490
43510
  readonly provider: "prospeo";
43491
43511
  readonly allowManagedConnection: true;
43492
43512
  readonly credits: 1;
43493
43513
  readonly mode: "onSuccess";
43494
43514
  };
43495
- readonly "findymail-get-work-email": {
43515
+ readonly "work-email-findymail": {
43496
43516
  readonly provider: "findymail";
43497
43517
  readonly allowManagedConnection: true;
43498
43518
  readonly credits: 1;
43499
43519
  readonly mode: "onSuccess";
43500
43520
  };
43501
- readonly "hunter-get-work-email": {
43521
+ readonly "work-email-hunter": {
43502
43522
  readonly provider: "hunter";
43503
43523
  readonly allowManagedConnection: true;
43504
43524
  readonly credits: 1;
43505
43525
  readonly mode: "onSuccess";
43506
43526
  };
43507
- readonly "amplemarket-email-lookup": {
43527
+ readonly "email-lookup-amplemarket": {
43508
43528
  readonly provider: "amplemarket";
43509
43529
  readonly allowManagedConnection: true;
43510
43530
  readonly credits: 2.5;