@distilled.cloud/steel 0.0.0 → 1.0.0-rc.20

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 (102) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +66 -4
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +24 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +39 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +26 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +7 -0
  16. package/lib/index.lazy.js +7 -0
  17. package/lib/index.lazy.js.map +1 -0
  18. package/lib/pagination.d.ts +10 -0
  19. package/lib/pagination.d.ts.map +1 -0
  20. package/lib/pagination.js +1 -0
  21. package/lib/protocol.d.ts +19 -0
  22. package/lib/protocol.d.ts.map +1 -0
  23. package/lib/protocol.js +1 -0
  24. package/lib/retry.d.ts +50 -0
  25. package/lib/retry.d.ts.map +1 -0
  26. package/lib/retry.js +1 -0
  27. package/lib/services/api_keys.d.ts +63 -0
  28. package/lib/services/api_keys.d.ts.map +1 -0
  29. package/lib/services/api_keys.js +2 -0
  30. package/lib/services/api_keys.js.map +1 -0
  31. package/lib/services/auth.d.ts +32 -0
  32. package/lib/services/auth.d.ts.map +1 -0
  33. package/lib/services/auth.js +2 -0
  34. package/lib/services/auth.js.map +1 -0
  35. package/lib/services/browser_tools.d.ts +166 -0
  36. package/lib/services/browser_tools.d.ts.map +1 -0
  37. package/lib/services/browser_tools.js +2 -0
  38. package/lib/services/browser_tools.js.map +1 -0
  39. package/lib/services/captchas.d.ts +72 -0
  40. package/lib/services/captchas.d.ts.map +1 -0
  41. package/lib/services/captchas.js +2 -0
  42. package/lib/services/captchas.js.map +1 -0
  43. package/lib/services/credentials.d.ts +127 -0
  44. package/lib/services/credentials.d.ts.map +1 -0
  45. package/lib/services/credentials.js +2 -0
  46. package/lib/services/credentials.js.map +1 -0
  47. package/lib/services/extensions.d.ts +122 -0
  48. package/lib/services/extensions.d.ts.map +1 -0
  49. package/lib/services/extensions.js +2 -0
  50. package/lib/services/extensions.js.map +1 -0
  51. package/lib/services/files.d.ts +144 -0
  52. package/lib/services/files.d.ts.map +1 -0
  53. package/lib/services/files.js +2 -0
  54. package/lib/services/files.js.map +1 -0
  55. package/lib/services/index.d.ts +11 -0
  56. package/lib/services/index.d.ts.map +1 -0
  57. package/lib/services/index.js +10 -0
  58. package/lib/services/profiles.d.ts +422 -0
  59. package/lib/services/profiles.d.ts.map +1 -0
  60. package/lib/services/profiles.js +2 -0
  61. package/lib/services/profiles.js.map +1 -0
  62. package/lib/services/projects.d.ts +50 -0
  63. package/lib/services/projects.d.ts.map +1 -0
  64. package/lib/services/projects.js +2 -0
  65. package/lib/services/projects.js.map +1 -0
  66. package/lib/services/sessions.d.ts +1977 -0
  67. package/lib/services/sessions.d.ts.map +1 -0
  68. package/lib/services/sessions.js +44 -0
  69. package/lib/services/sessions.js.map +1 -0
  70. package/lib/services.lazy/api_keys.js +1 -0
  71. package/lib/services.lazy/auth.js +1 -0
  72. package/lib/services.lazy/browser_tools.js +1 -0
  73. package/lib/services.lazy/captchas.js +1 -0
  74. package/lib/services.lazy/credentials.js +1 -0
  75. package/lib/services.lazy/extensions.js +1 -0
  76. package/lib/services.lazy/files.js +1 -0
  77. package/lib/services.lazy/index.js +3 -0
  78. package/lib/services.lazy/profiles.js +1 -0
  79. package/lib/services.lazy/projects.js +1 -0
  80. package/lib/services.lazy/sessions.js +4 -0
  81. package/lib/traits.d.ts +11 -0
  82. package/lib/traits.d.ts.map +1 -0
  83. package/lib/traits.js +1 -0
  84. package/package.json +83 -2
  85. package/src/credentials.ts +63 -0
  86. package/src/errors.ts +51 -0
  87. package/src/index.ts +25 -0
  88. package/src/pagination.ts +9 -0
  89. package/src/protocol.ts +76 -0
  90. package/src/retry.ts +69 -0
  91. package/src/services/api_keys.ts +124 -0
  92. package/src/services/auth.ts +101 -0
  93. package/src/services/browser_tools.ts +338 -0
  94. package/src/services/captchas.ts +216 -0
  95. package/src/services/credentials.ts +292 -0
  96. package/src/services/extensions.ts +338 -0
  97. package/src/services/files.ts +456 -0
  98. package/src/services/index.ts +11 -0
  99. package/src/services/profiles.ts +871 -0
  100. package/src/services/projects.ts +146 -0
  101. package/src/services/sessions.ts +4515 -0
  102. package/src/traits.ts +46 -0
@@ -0,0 +1,2 @@
1
+ import{Ac as e,Ba as t,Cc as n,Fc as r,Ic as i,Kc as a,Lc as o,a as s,c,e as l,errors$UnknownSteelError as u,k as d,l as f,lc as p,m,protocol$SteelProtocol as h,retry$Retry as g,traits$BinaryResponse as _,traits$Http as v,traits$Label as y,traits$applyErrorMatchers as b,uc as x,xc as S,ya as C,yc as w}from"../_bundle/sdk.js";const T={system:`steel-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`}],prefix:`Steel`,service:`Extensions`,labels:`steel`,propagate:`w3c`};const E=/*@__PURE__*/ l(function BadRequest(t){return f(t,new.target,[`$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])`,[r,C,x,S,e,b]])});const D=/*@__PURE__*/ l(function Conflict(n){return f(n,new.target,[`$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])`,[r,t,x,S,e,b]])});const O=/*@__PURE__*/ l(function NotFound(t){return f(t,new.target,[`$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])`,[r,C,x,S,e,b]])});const k=/*@__PURE__*/ l(function PayloadTooLarge(t){return f(t,new.target,[`$5($4()("PayloadTooLarge",{code:$2,message:$3}).pipe($1),[{status:413}])`,[r,C,x,S,e,b]])});const A=/*@__PURE__*/ m(e=>e===s?d(`DeleteAllExtensions`,`{input:#1,output:#4:0,errors:[$5,$6],protocol:$7,retry:$8,telemetry:$9,span:"%"};$3(>2)@"%Request";$2({}).pipe($1({method:"DELETE",uri:"/v1/extensions",code:200}))`,[r,v,w,o,__d0,E,u,h,g,T]):c(A,e));const j=/*@__PURE__*/ m(e=>e===s?d(`DeleteExtension`,`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11,telemetry:$12,span:"%"};$5(>2)@"%Request";$4({extensionId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/extensions/{extensionId}",code:200}))`,[r,v,y,S,w,o,__d0,E,O,u,h,g,T]):c(j,e));const M=/*@__PURE__*/ m(e=>e===s?d(`DownloadExtension`,`{input:#1,output:#2,errors:[$9,$10,$11],protocol:$12,retry:$13,telemetry:$14,span:"%"};$5(>3)@"%Request";$8($7).pipe($6());$4({extensionId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/extensions/{extensionId}",code:200}))`,[r,v,y,S,w,o,_,Uint8Array,i,E,O,u,h,g,T]):c(M,e));const N=/*@__PURE__*/ m(e=>e===s?d(`ListExtensions`,`{input:#1,output:#3,errors:[$7,$8],protocol:$9,retry:$10,telemetry:$11,span:"%"};$3(>4)@"%Request";$5(#4:0);$3(>5)@"ExtensionList";$2({}).pipe($1({method:"GET",uri:"/v1/extensions",code:200}));$2({count:$6,extensions:#2})`,[r,v,w,o,__d1,p,x,E,u,h,g,T]):c(N,e));const P=/*@__PURE__*/ m(e=>e===s?d(`UpdateExtension`,`{input:#1,output:#12:0,errors:[$13,$14,$15,$16,$17],protocol:$18,retry:$19,telemetry:$20,span:"%"};$11(>2)@"%Request";$10({extensionId:$3.pipe($2()),file:$9($8([$5($4),$5($6),$5($7)])),url:$9($3)}).pipe($1({method:"PUT",uri:"/v1/extensions/{extensionId}",code:200,contentType:"multipart"}))`,[r,v,y,S,Blob,i,Uint8Array,ArrayBuffer,n,a,w,o,__d1,E,O,D,k,u,h,g,T]):c(P,e));const F=/*@__PURE__*/ m(e=>e===s?d(`UploadExtension`,`{input:#1,output:#11:0,errors:[$12,$13,$14,$15],protocol:$16,retry:$17,telemetry:$18,span:"%"};$10(>2)@"%Request";$9({file:$7($6([$3($2),$3($4),$3($5)])),url:$7($8)}).pipe($1({method:"POST",uri:"/v1/extensions",code:200,contentType:"multipart"}))`,[r,v,Blob,i,Uint8Array,ArrayBuffer,n,a,S,w,o,__d1,E,D,k,u,h,g,T]):c(F,e));function __d0(){return[`$3(>1)@"DeleteResponse";$2({message:$1})`,[r,S,w,o]]}function __d1(){return[`$3(>1)@"ExtensionListExtensionsItem";$2({createdAt:$1,id:$1,name:$1,updatedAt:$1})`,[r,S,w,o]]}export{E as BadRequest,D as Conflict,O as NotFound,k as PayloadTooLarge,A as deleteAllExtensions,j as deleteExtension,M as downloadExtension,N as listExtensions,P as updateExtension,F as uploadExtension};
2
+ //# sourceMappingURL=extensions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions.js","names":["API.newError","__L.at","C.withBadRequestError","S.Number","S.String","S.TaggedError","T.applyErrorMatchers","C.withConflictError","API.D","API.named","T.Http","S.Struct","S.suspend","Retry.Retry","API.call","T.Label","T.BinaryResponse","S.instanceOf","S.Array","S.Union","S.optional","TaggedError","withConflictError","Union","at","instanceOf","optional","suspend","D","error","UnknownSteelError","named","newError","Array","SteelProtocol","Retry","BinaryResponse","Http","Label","applyErrorMatchers","Number","String","withBadRequestError","Struct","TELEMETRY","BadRequest","i","Conflict","NotFound","PayloadTooLarge","deleteAllExtensions","call","deleteExtension","downloadExtension","listExtensions","updateExtension","uploadExtension"],"sources":["../../src/services/extensions.ts"],"mappings":"uUAaA,MAAM4C,EAAY,CAChB,OAAQ,YACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,QACR,QAAS,aACT,OAAQ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,EAAUO,EAAUC,EAAWI,EAAkB,WAAYC,EAAc4B,EAAYG,EAAUlB,EAAmBI,EAAerB,EAAa+B,CAAS,CAAC,EAAI9B,EAASuC,EAAmBP,CAAC,CAAC,EAIhhB,MAAaQ,EAKK,gBAAQ,GAAgBR,IAAMtC,EAAQC,EAAU,iBAAkB,gOAAiO,CAACR,EAAQS,EAAQC,EAAUC,EAAW,KAAMM,EAASf,EAAU0C,EAAYf,EAAmBI,EAAerB,EAAa+B,CAAS,CAAC,EAAI9B,EAASwC,EAAgBR,CAAC,CAAC,EASxd,MAAaS,EAKK,gBAAQ,GAAgBT,IAAMtC,EAAQC,EAAU,kBAAmB,qSAAsS,CAACR,EAAQS,EAAQK,EAASX,EAAU,KAAMa,EAAc,WAAY,YAAaE,EAASC,EAAYT,EAAUC,EAAW,KAAMiC,EAAYG,EAAUD,EAAUE,EAAiBnB,EAAmBI,EAAerB,EAAa+B,CAAS,CAAC,EAAI9B,EAASyC,EAAiBT,CAAC,CAAC,EAItoB,MAAaU,EAKK,gBAAQ,GAAgBV,IAAMtC,EAAQC,EAAU,kBAAmB,yPAA0P,CAACR,EAAQS,EAAQ,KAAMO,EAAc,WAAY,YAAaE,EAASC,EAAYhB,EAAUO,EAAUC,EAAW,KAAMiC,EAAYE,EAAUE,EAAiBnB,EAAmBI,EAAerB,EAAa+B,CAAS,CAAC,EAAI9B,EAAS0C,EAAiBV,CAAC,CAAC,EAMvkB,SAAS,MAAY,CACnB,MAAO,CAAC,2CAA4C,CAAC7C,EAAQG,EAAUO,EAAUC,CAAS,CAAC,CAC7F,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,qFAAsF,CAACX,EAAQG,EAAUO,EAAUC,CAAS,CAAC,CACvI"}
@@ -0,0 +1,144 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import * as S from "@distilled.cloud/core/schema-lite";
3
+ import { type SteelOpError, type SteelOpContext } from "../protocol.ts";
4
+ export type { SteelOpError, SteelOpContext };
5
+ declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
6
+ readonly code: any;
7
+ readonly message: any;
8
+ }> & (new (...args: any[]) => {
9
+ "@distilled.cloud/error/categories": {
10
+ BadRequestError: true;
11
+ };
12
+ });
13
+ export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
14
+ }
15
+ declare const Conflict_base: S.TaggedErrorClass<"Conflict", {
16
+ readonly code: any;
17
+ readonly message: any;
18
+ }> & (new (...args: any[]) => {
19
+ "@distilled.cloud/error/categories": {
20
+ ConflictError: true;
21
+ };
22
+ });
23
+ export declare class Conflict extends /*@__PURE__*/ Conflict_base {
24
+ }
25
+ declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
26
+ readonly code: any;
27
+ readonly message: any;
28
+ }> & (new (...args: any[]) => {
29
+ "@distilled.cloud/error/categories": {
30
+ BadRequestError: true;
31
+ };
32
+ });
33
+ export declare class NotFound extends /*@__PURE__*/ NotFound_base {
34
+ }
35
+ declare const UnsupportedMediaType_base: S.TaggedErrorClass<"UnsupportedMediaType", {
36
+ readonly code: any;
37
+ readonly message: any;
38
+ }> & (new (...args: any[]) => {
39
+ "@distilled.cloud/error/categories": {
40
+ BadRequestError: true;
41
+ };
42
+ });
43
+ export declare class UnsupportedMediaType extends /*@__PURE__*/ UnsupportedMediaType_base {
44
+ }
45
+ export interface DeleteAllFilesRequest {
46
+ sessionId: string;
47
+ }
48
+ export interface DeleteAllFilesResponse {
49
+ }
50
+ export interface DeleteFileRequest {
51
+ sessionId: string;
52
+ path: string;
53
+ }
54
+ export interface DeleteFileResponse {
55
+ }
56
+ export interface DeleteGlobalFileRequest {
57
+ path: string;
58
+ }
59
+ export interface DeleteGlobalFileResponse {
60
+ }
61
+ export interface DownloadArchiveRequest {
62
+ sessionId: string;
63
+ }
64
+ export type DownloadArchiveResponse = Uint8Array;
65
+ export interface DownloadFileRequest {
66
+ sessionId: string;
67
+ path: string;
68
+ }
69
+ export type DownloadFileResponse = Uint8Array;
70
+ export interface DownloadGlobalFileRequest {
71
+ path: string;
72
+ }
73
+ export type DownloadGlobalFileResponse = Uint8Array;
74
+ export interface ListFilesRequest {
75
+ sessionId: string;
76
+ }
77
+ export interface MultipleFilesDataItem {
78
+ /** Timestamp when the file was created */
79
+ lastModified: string;
80
+ /** Path to the file in the storage system */
81
+ path: string;
82
+ /** Size of the file in bytes */
83
+ size: number;
84
+ }
85
+ /** Array of files for the current page */
86
+ export type MultipleFilesDataList = Array<MultipleFilesDataItem>;
87
+ export interface MultipleFiles {
88
+ /** Array of files for the current page */
89
+ data: MultipleFilesDataList;
90
+ }
91
+ export interface ListGlobalFilesRequest {
92
+ }
93
+ export interface UploadFileRequest {
94
+ sessionId: string;
95
+ /** The file to upload (binary) or URL string to download from */
96
+ file: Blob | Uint8Array | ArrayBuffer;
97
+ /** Path to the file in the storage system */
98
+ path?: string | undefined;
99
+ }
100
+ export interface FileDetails {
101
+ /** Timestamp when the file was created */
102
+ lastModified: string;
103
+ /** Path to the file in the storage system */
104
+ path: string;
105
+ /** Size of the file in bytes */
106
+ size: number;
107
+ }
108
+ export interface UploadGlobalFileRequest {
109
+ /** The file to upload (binary) or URL string to download from */
110
+ file: Blob | Uint8Array | ArrayBuffer;
111
+ /** Path to the file in the storage system */
112
+ path?: string | undefined;
113
+ }
114
+ export type DeleteAllFilesError = NotFound | Conflict | SteelOpError;
115
+ /** Delete all files Delete all files from a session */
116
+ export declare const deleteAllFiles: API.OperationMethod<DeleteAllFilesRequest, DeleteAllFilesResponse, DeleteAllFilesError, SteelOpContext>;
117
+ export type DeleteFileError = NotFound | Conflict | SteelOpError;
118
+ /** Delete a file Delete a file from a session */
119
+ export declare const deleteFile: API.OperationMethod<DeleteFileRequest, DeleteFileResponse, DeleteFileError, SteelOpContext>;
120
+ export type DeleteGlobalFileError = NotFound | SteelOpError;
121
+ /** Delete a global file Delete a file from global storage */
122
+ export declare const deleteGlobalFile: API.OperationMethod<DeleteGlobalFileRequest, DeleteGlobalFileResponse, DeleteGlobalFileError, SteelOpContext>;
123
+ export type DownloadArchiveError = NotFound | Conflict | SteelOpError;
124
+ /** Download archive Download all files from the session as a zip archive. */
125
+ export declare const downloadArchive: API.OperationMethod<DownloadArchiveRequest, DownloadArchiveResponse, DownloadArchiveError, SteelOpContext>;
126
+ export type DownloadFileError = NotFound | Conflict | SteelOpError;
127
+ /** Download a file Download a file from a session */
128
+ export declare const downloadFile: API.OperationMethod<DownloadFileRequest, DownloadFileResponse, DownloadFileError, SteelOpContext>;
129
+ export type DownloadGlobalFileError = NotFound | SteelOpError;
130
+ /** Download a global file Download a file from global storage */
131
+ export declare const downloadGlobalFile: API.OperationMethod<DownloadGlobalFileRequest, DownloadGlobalFileResponse, DownloadGlobalFileError, SteelOpContext>;
132
+ export type ListFilesError = NotFound | Conflict | SteelOpError;
133
+ /** List files List all files from the session in descending order. */
134
+ export declare const listFiles: API.OperationMethod<ListFilesRequest, MultipleFiles, ListFilesError, SteelOpContext>;
135
+ export type ListGlobalFilesError = SteelOpError;
136
+ /** List global files List all global files for the organization in descending order. */
137
+ export declare const listGlobalFiles: API.OperationMethod<ListGlobalFilesRequest, MultipleFiles, ListGlobalFilesError, SteelOpContext>;
138
+ export type UploadFileError = BadRequest | NotFound | Conflict | UnsupportedMediaType | SteelOpError;
139
+ /** Upload a file Uploads a file to a session via `multipart/form-data` with a `file` field that accepts either binary data or a URL string to download from, and an optional `path` field for the file storage path. */
140
+ export declare const uploadFile: API.OperationMethod<UploadFileRequest, FileDetails, UploadFileError, SteelOpContext>;
141
+ export type UploadGlobalFileError = BadRequest | UnsupportedMediaType | SteelOpError;
142
+ /** Upload a global file Uploads a file to global storage via `multipart/form-data` with a `file` field that accepts either binary data or a URL string to download from, and an optional `path` field for the file storage path. */
143
+ export declare const uploadGlobalFile: API.OperationMethod<UploadGlobalFileRequest, FileDetails, UploadGlobalFileError, SteelOpContext>;
144
+ //# sourceMappingURL=files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.d.ts","sourceRoot":"","sources":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,QAAQ,GACR,oBAAoB,GACpB,YAAY,CAAC;AACjB,wNAAwN;AACxN,eAAO,MAAM,UAAU,EAAE,GAAG,CAAC,eAAe,CAC1C,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,cAAc,CASb,CAAC;AAEJ,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,oBAAoB,GAAG,YAAY,CAAC;AACrF,oOAAoO;AACpO,eAAO,MAAM,gBAAgB,EAAE,GAAG,CAAC,eAAe,CAChD,uBAAuB,EACvB,WAAW,EACX,qBAAqB,EACrB,cAAc,CASb,CAAC"}
@@ -0,0 +1,2 @@
1
+ import{Ac as e,Ba as t,Cc as n,Fc as r,Ic as i,Kc as a,Lc as o,a as s,c,e as l,errors$UnknownSteelError as u,k as d,l as f,lc as p,m,protocol$SteelProtocol as h,retry$Retry as g,traits$BinaryResponse as _,traits$Http as v,traits$Label as y,traits$applyErrorMatchers as b,uc as x,xc as S,ya as C,yc as w}from"../_bundle/sdk.js";const T={system:`steel-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`}],prefix:`Steel`,service:`Files`,labels:`steel`,propagate:`w3c`};const E=/*@__PURE__*/ l(function BadRequest(t){return f(t,new.target,[`$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])`,[r,C,x,S,e,b]])});const D=/*@__PURE__*/ l(function Conflict(n){return f(n,new.target,[`$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])`,[r,t,x,S,e,b]])});const O=/*@__PURE__*/ l(function NotFound(t){return f(t,new.target,[`$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])`,[r,C,x,S,e,b]])});const k=/*@__PURE__*/ l(function UnsupportedMediaType(t){return f(t,new.target,[`$5($4()("UnsupportedMediaType",{code:$2,message:$3}).pipe($1),[{status:415}])`,[r,C,x,S,e,b]])});const A=/*@__PURE__*/ m(e=>e===s?d(`DeleteAllFiles`,`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11,telemetry:$12,span:"%"};$5(>2)@"%Request";$4({sessionId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/sessions/{sessionId}/files",code:200}))`,[r,v,y,S,w,o,__d2,O,D,u,h,g,T]):c(A,e));const j=/*@__PURE__*/ m(e=>e===s?d(`DeleteFile`,`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11,telemetry:$12,span:"%"};$5(>2)@"%Request";$4({sessionId:$3.pipe($2()),path:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/sessions/{sessionId}/files/{path}",code:200}))`,[r,v,y,S,w,o,__d2,O,D,u,h,g,T]):c(j,e));const M=/*@__PURE__*/ m(e=>e===s?d(`DeleteGlobalFile`,`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({path:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/files/{path}",code:200}))`,[r,v,y,S,w,o,__d2,O,u,h,g,T]):c(M,e));const N=/*@__PURE__*/ m(e=>e===s?d(`DownloadArchive`,`{input:#1,output:#2,errors:[$9,$10,$11],protocol:$12,retry:$13,telemetry:$14,span:"%"};$5(>3)@"%Request";$8($7).pipe($6());$4({sessionId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/sessions/{sessionId}/files.zip",code:200}))`,[r,v,y,S,w,o,_,Uint8Array,i,O,D,u,h,g,T]):c(N,e));const P=/*@__PURE__*/ m(e=>e===s?d(`DownloadFile`,`{input:#1,output:#2,errors:[$9,$10,$11],protocol:$12,retry:$13,telemetry:$14,span:"%"};$5(>3)@"%Request";$8($7).pipe($6());$4({sessionId:$3.pipe($2()),path:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/sessions/{sessionId}/files/{path}",code:200}))`,[r,v,y,S,w,o,_,Uint8Array,i,O,D,u,h,g,T]):c(P,e));const F=/*@__PURE__*/ m(e=>e===s?d(`DownloadGlobalFile`,`{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12,telemetry:$13,span:"%"};$5(>3)@"%Request";$8($7).pipe($6());$4({path:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/files/{path}",code:200}))`,[r,v,y,S,w,o,_,Uint8Array,i,O,u,h,g,T]):c(F,e));const I=/*@__PURE__*/ m(e=>e===s?d(`ListFiles`,`{input:#1,output:#6:1,errors:[$7,$8,$9],protocol:$10,retry:$11,telemetry:$12,span:"%"};$5(>2)@"%Request";$4({sessionId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/sessions/{sessionId}/files",code:200}))`,[r,v,y,S,w,o,__d0,O,D,u,h,g,T]):c(I,e));const L=/*@__PURE__*/ m(e=>e===s?d(`ListGlobalFiles`,`{input:#1,output:#4:1,errors:[$5],protocol:$6,retry:$7,telemetry:$8,span:"%"};$3(>2)@"%Request";$2({}).pipe($1({method:"GET",uri:"/v1/files",code:200}))`,[r,v,w,o,__d0,u,h,g,T]):c(L,e));const R=/*@__PURE__*/ m(e=>e===s?d(`UploadFile`,`{input:#1,output:#12:0,errors:[$13,$14,$15,$16,$17],protocol:$18,retry:$19,telemetry:$20,span:"%"};$11(>2)@"%Request";$10({sessionId:$3.pipe($2()),file:$8([$5($4),$5($6),$5($7)]),path:$9($3)}).pipe($1({method:"POST",uri:"/v1/sessions/{sessionId}/files",code:200,contentType:"multipart"}))`,[r,v,y,S,Blob,i,Uint8Array,ArrayBuffer,n,a,w,o,__d1,E,O,D,k,u,h,g,T]):c(R,e));const z=/*@__PURE__*/ m(e=>e===s?d(`UploadGlobalFile`,`{input:#1,output:#11:0,errors:[$12,$13,$14],protocol:$15,retry:$16,telemetry:$17,span:"%"};$10(>2)@"%Request";$9({file:$6([$3($2),$3($4),$3($5)]),path:$8($7)}).pipe($1({method:"POST",uri:"/v1/files",code:200,contentType:"multipart"}))`,[r,v,Blob,i,Uint8Array,ArrayBuffer,n,S,a,w,o,__d1,E,k,u,h,g,T]):c(z,e));function __d0(){return[`$2(#1:0);$4(>2)@"MultipleFiles";$3({data:#0})`,[r,__d1,p,w,o]]}function __d1(){return[`$4(>1)@"MultipleFilesDataItem";$3({lastModified:$1,path:$1,size:$2})`,[r,S,x,w,o]]}function __d2(){return[`$2(>1)@"DeleteAllFilesResponse";$1({})`,[r,w,o]]}export{E as BadRequest,D as Conflict,O as NotFound,k as UnsupportedMediaType,A as deleteAllFiles,j as deleteFile,M as deleteGlobalFile,N as downloadArchive,P as downloadFile,F as downloadGlobalFile,I as listFiles,L as listGlobalFiles,R as uploadFile,z as uploadGlobalFile};
2
+ //# sourceMappingURL=files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.js","names":["API.newError","__L.at","C.withBadRequestError","S.Number","S.String","S.TaggedError","T.applyErrorMatchers","C.withConflictError","API.D","API.named","T.Http","T.Label","S.Struct","S.suspend","Retry.Retry","API.call","T.BinaryResponse","S.instanceOf","S.Union","S.optional","S.Array","TaggedError","withConflictError","Union","at","instanceOf","optional","suspend","D","error","UnknownSteelError","named","newError","Array","SteelProtocol","Retry","BinaryResponse","Http","Label","applyErrorMatchers","Number","String","withBadRequestError","Struct","TELEMETRY","BadRequest","i","Conflict","NotFound","UnsupportedMediaType","deleteAllFiles","call","deleteFile","deleteGlobalFile","downloadArchive","downloadFile","downloadGlobalFile","listFiles","listGlobalFiles","uploadFile","uploadGlobalFile"],"sources":["../../src/services/files.ts"],"mappings":"uUAaA,MAAM4C,EAAY,CAChB,OAAQ,YACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,QACR,QAAS,QACT,OAAQ,QACR,UAAW,KACb,EAEA,MAAaC,EAAgC,gBAAU,SAAS,WAAW,EAAa,CACtF,OAAO7C,EAAa8C,EAAG,WAAY,CAAC,sEAAuE,CAAC7C,EAAQC,E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YAAaC,EAASC,EAAYP,EAAUC,EAAW,KAAMgC,EAAYG,EAAUD,EAAUE,EAAsBnB,EAAmBI,EAAepB,EAAa8B,CAAS,CAAC,EAAI7B,EAAS4C,EAAYb,CAAC,CAAC,EAI/nB,MAAac,EAKK,gBAAQ,GAAgBd,IAAMtC,EAAQC,EAAU,mBAAoB,6OAA8O,CAACR,EAAQS,EAAQ,KAAMO,EAAc,WAAY,YAAaC,EAASd,EAAUe,EAAYP,EAAUC,EAAW,KAAMgC,EAAYI,EAAsBnB,EAAmBI,EAAepB,EAAa8B,CAAS,CAAC,EAAI7B,EAAS6C,EAAkBd,CAAC,CAAC,EAMxjB,SAAS,MAAY,CACnB,MAAO,CAAC,gDAAiD,CAAC7C,EAAQ,KAAMmB,EAASR,EAAUC,CAAS,CAAC,CACvG,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,uEAAwE,CAACZ,EAAQG,EAAUD,EAAUS,EAAUC,CAAS,CAAC,CACnI,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,yCAA0C,CAACZ,EAAQW,EAAUC,CAAS,CAAC,CACjF"}
@@ -0,0 +1,11 @@
1
+ export * as apiKeys from "./api_keys.ts";
2
+ export * as auth from "./auth.ts";
3
+ export * as browserTools from "./browser_tools.ts";
4
+ export * as captchas from "./captchas.ts";
5
+ export * as credentials from "./credentials.ts";
6
+ export * as extensions from "./extensions.ts";
7
+ export * as files from "./files.ts";
8
+ export * as profiles from "./profiles.ts";
9
+ export * as projects from "./projects.ts";
10
+ export * as sessions from "./sessions.ts";
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,YAAY,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC"}
@@ -0,0 +1,10 @@
1
+ export * as apiKeys from "./api_keys.js";
2
+ export * as auth from "./auth.js";
3
+ export * as browserTools from "./browser_tools.js";
4
+ export * as captchas from "./captchas.js";
5
+ export * as credentials from "./credentials.js";
6
+ export * as extensions from "./extensions.js";
7
+ export * as files from "./files.js";
8
+ export * as profiles from "./profiles.js";
9
+ export * as projects from "./projects.js";
10
+ export * as sessions from "./sessions.js";
@@ -0,0 +1,422 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import * as S from "@distilled.cloud/core/schema-lite";
3
+ import { type SteelOpError, type SteelOpContext } from "../protocol.ts";
4
+ export type { SteelOpError, SteelOpContext };
5
+ declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
6
+ readonly code: any;
7
+ readonly message: any;
8
+ }> & (new (...args: any[]) => {
9
+ "@distilled.cloud/error/categories": {
10
+ BadRequestError: true;
11
+ };
12
+ });
13
+ export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
14
+ }
15
+ declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
16
+ readonly code: any;
17
+ readonly message: any;
18
+ }> & (new (...args: any[]) => {
19
+ "@distilled.cloud/error/categories": {
20
+ BadRequestError: true;
21
+ };
22
+ });
23
+ export declare class NotFound extends /*@__PURE__*/ NotFound_base {
24
+ }
25
+ declare const PayloadTooLarge_base: S.TaggedErrorClass<"PayloadTooLarge", {
26
+ readonly code: any;
27
+ readonly message: any;
28
+ }> & (new (...args: any[]) => {
29
+ "@distilled.cloud/error/categories": {
30
+ BadRequestError: true;
31
+ };
32
+ });
33
+ export declare class PayloadTooLarge extends /*@__PURE__*/ PayloadTooLarge_base {
34
+ }
35
+ /** The dimensions associated with the profile */
36
+ export interface CreateProfileRequestDimensions {
37
+ height: number;
38
+ width: number;
39
+ }
40
+ export interface CreateProfileRequest {
41
+ /** The dimensions associated with the profile */
42
+ dimensions?: CreateProfileRequestDimensions | undefined;
43
+ /** Project to create the profile in */
44
+ projectId?: string | undefined;
45
+ /** The proxy associated with the profile */
46
+ proxyUrl?: string | undefined;
47
+ /** JSON-encoded proxy configuration associated with the profile. For fixed IPs, send {"type":"fixed","id":"fixed:<id>"}. */
48
+ useProxy?: string | undefined;
49
+ /** The user agent associated with the profile */
50
+ userAgent?: string | undefined;
51
+ /** The user data directory associated with the profile */
52
+ userDataDir: Blob | Uint8Array | ArrayBuffer;
53
+ }
54
+ /** The dimensions associated with the profile */
55
+ export type ProfileDimensions = CreateProfileRequestDimensions;
56
+ /** The extension IDs associated with the profile */
57
+ export type ProfileExtensionIdsList = Array<string>;
58
+ export type ProfileFingerprintFingerprintAudioCodecsMap = {
59
+ [key: string]: string | null | undefined;
60
+ };
61
+ export interface ProfileFingerprintFingerprintBattery {
62
+ charging: boolean | null;
63
+ chargingTime: number | null;
64
+ dischargingTime: number | null;
65
+ level: number | null;
66
+ [key: string]: unknown;
67
+ }
68
+ export type ProfileFingerprintFingerprintFontsList = Array<string | null>;
69
+ export interface ProfileFingerprintFingerprintMultimediaDevicesMicrosItem {
70
+ deviceId: string | null;
71
+ groupId: string | null;
72
+ kind: string | null;
73
+ label: string | null;
74
+ [key: string]: unknown;
75
+ }
76
+ export type ProfileFingerprintFingerprintMultimediaDevicesMicrosList = Array<ProfileFingerprintFingerprintMultimediaDevicesMicrosItem>;
77
+ export type ProfileFingerprintFingerprintMultimediaDevicesSpeakersItem = ProfileFingerprintFingerprintMultimediaDevicesMicrosItem;
78
+ export type ProfileFingerprintFingerprintMultimediaDevicesSpeakersList = Array<ProfileFingerprintFingerprintMultimediaDevicesMicrosItem>;
79
+ export type ProfileFingerprintFingerprintMultimediaDevicesWebcamsItem = ProfileFingerprintFingerprintMultimediaDevicesMicrosItem;
80
+ export type ProfileFingerprintFingerprintMultimediaDevicesWebcamsList = Array<ProfileFingerprintFingerprintMultimediaDevicesMicrosItem>;
81
+ export interface ProfileFingerprintFingerprintMultimediaDevices {
82
+ micros: ProfileFingerprintFingerprintMultimediaDevicesMicrosList;
83
+ speakers: ProfileFingerprintFingerprintMultimediaDevicesSpeakersList;
84
+ webcams: ProfileFingerprintFingerprintMultimediaDevicesWebcamsList;
85
+ [key: string]: unknown;
86
+ }
87
+ export type ProfileFingerprintFingerprintNavigatorExtraPropertiesInstalledAppsList = Array<string | null>;
88
+ export type ProfileFingerprintFingerprintNavigatorExtraPropertiesVendorFlavorsList = Array<string | null>;
89
+ export interface ProfileFingerprintFingerprintNavigatorExtraProperties {
90
+ globalPrivacyControl: boolean | null;
91
+ installedApps: ProfileFingerprintFingerprintNavigatorExtraPropertiesInstalledAppsList;
92
+ pdfViewerEnabled: boolean | null;
93
+ vendorFlavors: ProfileFingerprintFingerprintNavigatorExtraPropertiesVendorFlavorsList;
94
+ [key: string]: unknown;
95
+ }
96
+ export type ProfileFingerprintFingerprintNavigatorLanguagesList = Array<string | null>;
97
+ export interface ProfileFingerprintFingerprintNavigatorUserAgentDataBrandsItem {
98
+ brand: string | null;
99
+ version: string | null;
100
+ [key: string]: unknown;
101
+ }
102
+ export type ProfileFingerprintFingerprintNavigatorUserAgentDataBrandsList = Array<ProfileFingerprintFingerprintNavigatorUserAgentDataBrandsItem>;
103
+ export interface ProfileFingerprintFingerprintNavigatorUserAgentData {
104
+ brands: ProfileFingerprintFingerprintNavigatorUserAgentDataBrandsList;
105
+ mobile: boolean | null;
106
+ platform: string | null;
107
+ [key: string]: unknown;
108
+ }
109
+ export interface ProfileFingerprintFingerprintNavigator {
110
+ appCodeName: string | null;
111
+ appName: string | null;
112
+ appVersion: string | null;
113
+ deviceMemory: number | null;
114
+ doNotTrack?: string | null | undefined;
115
+ extraProperties: ProfileFingerprintFingerprintNavigatorExtraProperties;
116
+ hardwareConcurrency: number | null;
117
+ language: string | null;
118
+ languages: ProfileFingerprintFingerprintNavigatorLanguagesList;
119
+ maxTouchPoints: number | null;
120
+ oscpu: string | null;
121
+ platform: string | null;
122
+ product: string | null;
123
+ productSub: string | null;
124
+ userAgent: string | null;
125
+ userAgentData: ProfileFingerprintFingerprintNavigatorUserAgentData;
126
+ vendor: string | null;
127
+ vendorSub: string | null;
128
+ webdriver: boolean | null;
129
+ [key: string]: unknown;
130
+ }
131
+ export type ProfileFingerprintFingerprintPluginsDataMimeTypesList = Array<string | null>;
132
+ export interface ProfileFingerprintFingerprintPluginsDataPluginsItemMimeTypesItem {
133
+ description: string | null;
134
+ enabledPlugin: string | null;
135
+ suffixes: string | null;
136
+ type: string | null;
137
+ [key: string]: unknown;
138
+ }
139
+ export type ProfileFingerprintFingerprintPluginsDataPluginsItemMimeTypesList = Array<ProfileFingerprintFingerprintPluginsDataPluginsItemMimeTypesItem>;
140
+ export interface ProfileFingerprintFingerprintPluginsDataPluginsItem {
141
+ description: string | null;
142
+ filename: string | null;
143
+ mimeTypes: ProfileFingerprintFingerprintPluginsDataPluginsItemMimeTypesList;
144
+ name: string | null;
145
+ [key: string]: unknown;
146
+ }
147
+ export type ProfileFingerprintFingerprintPluginsDataPluginsList = Array<ProfileFingerprintFingerprintPluginsDataPluginsItem>;
148
+ export interface ProfileFingerprintFingerprintPluginsData {
149
+ mimeTypes: ProfileFingerprintFingerprintPluginsDataMimeTypesList;
150
+ plugins: ProfileFingerprintFingerprintPluginsDataPluginsList;
151
+ [key: string]: unknown;
152
+ }
153
+ export interface ProfileFingerprintFingerprintScreen {
154
+ availHeight: number | null;
155
+ availLeft: number | null;
156
+ availTop: number | null;
157
+ availWidth: number | null;
158
+ clientHeight: number | null;
159
+ clientWidth: number | null;
160
+ colorDepth: number | null;
161
+ devicePixelRatio: number | null;
162
+ hasHDR: boolean | null;
163
+ height: number | null;
164
+ innerHeight: number | null;
165
+ innerWidth: number | null;
166
+ outerHeight: number | null;
167
+ outerWidth: number | null;
168
+ pageXOffset: number | null;
169
+ pageYOffset: number | null;
170
+ pixelDepth: number | null;
171
+ screenX: number | null;
172
+ width: number | null;
173
+ [key: string]: unknown;
174
+ }
175
+ export interface ProfileFingerprintFingerprintVideoCard {
176
+ renderer: string | null;
177
+ vendor: string | null;
178
+ [key: string]: unknown;
179
+ }
180
+ export type ProfileFingerprintFingerprintVideoCodecsMap = {
181
+ [key: string]: string | null | undefined;
182
+ };
183
+ export interface ProfileFingerprintFingerprint {
184
+ audioCodecs: ProfileFingerprintFingerprintAudioCodecsMap;
185
+ battery: ProfileFingerprintFingerprintBattery;
186
+ fonts: ProfileFingerprintFingerprintFontsList;
187
+ mockWebRTC: boolean | null;
188
+ multimediaDevices: ProfileFingerprintFingerprintMultimediaDevices;
189
+ navigator: ProfileFingerprintFingerprintNavigator;
190
+ pluginsData: ProfileFingerprintFingerprintPluginsData;
191
+ screen: ProfileFingerprintFingerprintScreen;
192
+ slim: boolean | null;
193
+ videoCard: ProfileFingerprintFingerprintVideoCard;
194
+ videoCodecs: ProfileFingerprintFingerprintVideoCodecsMap;
195
+ [key: string]: unknown;
196
+ }
197
+ export interface ProfileFingerprintHeaders {
198
+ accept?: string | null | undefined;
199
+ accept_encoding?: string | null | undefined;
200
+ accept_language?: string | null | undefined;
201
+ dnt?: string | null | undefined;
202
+ sec_ch_ua?: string | null | undefined;
203
+ sec_ch_ua_mobile?: string | null | undefined;
204
+ sec_ch_ua_platform?: string | null | undefined;
205
+ sec_fetch_dest?: string | null | undefined;
206
+ sec_fetch_mode?: string | null | undefined;
207
+ sec_fetch_site?: string | null | undefined;
208
+ sec_fetch_user?: string | null | undefined;
209
+ upgrade_insecure_requests?: string | null | undefined;
210
+ user_agent: string | null;
211
+ [key: string]: unknown;
212
+ }
213
+ /** The fingerprint associated with the profile */
214
+ export interface ProfileFingerprint {
215
+ fingerprint: ProfileFingerprintFingerprint;
216
+ headers: ProfileFingerprintHeaders;
217
+ }
218
+ /** The status of the profile */
219
+ export type ProfileStatus = "UPLOADING" | "READY" | "FAILED";
220
+ export interface Profile {
221
+ /** The date and time when the profile was created */
222
+ createdAt: string;
223
+ /** The credentials configuration associated with the profile */
224
+ credentialsConfig: unknown | null;
225
+ /** The dimensions associated with the profile */
226
+ dimensions: CreateProfileRequestDimensions | null;
227
+ /** The extension IDs associated with the profile */
228
+ extensionIds: ProfileExtensionIdsList | null;
229
+ /** The fingerprint associated with the profile */
230
+ fingerprint: ProfileFingerprint | null;
231
+ /** The unique identifier for the profile */
232
+ id: string;
233
+ /** The project ID associated with the profile */
234
+ projectId: string | null;
235
+ /** The last session ID associated with the profile */
236
+ sourceSessionId: string | null;
237
+ /** The status of the profile */
238
+ status: ProfileStatus;
239
+ /** The date and time when the profile was last updated */
240
+ updatedAt: string;
241
+ /** The proxy configuration associated with the profile */
242
+ useProxyConfig: unknown | null;
243
+ /** The user agent associated with the profile */
244
+ userAgent: string | null;
245
+ }
246
+ export interface GetProfileRequest {
247
+ id: string;
248
+ /** Project to query profiles from */
249
+ projectId?: string | undefined;
250
+ }
251
+ export interface ListProfilesRequest {
252
+ /** Project to query profiles from */
253
+ projectId?: string | undefined;
254
+ }
255
+ /** The dimensions associated with the profile */
256
+ export type ProfileListResponseProfilesItemDimensions = CreateProfileRequestDimensions;
257
+ /** The extension IDs associated with the profile */
258
+ export type ProfileListResponseProfilesItemExtensionIdsList = Array<string>;
259
+ export type ProfileListResponseProfilesItemFingerprintFingerprintAudioCodecsMap = {
260
+ [key: string]: string | null | undefined;
261
+ };
262
+ export type ProfileListResponseProfilesItemFingerprintFingerprintBattery = ProfileFingerprintFingerprintBattery;
263
+ export type ProfileListResponseProfilesItemFingerprintFingerprintFontsList = Array<string | null>;
264
+ export type ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevicesMicrosItem = ProfileFingerprintFingerprintMultimediaDevicesMicrosItem;
265
+ export type ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevicesMicrosList = Array<ProfileFingerprintFingerprintMultimediaDevicesMicrosItem>;
266
+ export type ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevicesSpeakersItem = ProfileFingerprintFingerprintMultimediaDevicesMicrosItem;
267
+ export type ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevicesSpeakersList = Array<ProfileFingerprintFingerprintMultimediaDevicesMicrosItem>;
268
+ export type ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevicesWebcamsItem = ProfileFingerprintFingerprintMultimediaDevicesMicrosItem;
269
+ export type ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevicesWebcamsList = Array<ProfileFingerprintFingerprintMultimediaDevicesMicrosItem>;
270
+ export interface ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevices {
271
+ micros: ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevicesMicrosList;
272
+ speakers: ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevicesSpeakersList;
273
+ webcams: ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevicesWebcamsList;
274
+ [key: string]: unknown;
275
+ }
276
+ export type ProfileListResponseProfilesItemFingerprintFingerprintNavigatorExtraPropertiesInstalledAppsList = Array<string | null>;
277
+ export type ProfileListResponseProfilesItemFingerprintFingerprintNavigatorExtraPropertiesVendorFlavorsList = Array<string | null>;
278
+ export interface ProfileListResponseProfilesItemFingerprintFingerprintNavigatorExtraProperties {
279
+ globalPrivacyControl: boolean | null;
280
+ installedApps: ProfileListResponseProfilesItemFingerprintFingerprintNavigatorExtraPropertiesInstalledAppsList;
281
+ pdfViewerEnabled: boolean | null;
282
+ vendorFlavors: ProfileListResponseProfilesItemFingerprintFingerprintNavigatorExtraPropertiesVendorFlavorsList;
283
+ [key: string]: unknown;
284
+ }
285
+ export type ProfileListResponseProfilesItemFingerprintFingerprintNavigatorLanguagesList = Array<string | null>;
286
+ export type ProfileListResponseProfilesItemFingerprintFingerprintNavigatorUserAgentDataBrandsItem = ProfileFingerprintFingerprintNavigatorUserAgentDataBrandsItem;
287
+ export type ProfileListResponseProfilesItemFingerprintFingerprintNavigatorUserAgentDataBrandsList = Array<ProfileFingerprintFingerprintNavigatorUserAgentDataBrandsItem>;
288
+ export interface ProfileListResponseProfilesItemFingerprintFingerprintNavigatorUserAgentData {
289
+ brands: ProfileListResponseProfilesItemFingerprintFingerprintNavigatorUserAgentDataBrandsList;
290
+ mobile: boolean | null;
291
+ platform: string | null;
292
+ [key: string]: unknown;
293
+ }
294
+ export interface ProfileListResponseProfilesItemFingerprintFingerprintNavigator {
295
+ appCodeName: string | null;
296
+ appName: string | null;
297
+ appVersion: string | null;
298
+ deviceMemory: number | null;
299
+ doNotTrack?: string | null | undefined;
300
+ extraProperties: ProfileListResponseProfilesItemFingerprintFingerprintNavigatorExtraProperties;
301
+ hardwareConcurrency: number | null;
302
+ language: string | null;
303
+ languages: ProfileListResponseProfilesItemFingerprintFingerprintNavigatorLanguagesList;
304
+ maxTouchPoints: number | null;
305
+ oscpu: string | null;
306
+ platform: string | null;
307
+ product: string | null;
308
+ productSub: string | null;
309
+ userAgent: string | null;
310
+ userAgentData: ProfileListResponseProfilesItemFingerprintFingerprintNavigatorUserAgentData;
311
+ vendor: string | null;
312
+ vendorSub: string | null;
313
+ webdriver: boolean | null;
314
+ [key: string]: unknown;
315
+ }
316
+ export type ProfileListResponseProfilesItemFingerprintFingerprintPluginsDataMimeTypesList = Array<string | null>;
317
+ export type ProfileListResponseProfilesItemFingerprintFingerprintPluginsDataPluginsItemMimeTypesItem = ProfileFingerprintFingerprintPluginsDataPluginsItemMimeTypesItem;
318
+ export type ProfileListResponseProfilesItemFingerprintFingerprintPluginsDataPluginsItemMimeTypesList = Array<ProfileFingerprintFingerprintPluginsDataPluginsItemMimeTypesItem>;
319
+ export interface ProfileListResponseProfilesItemFingerprintFingerprintPluginsDataPluginsItem {
320
+ description: string | null;
321
+ filename: string | null;
322
+ mimeTypes: ProfileListResponseProfilesItemFingerprintFingerprintPluginsDataPluginsItemMimeTypesList;
323
+ name: string | null;
324
+ [key: string]: unknown;
325
+ }
326
+ export type ProfileListResponseProfilesItemFingerprintFingerprintPluginsDataPluginsList = Array<ProfileListResponseProfilesItemFingerprintFingerprintPluginsDataPluginsItem>;
327
+ export interface ProfileListResponseProfilesItemFingerprintFingerprintPluginsData {
328
+ mimeTypes: ProfileListResponseProfilesItemFingerprintFingerprintPluginsDataMimeTypesList;
329
+ plugins: ProfileListResponseProfilesItemFingerprintFingerprintPluginsDataPluginsList;
330
+ [key: string]: unknown;
331
+ }
332
+ export type ProfileListResponseProfilesItemFingerprintFingerprintScreen = ProfileFingerprintFingerprintScreen;
333
+ export type ProfileListResponseProfilesItemFingerprintFingerprintVideoCard = ProfileFingerprintFingerprintVideoCard;
334
+ export type ProfileListResponseProfilesItemFingerprintFingerprintVideoCodecsMap = {
335
+ [key: string]: string | null | undefined;
336
+ };
337
+ export interface ProfileListResponseProfilesItemFingerprintFingerprint {
338
+ audioCodecs: ProfileListResponseProfilesItemFingerprintFingerprintAudioCodecsMap;
339
+ battery: ProfileFingerprintFingerprintBattery;
340
+ fonts: ProfileListResponseProfilesItemFingerprintFingerprintFontsList;
341
+ mockWebRTC: boolean | null;
342
+ multimediaDevices: ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevices;
343
+ navigator: ProfileListResponseProfilesItemFingerprintFingerprintNavigator;
344
+ pluginsData: ProfileListResponseProfilesItemFingerprintFingerprintPluginsData;
345
+ screen: ProfileFingerprintFingerprintScreen;
346
+ slim: boolean | null;
347
+ videoCard: ProfileFingerprintFingerprintVideoCard;
348
+ videoCodecs: ProfileListResponseProfilesItemFingerprintFingerprintVideoCodecsMap;
349
+ [key: string]: unknown;
350
+ }
351
+ export type ProfileListResponseProfilesItemFingerprintHeaders = ProfileFingerprintHeaders;
352
+ /** The fingerprint associated with the profile */
353
+ export interface ProfileListResponseProfilesItemFingerprint {
354
+ fingerprint: ProfileListResponseProfilesItemFingerprintFingerprint;
355
+ headers: ProfileFingerprintHeaders;
356
+ }
357
+ /** The status of the profile */
358
+ export type ProfileListResponseProfilesItemStatus = "UPLOADING" | "READY" | "FAILED";
359
+ export interface ProfileListResponseProfilesItem {
360
+ /** The date and time when the profile was created */
361
+ createdAt: string;
362
+ /** The credentials configuration associated with the profile */
363
+ credentialsConfig: unknown | null;
364
+ /** The dimensions associated with the profile */
365
+ dimensions: CreateProfileRequestDimensions | null;
366
+ /** The extension IDs associated with the profile */
367
+ extensionIds: ProfileListResponseProfilesItemExtensionIdsList | null;
368
+ /** The fingerprint associated with the profile */
369
+ fingerprint: ProfileListResponseProfilesItemFingerprint | null;
370
+ /** The unique identifier for the profile */
371
+ id: string;
372
+ /** The project ID associated with the profile */
373
+ projectId: string | null;
374
+ /** The last session ID associated with the profile */
375
+ sourceSessionId: string | null;
376
+ /** The status of the profile */
377
+ status: ProfileListResponseProfilesItemStatus;
378
+ /** The date and time when the profile was last updated */
379
+ updatedAt: string;
380
+ /** The proxy configuration associated with the profile */
381
+ useProxyConfig: unknown | null;
382
+ /** The user agent associated with the profile */
383
+ userAgent: string | null;
384
+ }
385
+ /** The list of profiles */
386
+ export type ProfileListResponseProfilesList = Array<ProfileListResponseProfilesItem>;
387
+ export interface ProfileListResponse {
388
+ /** The total number of profiles */
389
+ count: number;
390
+ /** The list of profiles */
391
+ profiles: ProfileListResponseProfilesList;
392
+ }
393
+ /** The dimensions associated with the profile */
394
+ export type UpdateProfileRequestDimensions = CreateProfileRequestDimensions;
395
+ export interface UpdateProfileRequest {
396
+ id: string;
397
+ /** Project to query profiles from */
398
+ projectId?: string | undefined;
399
+ /** The dimensions associated with the profile */
400
+ dimensions?: CreateProfileRequestDimensions | undefined;
401
+ /** The proxy associated with the profile */
402
+ proxyUrl?: string | undefined;
403
+ /** JSON-encoded proxy configuration associated with the profile. For fixed IPs, send {"type":"fixed","id":"fixed:<id>"}. */
404
+ useProxy?: string | undefined;
405
+ /** The user agent associated with the profile */
406
+ userAgent?: string | undefined;
407
+ /** The user data directory associated with the profile */
408
+ userDataDir: Blob | Uint8Array | ArrayBuffer;
409
+ }
410
+ export type CreateProfileError = BadRequest | NotFound | PayloadTooLarge | SteelOpError;
411
+ /** Create a profile Create a new profile */
412
+ export declare const createProfile: API.OperationMethod<CreateProfileRequest, Profile, CreateProfileError, SteelOpContext>;
413
+ export type GetProfileError = BadRequest | NotFound | SteelOpError;
414
+ /** Get a profile Retrieve a profile by ID */
415
+ export declare const getProfile: API.OperationMethod<GetProfileRequest, Profile, GetProfileError, SteelOpContext>;
416
+ export type ListProfilesError = BadRequest | SteelOpError;
417
+ /** List all profiles Retrieve a list of all profiles */
418
+ export declare const listProfiles: API.OperationMethod<ListProfilesRequest, ProfileListResponse, ListProfilesError, SteelOpContext>;
419
+ export type UpdateProfileError = BadRequest | NotFound | PayloadTooLarge | SteelOpError;
420
+ /** Update a profile Update an existing profile */
421
+ export declare const updateProfile: API.OperationMethod<UpdateProfileRequest, Profile, UpdateProfileError, SteelOpContext>;
422
+ //# sourceMappingURL=profiles.d.ts.map