@distilled.cloud/steel 1.0.0-rc.19 → 1.0.0-rc.21

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 (91) hide show
  1. package/README.md +9 -6
  2. package/lib/.lazy.json +1 -1
  3. package/lib/_bundle/sdk.js +1 -1
  4. package/lib/_bundle/sdk.js.map +1 -1
  5. package/lib/credentials.d.ts +8 -3
  6. package/lib/credentials.d.ts.map +1 -1
  7. package/lib/errors.d.ts +12 -8
  8. package/lib/errors.d.ts.map +1 -1
  9. package/lib/errors.js +1 -1
  10. package/lib/index.d.ts +2 -3
  11. package/lib/index.d.ts.map +1 -1
  12. package/lib/index.js +0 -1
  13. package/lib/pagination.d.ts.map +1 -1
  14. package/lib/protocol.d.ts +9 -12
  15. package/lib/protocol.d.ts.map +1 -1
  16. package/lib/retry.d.ts.map +1 -1
  17. package/lib/services/api_keys.d.ts +38 -0
  18. package/lib/services/api_keys.d.ts.map +1 -1
  19. package/lib/services/api_keys.js +1 -1
  20. package/lib/services/api_keys.js.map +1 -1
  21. package/lib/services/auth.d.ts.map +1 -1
  22. package/lib/services/auth.js +1 -1
  23. package/lib/services/auth.js.map +1 -1
  24. package/lib/services/browser_tools.d.ts +35 -0
  25. package/lib/services/browser_tools.d.ts.map +1 -1
  26. package/lib/services/browser_tools.js +1 -1
  27. package/lib/services/browser_tools.js.map +1 -1
  28. package/lib/services/captchas.d.ts +32 -0
  29. package/lib/services/captchas.d.ts.map +1 -1
  30. package/lib/services/captchas.js +1 -1
  31. package/lib/services/captchas.js.map +1 -1
  32. package/lib/services/credentials.d.ts +54 -0
  33. package/lib/services/credentials.d.ts.map +1 -1
  34. package/lib/services/credentials.js +1 -1
  35. package/lib/services/credentials.js.map +1 -1
  36. package/lib/services/extensions.d.ts +47 -1
  37. package/lib/services/extensions.d.ts.map +1 -1
  38. package/lib/services/extensions.js +1 -1
  39. package/lib/services/extensions.js.map +1 -1
  40. package/lib/services/files.d.ts +57 -3
  41. package/lib/services/files.d.ts.map +1 -1
  42. package/lib/services/files.js +1 -1
  43. package/lib/services/files.js.map +1 -1
  44. package/lib/services/index.d.ts +2 -0
  45. package/lib/services/index.d.ts.map +1 -1
  46. package/lib/services/index.js +2 -0
  47. package/lib/services/profiles.d.ts +64 -5
  48. package/lib/services/profiles.d.ts.map +1 -1
  49. package/lib/services/profiles.js +1 -1
  50. package/lib/services/profiles.js.map +1 -1
  51. package/lib/services/projects.d.ts +32 -0
  52. package/lib/services/projects.d.ts.map +1 -1
  53. package/lib/services/projects.js +1 -1
  54. package/lib/services/projects.js.map +1 -1
  55. package/lib/services/secret_connections.d.ts +233 -0
  56. package/lib/services/secret_connections.d.ts.map +1 -0
  57. package/lib/services/secret_connections.js +2 -0
  58. package/lib/services/secret_connections.js.map +1 -0
  59. package/lib/services/sessions.d.ts +526 -233
  60. package/lib/services/sessions.d.ts.map +1 -1
  61. package/lib/services/sessions.js +50 -41
  62. package/lib/services/sessions.js.map +1 -1
  63. package/lib/services/vaults.d.ts +149 -0
  64. package/lib/services/vaults.d.ts.map +1 -0
  65. package/lib/services/vaults.js +2 -0
  66. package/lib/services/vaults.js.map +1 -0
  67. package/lib/services.lazy/index.js +2 -2
  68. package/lib/services.lazy/secret_connections.js +1 -0
  69. package/lib/services.lazy/sessions.js +2 -2
  70. package/lib/services.lazy/vaults.js +1 -0
  71. package/lib/traits.d.ts.map +1 -1
  72. package/package.json +5 -5
  73. package/src/credentials.ts +18 -12
  74. package/src/errors.ts +13 -5
  75. package/src/index.ts +2 -3
  76. package/src/protocol.ts +18 -30
  77. package/src/services/api_keys.ts +87 -7
  78. package/src/services/auth.ts +3 -2
  79. package/src/services/browser_tools.ts +101 -28
  80. package/src/services/captchas.ts +85 -17
  81. package/src/services/credentials.ts +129 -25
  82. package/src/services/extensions.ts +136 -34
  83. package/src/services/files.ts +172 -58
  84. package/src/services/index.ts +2 -0
  85. package/src/services/profiles.ts +198 -60
  86. package/src/services/projects.ts +79 -12
  87. package/src/services/secret_connections.ts +538 -0
  88. package/src/services/sessions.ts +1384 -794
  89. package/src/services/vaults.ts +369 -0
  90. package/lib/index.lazy.js +0 -7
  91. package/lib/index.lazy.js.map +0 -1
@@ -5,12 +5,15 @@ export type { SteelOpError, SteelOpContext };
5
5
  declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
6
6
  readonly code: any;
7
7
  readonly message: any;
8
+ readonly body: any;
9
+ readonly headers: any;
8
10
  }> & (new (...args: any[]) => {
9
11
  "@distilled.cloud/error/categories": {
10
12
  BadRequestError: true;
11
13
  };
12
14
  });
13
15
  export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
16
+ readonly body?: ErrorResponse | string;
14
17
  }
15
18
  export interface GetCaptchaStatusRequest {
16
19
  /** Session ID */
@@ -60,6 +63,35 @@ export interface SolveImageCaptchaRequest {
60
63
  /** URL where the captcha is located. Defaults to the current page URL */
61
64
  url?: string | undefined;
62
65
  }
66
+ export interface ErrorResponseContextItem {
67
+ keyword: string;
68
+ message: string;
69
+ params: unknown;
70
+ }
71
+ export type ErrorResponseContextList = Array<ErrorResponseContextItem>;
72
+ /** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
73
+ export type ErrorResponseDetailsMap = {
74
+ [key: string]: unknown | undefined;
75
+ };
76
+ /** An error response from the API */
77
+ export interface ErrorResponse {
78
+ /** Stable machine-readable reason, e.g. 'budget_exceeded' or 'profile_not_ready'. Branch on this instead of parsing the message. */
79
+ code?: string | undefined;
80
+ context?: ErrorResponseContextList | undefined;
81
+ /** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
82
+ details?: ErrorResponseDetailsMap | undefined;
83
+ error?: string | undefined;
84
+ linkToDocs?: string | undefined;
85
+ message: string;
86
+ /** The request field that caused the error, if any. */
87
+ param?: string | undefined;
88
+ /** Seconds to wait before retrying. Also sent as the Retry-After header. */
89
+ retryAfterSeconds?: number | undefined;
90
+ /** Whether the same request can succeed later without changes. False means fix the request or the account first. */
91
+ retryable?: boolean | undefined;
92
+ /** Where a person turns on the refused feature, e.g. verifying the account. Pass it to your user. */
93
+ unlockUrl?: string | undefined;
94
+ }
63
95
  export type GetCaptchaStatusError = BadRequest | SteelOpError;
64
96
  /** Get captcha status Gets the current captcha status for a session */
65
97
  export declare const getCaptchaStatus: API.OperationMethod<GetCaptchaStatusRequest, GetCaptchaStatusResponse, GetCaptchaStatusError, SteelOpContext>;
@@ -1 +1 @@
1
- {"version":3,"file":"captchas.d.ts","sourceRoot":"","sources":["../../src/services/captchas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAGjD,OAAO,KAAK,CAAC,MAAM,mCAAmC,CAAC;AAGvD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMvF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;;;;;;;;;AAe7C,qBAAa,UACX,SAAQ,aAAa,CAAC,eAMrB;CAAG;AAEN,MAAM,WAAW,uBAAuB;IACtC,iBAAiB;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,6BAA6B;AAC7B,MAAM,MAAM,iCAAiC,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AAC/D,MAAM,WAAW,wBAAwB;IACvC,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,kDAAkD;IAClD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,KAAK,EAAE,iCAAiC,CAAC;IACzC,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAC;CACb;AACD,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,wBAAwB,CAAC,CAAC;AACnE,MAAM,MAAM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S,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC,qGAAqG;IACrG,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AACD,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,YAAY,CAAC;AAC9D,uEAAuE;AACvE,eAAO,MAAM,gBAAgB,EAAE,GAAG,CAAC,eAAe,CAChD,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,YAAY,CAAC;AAC1D,2PAA2P;AAC3P,eAAO,MAAM,YAAY,EAAE,GAAG,CAAC,eAAe,CAC5C,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,YAAY,CAAC;AAC/D,wEAAwE;AACxE,eAAO,MAAM,iBAAiB,EAAE,GAAG,CAAC,eAAe,CACjD,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,CAUb,CAAC"}
@@ -1,2 +1,2 @@
1
- import{Bc as e,Dc as t,Ic as n,Jc as r,a as i,c as a,e as o,errors$UnknownSteelError as s,jc as c,k as l,kc as u,l as d,m as f,protocol$SteelProtocol as p,retry$Retry as m,sc as h,traits$Http as g,traits$Label as _,traits$RawResponseRoot as v,traits$applyErrorMatchers as y,vc as b,wc as x,ya as S,yc as C}from"../_bundle/sdk.js";const w={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:`Captchas`,labels:`steel`,propagate:`w3c`};const T=/*@__PURE__*/ o(function BadRequest(e){return d(e,new.target,[`$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])`,[t,S,h,b,C,y]])});const E=/*@__PURE__*/ f(o=>o===i?l(`GetCaptchaStatus`,`{input:#1,output:#5,errors:[$12,$13],protocol:$14,retry:$15,telemetry:$16,span:"%"};$5(>6)@"%Request";$7($6);$5(>7)@"CaptchaStateResponseItem";$7(#3);$5(>8)@"%Response";$4({sessionId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/sessions/{sessionId}/captchas/status",code:200}));$4({created:$9($8),isSolvingCaptcha:$10,lastUpdated:$9($8),pageId:$3,tasks:#2,url:$3});#4.pipe($11())`,[t,g,_,b,x,r,e,c,h,n,u,v,T,s,p,m,w]):a(E,o));const D=/*@__PURE__*/ f(e=>e===i?l(`SolveCaptcha`,`{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11,telemetry:$12,span:"%"};$6(>2)@"%Request";$5({sessionId:$3.pipe($2()),pageId:$4($3),taskId:$4($3),url:$4($3)}).pipe($1({method:"POST",uri:"/v1/sessions/{sessionId}/captchas/solve",code:200}))`,[t,g,_,b,n,x,r,__d0,T,s,p,m,w]):a(D,e));const O=/*@__PURE__*/ f(e=>e===i?l(`SolveImageCaptcha`,`{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11,telemetry:$12,span:"%"};$6(>2)@"%Request";$5({sessionId:$3.pipe($2()),imageXPath:$3,inputXPath:$3,url:$4($3)}).pipe($1({method:"POST",uri:"/v1/sessions/{sessionId}/captchas/solve-image",code:200}))`,[t,g,_,b,n,x,r,__d0,T,s,p,m,w]):a(O,e));function __d0(){return[`$5(>1)@"CaptchaActionResponse";$4({message:$2($1),success:$3})`,[t,b,n,u,x,r]]}export{T as BadRequest,E as getCaptchaStatus,D as solveCaptcha,O as solveImageCaptcha};
1
+ import{Gc as e,Hc as t,Jc as n,Kc as r,Mc as i,Oc as a,Pc as o,Rc as s,Wc as c,Xc as l,a as u,b as d,errors$SteelServiceErrors as f,f as p,l as m,m as h,n as g,protocol$SteelProtocol as _,retry$Retry as v,traits$Http as y,traits$Label as b,traits$RawResponseRoot as x,traits$applyErrorMatchers as S,wc as C,xc as w,za as T}from"../_bundle/sdk.js";const E={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:`Captchas`,labels:`steel`,propagate:`w3c`};const D=/*@__PURE__*/ p(function BadRequest(u){return h(u,new.target,[`$13($12()("BadRequest",{code:$8,message:$1,body:$7($11([$4(>7),$1])),headers:$7($6($1,$1))}).pipe($10),[{status:400}]);$4(>5)@"ErrorResponseContextItem";$5(#1);$6($1,$2);$4(>6)@"ErrorResponse";$3({keyword:$1,message:$1,params:$2});$3({code:$7($1),context:$7(#2),details:$7(#3),error:$7($1),linkToDocs:$7($1),message:$1,param:$7($1),retryAfterSeconds:$7($8),retryable:$7($9),unlockUrl:$7($1)});#4`,[s,n,o,r,l,C,t,c,e,w,T,a,i,S]])});const O=/*@__PURE__*/ g(t=>t===u?m(`GetCaptchaStatus`,`{input:#1,output:#5,errors:[$12],serviceErrors:$13,protocol:$14,retry:$15,telemetry:$16,span:"%"};$5(>6)@"%Request";$7($6);$5(>7)@"CaptchaStateResponseItem";$7(#3);$5(>8)@"%Response";$4({sessionId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/sessions/{sessionId}/captchas/status",code:200}));$4({created:$9($8),isSolvingCaptcha:$10,lastUpdated:$9($8),pageId:$3,tasks:#2,url:$3});#4.pipe($11())`,[s,y,b,n,r,l,o,C,e,c,w,x,D,f,_,v,E]):d(O,t));const k=/*@__PURE__*/ g(e=>e===u?m(`SolveCaptcha`,`{input:#1,output:#7:0,errors:[$8],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$6(>2)@"%Request";$5({sessionId:$3.pipe($2()),pageId:$4($3),taskId:$4($3),url:$4($3)}).pipe($1({method:"POST",uri:"/v1/sessions/{sessionId}/captchas/solve",code:200}))`,[s,y,b,n,c,r,l,__d0,D,f,_,v,E]):d(k,e));const A=/*@__PURE__*/ g(e=>e===u?m(`SolveImageCaptcha`,`{input:#1,output:#7:0,errors:[$8],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$6(>2)@"%Request";$5({sessionId:$3.pipe($2()),imageXPath:$3,inputXPath:$3,url:$4($3)}).pipe($1({method:"POST",uri:"/v1/sessions/{sessionId}/captchas/solve-image",code:200}))`,[s,y,b,n,c,r,l,__d0,D,f,_,v,E]):d(A,e));function __d0(){return[`$5(>1)@"CaptchaActionResponse";$4({message:$2($1),success:$3})`,[s,n,c,w,r,l]]}export{D as BadRequest,O as getCaptchaStatus,k as solveCaptcha,A as solveImageCaptcha};
2
2
  //# sourceMappingURL=captchas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"captchas.js","names":["API.newError","__L.at","C.withBadRequestError","S.Number","S.String","S.TaggedError","T.applyErrorMatchers","API.D","API.named","T.Http","T.Label","S.Struct","S.suspend","S.Unknown","S.Array","S.optional","S.Boolean","T.RawResponseRoot","Retry.Retry","API.call","Unknown","at","optional","suspend","D","call","error","UnknownSteelError","Array","named","Boolean","newError","op","SteelProtocol","Retry","Number","Http","Label","RawResponseRoot","applyErrorMatchers","String","Struct","withBadRequestError","TaggedError","TELEMETRY","BadRequest","i","getCaptchaStatus","solveCaptcha","solveImageCaptcha"],"sources":["../../src/services/captchas.ts"],"mappings":"0UAaA,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,WACT,OAAQ,QACR,UAAW,KACb,EAEA,MAAaC,EAAgC,gBAAU,SAAS,WAAW,EAAa,CACtF,OAAO7C,EAAa8C,EAAG,WAAY,CAAC,sEAAuE,CAAC7C,EAAQC,EAAuBC,EAAUC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CACtM,CAAC,EAoDD,MAAayC,EAKK,gBAAQ,GAAgBD,IAAMvC,EAAQC,EAAU,mBAAoB,gYAAiY,CAACP,EAAQQ,EAAQC,EAASN,EAAUO,EAAUC,EAAWC,EAAWC,EAASX,EAAUY,EAAYC,EAAWC,EAAmB4B,EAAYlB,EAAmBM,EAAef,EAAa0B,CAAS,CAAC,EAAIzB,EAAS4B,EAAkBD,CAAC,CAAC,EAI9rB,MAAaE,EAKK,gBAAQ,GAAgBF,IAAMvC,EAAQC,EAAU,eAAgB,8PAA+P,CAACP,EAAQQ,EAAQC,EAASN,EAAUW,EAAYJ,EAAUC,EAAW,KAAMiC,EAAYlB,EAAmBM,EAAef,EAAa0B,CAAS,CAAC,EAAIzB,EAAS6B,EAAcF,CAAC,CAAC,EAI9f,MAAaG,EAKK,gBAAQ,GAAgBH,IAAMvC,EAAQC,EAAU,oBAAqB,oQAAqQ,CAACP,EAAQQ,EAAQC,EAASN,EAAUW,EAAYJ,EAAUC,EAAW,KAAMiC,EAAYlB,EAAmBM,EAAef,EAAa0B,CAAS,CAAC,EAAIzB,EAAS8B,EAAmBH,CAAC,CAAC,EAM9gB,SAAS,MAAY,CACnB,MAAO,CAAC,iEAAkE,CAAC7C,EAAQG,EAAUW,EAAYC,EAAWL,EAAUC,CAAS,CAAC,CAC1I"}
1
+ {"version":3,"file":"captchas.js","names":["API.newError","__L.at","S.String","S.Unknown","S.Struct","S.suspend","S.Array","S.Record","S.optional","S.Number","S.Boolean","C.withBadRequestError","S.Union","S.TaggedError","T.applyErrorMatchers","API.D","API.named","T.Http","T.Label","T.RawResponseRoot","Retry.Retry","API.call","Number","Record","String","Struct","TaggedError","Union","Unknown","at","optional","suspend","D","call","SteelServiceErrors","error","named","newError","op","SteelProtocol","Retry","Http","Label","RawResponseRoot","applyErrorMatchers","Array","Boolean","withBadRequestError","TELEMETRY","BadRequest","i","getCaptchaStatus","solveCaptcha","solveImageCaptcha"],"sources":["../../src/services/captchas.ts"],"mappings":"2VAaA,MAAMgD,EAAY,CAChB,OAAQ,YACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oC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edErrorClass<"BadRequest", {
7
7
  readonly code: any;
8
8
  readonly message: any;
9
+ readonly body: any;
10
+ readonly headers: any;
9
11
  }> & (new (...args: any[]) => {
10
12
  "@distilled.cloud/error/categories": {
11
13
  BadRequestError: true;
12
14
  };
13
15
  });
14
16
  export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
17
+ readonly body?: ErrorResponse | string;
15
18
  }
16
19
  declare const Conflict_base: S.TaggedErrorClass<"Conflict", {
17
20
  readonly code: any;
18
21
  readonly message: any;
22
+ readonly body: any;
23
+ readonly headers: any;
19
24
  }> & (new (...args: any[]) => {
20
25
  "@distilled.cloud/error/categories": {
21
26
  ConflictError: true;
22
27
  };
23
28
  });
24
29
  export declare class Conflict extends /*@__PURE__*/ Conflict_base {
30
+ readonly body?: ErrorResponse | string;
25
31
  }
26
32
  declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
27
33
  readonly code: any;
28
34
  readonly message: any;
35
+ readonly body: any;
36
+ readonly headers: any;
29
37
  }> & (new (...args: any[]) => {
30
38
  "@distilled.cloud/error/categories": {
31
39
  BadRequestError: true;
32
40
  };
33
41
  });
34
42
  export declare class NotFound extends /*@__PURE__*/ NotFound_base {
43
+ readonly body?: ErrorResponse | string;
35
44
  }
45
+ /** Canonical http(s) origins, besides `origin`, this credential may be filled on, such as its login host or identity provider (e.g. `https://login.example.com`). Only the credential's origin and these ever match a page, exactly; at most 20. */
46
+ export type CreateCredentialRequestAdditionalOriginsList = Array<string>;
36
47
  /** Value for the credential */
37
48
  export type CreateCredentialRequestValueMap = {
38
49
  [key: string]: string | Redacted.Redacted<string> | undefined;
39
50
  };
40
51
  export interface CreateCredentialRequest {
52
+ /** Canonical http(s) origins, besides `origin`, this credential may be filled on, such as its login host or identity provider (e.g. `https://login.example.com`). Only the credential's origin and these ever match a page, exactly; at most 20. */
53
+ additionalOrigins?: CreateCredentialRequestAdditionalOriginsList | undefined;
41
54
  /** Label for the credential */
42
55
  label?: string | undefined;
43
56
  /** The namespace the credential is stored against. Defaults to "default". */
@@ -49,7 +62,11 @@ export interface CreateCredentialRequest {
49
62
  /** Value for the credential */
50
63
  value: CreateCredentialRequestValueMap;
51
64
  }
65
+ /** Canonical http(s) origins, besides `origin`, this credential may be filled on, such as its login host or identity provider (e.g. `https://login.example.com`). Only the credential's origin and these ever match a page, exactly; at most 20. */
66
+ export type CredentialMetadataAdditionalOriginsList = Array<string>;
52
67
  export interface CredentialMetadata {
68
+ /** Canonical http(s) origins, besides `origin`, this credential may be filled on, such as its login host or identity provider (e.g. `https://login.example.com`). Only the credential's origin and these ever match a page, exactly; at most 20. */
69
+ additionalOrigins?: CredentialMetadataAdditionalOriginsList | undefined;
53
70
  /** Date and time the credential was created */
54
71
  createdAt: string;
55
72
  /** Label for the credential */
@@ -80,7 +97,11 @@ export interface ListCredentialsRequest {
80
97
  /** website origin the credential is for */
81
98
  origin?: string | undefined;
82
99
  }
100
+ /** Canonical http(s) origins, besides `origin`, this credential may be filled on, such as its login host or identity provider (e.g. `https://login.example.com`). Only the credential's origin and these ever match a page, exactly; at most 20. */
101
+ export type CredentialListCredentialsItemAdditionalOriginsList = Array<string>;
83
102
  export interface CredentialListCredentialsItem {
103
+ /** Canonical http(s) origins, besides `origin`, this credential may be filled on, such as its login host or identity provider (e.g. `https://login.example.com`). Only the credential's origin and these ever match a page, exactly; at most 20. */
104
+ additionalOrigins?: CredentialListCredentialsItemAdditionalOriginsList | undefined;
84
105
  /** Date and time the credential was created */
85
106
  createdAt: string;
86
107
  /** Label for the credential */
@@ -96,11 +117,15 @@ export type CredentialListCredentialsList = Array<CredentialListCredentialsItem>
96
117
  export interface CredentialList {
97
118
  credentials: CredentialListCredentialsList;
98
119
  }
120
+ /** Canonical http(s) origins, besides `origin`, this credential may be filled on, such as its login host or identity provider (e.g. `https://login.example.com`). Only the credential's origin and these ever match a page, exactly; at most 20. Replaces the current list; [] clears it. */
121
+ export type UpdateCredentialRequestAdditionalOriginsList = Array<string>;
99
122
  /** Value for the credential */
100
123
  export type UpdateCredentialRequestValueMap = {
101
124
  [key: string]: string | Redacted.Redacted<string> | undefined;
102
125
  };
103
126
  export interface UpdateCredentialRequest {
127
+ /** Canonical http(s) origins, besides `origin`, this credential may be filled on, such as its login host or identity provider (e.g. `https://login.example.com`). Only the credential's origin and these ever match a page, exactly; at most 20. Replaces the current list; [] clears it. */
128
+ additionalOrigins?: UpdateCredentialRequestAdditionalOriginsList | undefined;
104
129
  /** Label for the credential */
105
130
  label?: string | undefined;
106
131
  /** The namespace the credential is stored against. Defaults to "default". */
@@ -112,6 +137,35 @@ export interface UpdateCredentialRequest {
112
137
  /** Value for the credential */
113
138
  value?: UpdateCredentialRequestValueMap | undefined;
114
139
  }
140
+ export interface ErrorResponseContextItem {
141
+ keyword: string;
142
+ message: string;
143
+ params: unknown;
144
+ }
145
+ export type ErrorResponseContextList = Array<ErrorResponseContextItem>;
146
+ /** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
147
+ export type ErrorResponseDetailsMap = {
148
+ [key: string]: unknown | undefined;
149
+ };
150
+ /** An error response from the API */
151
+ export interface ErrorResponse {
152
+ /** Stable machine-readable reason, e.g. 'budget_exceeded' or 'profile_not_ready'. Branch on this instead of parsing the message. */
153
+ code?: string | undefined;
154
+ context?: ErrorResponseContextList | undefined;
155
+ /** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
156
+ details?: ErrorResponseDetailsMap | undefined;
157
+ error?: string | undefined;
158
+ linkToDocs?: string | undefined;
159
+ message: string;
160
+ /** The request field that caused the error, if any. */
161
+ param?: string | undefined;
162
+ /** Seconds to wait before retrying. Also sent as the Retry-After header. */
163
+ retryAfterSeconds?: number | undefined;
164
+ /** Whether the same request can succeed later without changes. False means fix the request or the account first. */
165
+ retryable?: boolean | undefined;
166
+ /** Where a person turns on the refused feature, e.g. verifying the account. Pass it to your user. */
167
+ unlockUrl?: string | undefined;
168
+ }
115
169
  export type CreateCredentialError = BadRequest | Conflict | SteelOpError;
116
170
  /** Stores credentials Encrypts and stores credentials for an origin */
117
171
  export declare const createCredential: API.OperationMethod<CreateCredentialRequest, CredentialMetadata, CreateCredentialError, SteelOpContext>;
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../src/services/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAGjD,OAAO,KAAK,CAAC,MAAM,mCAAmC,CAAC;AAEvD,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMvF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;;;;;;;;;AAc7C,qBAAa,UACX,SAAQ,aAAa,CAAC,eAMrB;CAAG;;;;;;;;;AAEN,qBAAa,QACX,SAAQ,aAAa,CAAC,aAMrB;CAAG;;;;;;;;;AAEN,qBAAa,QACX,SAAQ,aAAa,CAAC,aAMrB;CAAG;AAEN,+BAA+B;AAC/B,MAAM,MAAM,+BAA+B,GAAG;IAC5C,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CAC/D,CAAC;AACF,MAAM,WAAW,uBAAuB;IACtC,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,2CAA2C;IAC3C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,+BAA+B;IAC/B,KAAK,EAAE,+BAA+B,CAAC;CACxC;AACD,MAAM,WAAW,kBAAkB;IACjC,+CAA+C;IAC/C,SAAS,EAAE,MAAM,CAAC;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,QAAQ,GAAG,YAAY,CAAC;AACxE,iGAAiG;AACjG,eAAO,MAAM,eAAe,EAAE,GAAG,CAAC,eAAe,CAC/C,sBAAsB,EACtB,cAAc,EACd,oBAAoB,EACpB,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,QAAQ,GAAG,YAAY,CAAC;AACzE,yEAAyE;AACzE,eAAO,MAAM,gBAAgB,EAAE,GAAG,CAAC,eAAe,CAChD,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,EACrB,cAAc,CAUb,CAAC"}
@@ -1,2 +1,2 @@
1
- import{Ba as e,Dc as t,Ic as n,Jc as r,a as i,c as a,e as o,errors$UnknownSteelError as s,jc as c,k as l,kc as u,l as d,m as f,protocol$SteelProtocol as p,retry$Retry as m,sc as h,tc as g,traits$Http as _,traits$Query as v,traits$SensitiveValue as y,traits$applyErrorMatchers as b,vc as x,wc 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:`Credentials`,propagate:`w3c`};const E=/*@__PURE__*/ o(function BadRequest(e){return d(e,new.target,[`$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])`,[t,C,h,x,w,b]])});const D=/*@__PURE__*/ o(function Conflict(n){return d(n,new.target,[`$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])`,[t,e,h,x,w,b]])});const O=/*@__PURE__*/ o(function NotFound(e){return d(e,new.target,[`$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])`,[t,C,h,x,w,b]])});const k=/*@__PURE__*/ f(e=>e===i?l(`CreateCredential`,`{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12,telemetry:$13,span:"%"};$6(>2)@"%Request";$5({label:$3($2),namespace:$3($2),origin:$3($2),projectId:$3($2),value:#4:0}).pipe($1({method:"POST",uri:"/v1/credentials",code:200}))`,[t,_,x,n,__d1,S,r,__d0,E,D,s,p,m,T]):a(k,e));const A=/*@__PURE__*/ f(e=>e===i?l(`DeleteCredential`,`{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>3)@"%Request";$5(>4)@"SuccessResponse";$4({namespace:$3($2),origin:$2,projectId:$3($2)}).pipe($1({method:"DELETE",uri:"/v1/credentials",code:200}));$4({success:$6})`,[t,_,x,n,S,r,u,O,s,p,m,T]):a(A,e));const j=/*@__PURE__*/ f(e=>e===i?l(`ListCredentials`,`{input:#1,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13,telemetry:$14,span:"%"};$6(>4)@"%Request";$8(#7:0);$6(>5)@"CredentialList";$5({projectId:$4($3.pipe($2())),namespace:$4($3.pipe($2())),origin:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/v1/credentials",code:200}));$5({credentials:#2})`,[t,_,v,x,n,S,r,__d0,c,E,O,s,p,m,T]):a(j,e));const M=/*@__PURE__*/ f(e=>e===i?l(`UpdateCredential`,`{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12,telemetry:$13,span:"%"};$6(>2)@"%Request";$5({label:$3($2),namespace:$3($2),origin:$3($2),projectId:$3($2),value:$3(#4:0)}).pipe($1({method:"PUT",uri:"/v1/credentials",code:200}))`,[t,_,x,n,__d1,S,r,__d0,E,O,s,p,m,T]):a(M,e));function __d0(){return[`$4(>1)@"CredentialMetadata";$3({createdAt:$1,label:$2($1),namespace:$2($1),origin:$2($1),updatedAt:$1})`,[t,x,n,S,r]]}function __d1(){return[`$3($1,$1.pipe($2({})))`,[t,x,y,g]]}export{E as BadRequest,D as Conflict,O as NotFound,k as createCredential,A as deleteCredential,j as listCredentials,M as updateCredential};
1
+ import{Ca as e,Gc as t,Hc as n,Jc as r,Kc as i,Mc as a,Oc as o,Pc as s,Rc as c,Wc as l,Xc as u,a as d,b as f,errors$SteelServiceErrors as p,f as m,l as h,m as g,n as _,protocol$SteelProtocol as v,retry$Retry as y,traits$Http as b,traits$Query as x,traits$SensitiveValue as S,traits$applyErrorMatchers as C,wc as w,xc as T,za as E}from"../_bundle/sdk.js";const D={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:`Credentials`,propagate:`w3c`};const O=/*@__PURE__*/ m(function BadRequest(e){return g(e,new.target,[`$10($9()("BadRequest",{code:$2,message:$3,body:$7($6([$5(>1),$3])),headers:$7($8($3,$3))}).pipe($1),[{status:400}]);#4:3`,[c,E,t,r,__d0,u,o,l,n,a,C]])});const k=/*@__PURE__*/ m(function Conflict(i){return g(i,new.target,[`$10($9()("Conflict",{code:$2,message:$3,body:$7($6([$5(>1),$3])),headers:$7($8($3,$3))}).pipe($1),[{status:409}]);#4:3`,[c,e,t,r,__d0,u,o,l,n,a,C]])});const A=/*@__PURE__*/ m(function NotFound(e){return g(e,new.target,[`$10($9()("NotFound",{code:$2,message:$3,body:$7($6([$5(>1),$3])),headers:$7($8($3,$3))}).pipe($1),[{status:404}]);#4:3`,[c,E,t,r,__d0,u,o,l,n,a,C]])});const j=/*@__PURE__*/ _(e=>e===d?h(`CreateCredential`,`{input:#1,output:#2:1,errors:[$8,$9],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$7(>2)@"%Request";$6({additionalOrigins:$3(#2:0),label:$3($4),namespace:$3($4),origin:$3($4),projectId:$3($4),value:#5:0}).pipe($1({method:"POST",uri:"/v1/credentials",code:200}))`,[c,b,__d1,l,r,__d2,i,u,O,k,p,v,y,D]):f(j,e));const M=/*@__PURE__*/ _(e=>e===d?h(`DeleteCredential`,`{input:#1,output:#2,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>3)@"%Request";$5(>4)@"SuccessResponse";$4({namespace:$3($2),origin:$2,projectId:$3($2)}).pipe($1({method:"DELETE",uri:"/v1/credentials",code:200}));$4({success:$6})`,[c,b,r,l,i,u,T,A,p,v,y,D]):f(M,e));const N=/*@__PURE__*/ _(e=>e===d?h(`ListCredentials`,`{input:#1,output:#3,errors:[$9,$10],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%"};$6(>4)@"%Request";$8(#7:1);$6(>5)@"CredentialList";$5({projectId:$4($3.pipe($2())),namespace:$4($3.pipe($2())),origin:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/v1/credentials",code:200}));$5({credentials:#2})`,[c,b,x,r,l,i,u,__d1,w,O,A,p,v,y,D]):f(N,e));const P=/*@__PURE__*/ _(e=>e===d?h(`UpdateCredential`,`{input:#1,output:#2:1,errors:[$8,$9],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$7(>2)@"%Request";$6({additionalOrigins:$3(#2:0),label:$3($4),namespace:$3($4),origin:$3($4),projectId:$3($4),value:$3(#5:0)}).pipe($1({method:"PUT",uri:"/v1/credentials",code:200}))`,[c,b,__d1,l,r,__d2,i,u,O,A,p,v,y,D]):f(P,e));function __d0(){return[`$4(>4)@"ErrorResponseContextItem";$5(#0);$6($1,$2);$4(>5)@"ErrorResponse";$3({keyword:$1,message:$1,params:$2});$3({code:$7($1),context:$7(#1),details:$7(#2),error:$7($1),linkToDocs:$7($1),message:$1,param:$7($1),retryAfterSeconds:$7($8),retryable:$7($9),unlockUrl:$7($1)})`,[c,r,s,i,u,w,n,l,t,T]]}function __d1(){return[`$2($1);$5(>2)@"CredentialMetadata";$4({additionalOrigins:$3(#0),createdAt:$1,label:$3($1),namespace:$3($1),origin:$3($1),updatedAt:$1})`,[c,r,w,l,i,u]]}function __d2(){return[`$3($1,$1.pipe($2({})))`,[c,r,S,n]]}export{O as BadRequest,k as Conflict,A as NotFound,j as createCredential,M as deleteCredential,N as listCredentials,P as updateCredential};
2
2
  //# sourceMappingURL=credentials.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.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.optional","S.Struct","S.suspend","Retry.Retry","API.call","S.Boolean","T.Query","S.Array","T.SensitiveValue","S.Record","withConflictError","at","optional","suspend","D","call","error","UnknownSteelError","Array","named","Boolean","newError","op","SteelProtocol","Retry","Number","Record","Http","Query","SensitiveValue","applyErrorMatchers","String","Struct","withBadRequestError","TaggedError","TELEMETRY","BadRequest","i","Conflict","NotFound","createCredential","deleteCredential","listCredentials","updateCredential"],"sources":["../../src/services/credentials.ts"],"mappings":"iVAcA,MAAM8C,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,cACT,UAAW,KACb,EAEA,MAAaC,EAAgC,gBAAU,SAAS,WAAW,EAAa,CACtF,OAAO/C,EAAagD,EAAG,WAAY,CAAC,sEAAuE,CAAC/C,EAAQC,EAAuBC,EAAUC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CACtM,CAAC,EAED,MAAa2C,EAA8B,gBAAU,SAAS,SAAS,EAAa,CAClF,OAAOjD,EAAagD,EAAG,WAAY,CAAC,oEAAqE,CAAC/C,EAAQM,EAAqBJ,EAAUC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CAClM,CAAC,EAED,MAAa4C,EAA8B,gBAAU,SAAS,SAAS,EAAa,CAClF,OAAOlD,EAAagD,EAAG,WAAY,CAAC,oEAAqE,CAAC/C,EAAQC,EAAuBC,EAAUC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CACpM,CAAC,EAmFD,MAAa6C,EAKK,gBAAQ,GAAgBH,IAAMxC,EAAQC,EAAU,mBAAoB,mPAAoP,CAACR,EAAQS,EAAQN,EAAUO,EAAY,KAAMC,EAAUC,EAAW,KAAMkC,EAAYE,EAAUrB,EAAmBM,EAAepB,EAAagC,CAAS,CAAC,EAAI/B,EAASoC,EAAkBH,CAAC,CAAC,EAIlgB,MAAaI,EAKK,gBAAQ,GAAgBJ,IAAMxC,EAAQC,EAAU,mBAAoB,4PAA6P,CAACR,EAAQS,EAAQN,EAAUO,EAAYC,EAAUC,EAAWG,EAAWkC,EAAUtB,EAAmBM,EAAepB,EAAagC,CAAS,CAAC,EAAI/B,EAASqC,EAAkBJ,CAAC,CAAC,EAI9f,MAAaK,EAKK,gBAAQ,GAAgBL,IAAMxC,EAAQC,EAAU,kBAAmB,gTAAiT,CAACR,EAAQS,EAAQO,EAASb,EAAUO,EAAYC,EAAUC,EAAW,KAAMK,EAAS6B,EAAYG,EAAUtB,EAAmBM,EAAepB,EAAagC,CAAS,CAAC,EAAI/B,EAASsC,EAAiBL,CAAC,CAAC,EAIzkB,MAAaM,EAKK,gBAAQ,GAAgBN,IAAMxC,EAAQC,EAAU,mBAAoB,sPAAuP,CAACR,EAAQS,EAAQN,EAAUO,EAAY,KAAMC,EAAUC,EAAW,KAAMkC,EAAYG,EAAUtB,EAAmBM,EAAepB,EAAagC,CAAS,CAAC,EAAI/B,EAASuC,EAAkBN,CAAC,CAAC,EAMrgB,SAAS,MAAY,CACnB,MAAO,CAAC,0GAA2G,CAAC/C,EAAQG,EAAUO,EAAYC,EAAUC,CAAS,CAAC,CACxK,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,yBAA0B,CAACZ,EAAQG,EAAUe,EAAkBC,CAAQ,CAAC,CAClF"}
1
+ {"version":3,"file":"credentials.js","names":["API.newError","__L.at","C.withBadRequestError","S.Number","S.String","S.suspend","S.Union","S.optional","S.Record","S.TaggedError","T.applyErrorMatchers","C.withConflictError","API.D","API.named","T.Http","S.Struct","Retry.Retry","API.call","S.Boolean","T.Query","S.Array","S.Unknown","T.SensitiveValue","withConflictError","Number","Record","String","Struct","TaggedError","Union","Unknown","at","optional","suspend","D","call","SteelServiceErrors","error","named","newError","op","SteelProtocol","Retry","Http","Query","SensitiveValue","applyErrorMatchers","Array","Boolean","withBadRequestError","TELEMETRY","BadRequest","i","Conflict","NotFound","createCredential","deleteCredential","listCredentials","updateCredential"],"sources":["../../src/services/credentials.ts"],"mappings":"kWAcA,MAAMkD,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,cACT,UAAW,KACb,EAEA,MAAaC,EAAgC,gBAAU,SAAS,WAAW,EAAa,CACtF,OAAOnD,EAAaoD,EAAG,WAAY,CAAC,2HAA4H,CAACnD,EAAQC,EAAuBC,EAAUC,EAAU,KAAMC,EAAWC,EAASC,EAAYC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CAC3S,CAAC,EAED,MAAa2C,EAA8B,gBAAU,SAAS,SAAS,EAAa,CAClF,OAAOrD,EAAa,EAAG,WAAY,CAAC,yHAA0H,CAACC,EAAQU,EAAqBR,EAAUC,EAAU,KAAMC,EAAWC,EAASC,EAAYC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CACvS,CAAC,EAED,MAAa4C,EAA8B,gBAAU,SAAS,SAAS,EAAa,CAClF,OAAOtD,EAAaoD,EAAG,WAAY,CAAC,yHAA0H,CAACnD,EAAQC,EAAuBC,EAAUC,EAAU,KAAMC,EAAWC,EAASC,EAAYC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CACzS,CAAC,EA8HD,MAAa6C,EAKK,gBAAQ,GAAgBH,IAAMxC,EAAQC,EAAU,mBAAoB,4RAA6R,CAACZ,EAAQa,EAAQ,KAAMP,EAAYH,EAAU,KAAMW,EAAUV,EAAW8C,EAAYE,EAAUjB,EAAoBK,EAAezB,EAAakC,CAAS,CAAC,EAAIjC,EAASsC,EAAkBH,CAAC,CAAC,EAI5iB,MAAaI,EAKK,gBAAQ,GAAgBJ,IAAMxC,EAAQC,EAAU,mBAAoB,0QAA2Q,CAACZ,EAAQa,EAAQV,EAAUG,EAAYQ,EAAUV,EAAWa,EAAWoC,EAAUlB,EAAoBK,EAAezB,EAAakC,CAAS,CAAC,EAAIjC,EAASuC,EAAkBJ,CAAC,CAAC,EAI7gB,MAAaK,EAKK,gBAAQ,GAAgBL,IAAMxC,EAAQC,EAAU,kBAAmB,8TAA+T,CAACZ,EAAQa,EAAQK,EAASf,EAAUG,EAAYQ,EAAUV,EAAW,KAAMe,EAAS+B,EAAYG,EAAUlB,EAAoBK,EAAezB,EAAakC,CAAS,CAAC,EAAIjC,EAASwC,EAAiBL,CAAC,CAAC,EAIxlB,MAAaM,EAKK,gBAAQ,GAAgBN,IAAMxC,EAAQC,EAAU,mBAAoB,+RAAgS,CAACZ,EAAQa,EAAQ,KAAMP,EAAYH,EAAU,KAAMW,EAAUV,EAAW8C,EAAYG,EAAUlB,EAAoBK,EAAezB,EAAakC,CAAS,CAAC,EAAIjC,EAASyC,EAAkBN,CAAC,CAAC,EAM/iB,SAAS,MAAY,CACnB,MAAO,CAAC,oRAAqR,CAACnD,EAAQG,EAAUiB,EAAWN,EAAUV,EAAWe,EAASZ,EAAUD,EAAYJ,EAAUe,CAAS,CAAC,CACrY,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,0IAA2I,CAACjB,EAAQG,EAAUgB,EAASb,EAAYQ,EAAUV,CAAS,CAAC,CACjN,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,yBAA0B,CAACJ,EAAQG,EAAUkB,EAAkBd,CAAQ,CAAC,CAClF"}
@@ -1,46 +1,59 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
+ import { BinaryStream } from "@distilled.cloud/core/protocol-rest";
2
3
  import * as S from "@distilled.cloud/core/schema-lite";
3
4
  import { type SteelOpError, type SteelOpContext } from "../protocol.ts";
4
5
  export type { SteelOpError, SteelOpContext };
5
6
  declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
6
7
  readonly code: any;
7
8
  readonly message: any;
9
+ readonly body: any;
10
+ readonly headers: any;
8
11
  }> & (new (...args: any[]) => {
9
12
  "@distilled.cloud/error/categories": {
10
13
  BadRequestError: true;
11
14
  };
12
15
  });
13
16
  export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
17
+ readonly body?: ErrorResponse | string;
14
18
  }
15
19
  declare const Conflict_base: S.TaggedErrorClass<"Conflict", {
16
20
  readonly code: any;
17
21
  readonly message: any;
22
+ readonly body: any;
23
+ readonly headers: any;
18
24
  }> & (new (...args: any[]) => {
19
25
  "@distilled.cloud/error/categories": {
20
26
  ConflictError: true;
21
27
  };
22
28
  });
23
29
  export declare class Conflict extends /*@__PURE__*/ Conflict_base {
30
+ readonly body?: ErrorResponse | string;
24
31
  }
25
32
  declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
26
33
  readonly code: any;
27
34
  readonly message: any;
35
+ readonly body: any;
36
+ readonly headers: any;
28
37
  }> & (new (...args: any[]) => {
29
38
  "@distilled.cloud/error/categories": {
30
39
  BadRequestError: true;
31
40
  };
32
41
  });
33
42
  export declare class NotFound extends /*@__PURE__*/ NotFound_base {
43
+ readonly body?: ErrorResponse | string;
34
44
  }
35
45
  declare const PayloadTooLarge_base: S.TaggedErrorClass<"PayloadTooLarge", {
36
46
  readonly code: any;
37
47
  readonly message: any;
48
+ readonly body: any;
49
+ readonly headers: any;
38
50
  }> & (new (...args: any[]) => {
39
51
  "@distilled.cloud/error/categories": {
40
52
  BadRequestError: true;
41
53
  };
42
54
  });
43
55
  export declare class PayloadTooLarge extends /*@__PURE__*/ PayloadTooLarge_base {
56
+ readonly body?: ErrorResponse | string;
44
57
  }
45
58
  export interface DeleteAllExtensionsRequest {
46
59
  }
@@ -55,7 +68,11 @@ export interface DownloadExtensionRequest {
55
68
  /** Extension ID */
56
69
  extensionId: string;
57
70
  }
58
- export type DownloadExtensionResponse = Uint8Array;
71
+ export interface DownloadExtensionResponse {
72
+ body: BinaryStream;
73
+ /** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
74
+ contentType?: string | undefined;
75
+ }
59
76
  export interface ListExtensionsRequest {
60
77
  }
61
78
  export interface ExtensionListExtensionsItem {
@@ -101,6 +118,35 @@ export interface UploadExtensionRequest {
101
118
  /** Extension URL */
102
119
  url?: string | undefined;
103
120
  }
121
+ export interface ErrorResponseContextItem {
122
+ keyword: string;
123
+ message: string;
124
+ params: unknown;
125
+ }
126
+ export type ErrorResponseContextList = Array<ErrorResponseContextItem>;
127
+ /** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
128
+ export type ErrorResponseDetailsMap = {
129
+ [key: string]: unknown | undefined;
130
+ };
131
+ /** An error response from the API */
132
+ export interface ErrorResponse {
133
+ /** Stable machine-readable reason, e.g. 'budget_exceeded' or 'profile_not_ready'. Branch on this instead of parsing the message. */
134
+ code?: string | undefined;
135
+ context?: ErrorResponseContextList | undefined;
136
+ /** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
137
+ details?: ErrorResponseDetailsMap | undefined;
138
+ error?: string | undefined;
139
+ linkToDocs?: string | undefined;
140
+ message: string;
141
+ /** The request field that caused the error, if any. */
142
+ param?: string | undefined;
143
+ /** Seconds to wait before retrying. Also sent as the Retry-After header. */
144
+ retryAfterSeconds?: number | undefined;
145
+ /** Whether the same request can succeed later without changes. False means fix the request or the account first. */
146
+ retryable?: boolean | undefined;
147
+ /** Where a person turns on the refused feature, e.g. verifying the account. Pass it to your user. */
148
+ unlockUrl?: string | undefined;
149
+ }
104
150
  export type DeleteAllExtensionsError = BadRequest | SteelOpError;
105
151
  /** Delete all extensions Delete all extensions for the organization */
106
152
  export declare const deleteAllExtensions: API.OperationMethod<DeleteAllExtensionsRequest, DeleteResponse, DeleteAllExtensionsError, SteelOpContext>;
@@ -1 +1 @@
1
- {"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../src/services/extensions.ts"],"names":[],"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,oBAAoB,EACpB,cAAc,CAUb,CAAC"}
@@ -1,2 +1,2 @@
1
- import{Ac as e,Ba as t,Dc as n,Gc as r,Ic as i,Jc as a,a as o,c as s,e as c,errors$UnknownSteelError as l,jc as u,k as d,l as f,m as p,protocol$SteelProtocol as m,retry$Retry as h,sc as g,traits$BinaryResponse as _,traits$Http as v,traits$Label as y,traits$applyErrorMatchers as b,vc as x,wc 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__*/ c(function BadRequest(e){return f(e,new.target,[`$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])`,[n,C,g,x,w,b]])});const D=/*@__PURE__*/ c(function Conflict(e){return f(e,new.target,[`$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])`,[n,t,g,x,w,b]])});const O=/*@__PURE__*/ c(function NotFound(e){return f(e,new.target,[`$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])`,[n,C,g,x,w,b]])});const k=/*@__PURE__*/ c(function PayloadTooLarge(e){return f(e,new.target,[`$5($4()("PayloadTooLarge",{code:$2,message:$3}).pipe($1),[{status:413}])`,[n,C,g,x,w,b]])});const A=/*@__PURE__*/ p(e=>e===o?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}))`,[n,v,S,a,__d0,E,l,m,h,T]):s(A,e));const j=/*@__PURE__*/ p(e=>e===o?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}))`,[n,v,y,x,S,a,__d0,E,O,l,m,h,T]):s(j,e));const M=/*@__PURE__*/ p(e=>e===o?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}))`,[n,v,y,x,S,a,_,Uint8Array,r,E,O,l,m,h,T]):s(M,e));const N=/*@__PURE__*/ p(e=>e===o?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})`,[n,v,S,a,__d1,u,g,E,l,m,h,T]):s(N,e));const P=/*@__PURE__*/ p(t=>t===o?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"}))`,[n,v,y,x,Blob,r,Uint8Array,ArrayBuffer,e,i,S,a,__d1,E,O,D,k,l,m,h,T]):s(P,t));const F=/*@__PURE__*/ p(t=>t===o?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"}))`,[n,v,Blob,r,Uint8Array,ArrayBuffer,e,i,x,S,a,__d1,E,D,k,l,m,h,T]):s(F,t));function __d0(){return[`$3(>1)@"DeleteResponse";$2({message:$1})`,[n,x,S,a]]}function __d1(){return[`$3(>1)@"ExtensionListExtensionsItem";$2({createdAt:$1,id:$1,name:$1,updatedAt:$1})`,[n,x,S,a]]}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};
1
+ import{Ca as e,Gc as t,Hc as n,Jc as r,Kb as i,Kc as a,Mc as o,Oc as s,Pc as c,Rc as l,Uc as u,Wc as d,Xc as f,a as p,b as m,errors$SteelServiceErrors as h,f as g,l as _,m as v,n as y,protocol$SteelProtocol as b,retry$Retry as x,traits$BinaryResponse as S,traits$Header as C,traits$Http as w,traits$Label as T,traits$RawResponse as E,traits$applyErrorMatchers as D,wc as O,xc as k,za as A}from"../_bundle/sdk.js";const j={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 M=/*@__PURE__*/ g(function BadRequest(e){return v(e,new.target,[`$10($9()("BadRequest",{code:$2,message:$3,body:$7($6([$5(>1),$3])),headers:$7($8($3,$3))}).pipe($1),[{status:400}]);#4:3`,[l,A,t,r,__d0,f,s,d,n,o,D]])});const N=/*@__PURE__*/ g(function Conflict(i){return v(i,new.target,[`$10($9()("Conflict",{code:$2,message:$3,body:$7($6([$5(>1),$3])),headers:$7($8($3,$3))}).pipe($1),[{status:409}]);#4:3`,[l,e,t,r,__d0,f,s,d,n,o,D]])});const P=/*@__PURE__*/ g(function NotFound(e){return v(e,new.target,[`$10($9()("NotFound",{code:$2,message:$3,body:$7($6([$5(>1),$3])),headers:$7($8($3,$3))}).pipe($1),[{status:404}]);#4:3`,[l,A,t,r,__d0,f,s,d,n,o,D]])});const F=/*@__PURE__*/ g(function PayloadTooLarge(e){return v(e,new.target,[`$10($9()("PayloadTooLarge",{code:$2,message:$3,body:$7($6([$5(>1),$3])),headers:$7($8($3,$3))}).pipe($1),[{status:413}]);#4:3`,[l,A,t,r,__d0,f,s,d,n,o,D]])});const I=/*@__PURE__*/ y(e=>e===p?_(`DeleteAllExtensions`,`{input:#1,output:#4:0,errors:[$5],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"%"};$3(>2)@"%Request";$2({}).pipe($1({method:"DELETE",uri:"/v1/extensions",code:200}))`,[l,w,a,f,__d1,M,h,b,x,j]):m(I,e));const L=/*@__PURE__*/ y(e=>e===p?_(`DeleteExtension`,`{input:#1,output:#6:0,errors:[$7,$8],serviceErrors:$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}))`,[l,w,T,r,a,f,__d1,M,P,h,b,x,j]):m(L,e));const R=/*@__PURE__*/ y(e=>e===p?_(`DownloadExtension`,`{input:#1,output:#2,errors:[$11,$12],serviceErrors:$13,protocol:$14,retry:$15,telemetry:$16,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({extensionId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/extensions/{extensionId}",code:200}));$4({body:$8.pipe($6(),$7()),contentType:$10($3.pipe($9("Content-Type")))})`,[l,w,T,r,a,f,E,S,i,C,d,M,P,h,b,x,j]):m(R,e));const z=/*@__PURE__*/ y(e=>e===p?_(`ListExtensions`,`{input:#1,output:#3,errors:[$7],serviceErrors:$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})`,[l,w,a,f,__d2,O,t,M,h,b,x,j]):m(z,e));const B=/*@__PURE__*/ y(e=>e===p?_(`UpdateExtension`,`{input:#1,output:#12:0,errors:[$13,$14,$15,$16],serviceErrors:$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"}))`,[l,w,T,r,Blob,u,Uint8Array,ArrayBuffer,s,d,a,f,__d2,M,P,N,F,h,b,x,j]):m(B,e));const V=/*@__PURE__*/ y(e=>e===p?_(`UploadExtension`,`{input:#1,output:#11:0,errors:[$12,$13,$14],serviceErrors:$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"}))`,[l,w,Blob,u,Uint8Array,ArrayBuffer,s,d,r,a,f,__d2,M,N,F,h,b,x,j]):m(V,e));function __d0(){return[`$4(>4)@"ErrorResponseContextItem";$5(#0);$6($1,$2);$4(>5)@"ErrorResponse";$3({keyword:$1,message:$1,params:$2});$3({code:$7($1),context:$7(#1),details:$7(#2),error:$7($1),linkToDocs:$7($1),message:$1,param:$7($1),retryAfterSeconds:$7($8),retryable:$7($9),unlockUrl:$7($1)})`,[l,r,c,a,f,O,n,d,t,k]]}function __d1(){return[`$3(>1)@"DeleteResponse";$2({message:$1})`,[l,r,a,f]]}function __d2(){return[`$3(>1)@"ExtensionListExtensionsItem";$2({createdAt:$1,id:$1,name:$1,updatedAt:$1})`,[l,r,a,f]]}export{M as BadRequest,N as Conflict,P as NotFound,F as PayloadTooLarge,I as deleteAllExtensions,L as deleteExtension,R as downloadExtension,z as listExtensions,B as updateExtension,V as uploadExtension};
2
2
  //# sourceMappingURL=extensions.js.map
@@ -1 +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","Union","withConflictError","at","instanceOf","optional","suspend","D","call","error","UnknownSteelError","Array","named","newError","op","SteelProtocol","Retry","Number","BinaryResponse","Http","Label","applyErrorMatchers","String","Struct","withBadRequestError","TaggedError","TELEMETRY","BadRequest","i","Conflict","NotFound","PayloadTooLarge","deleteAllExtensions","deleteExtension","downloadExtension","listExtensions","updateExtension","uploadExtension"],"sources":["../../src/services/extensions.ts"],"mappings":"iVAaA,MAAM8C,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,QACR,UAAW,KACb,EAEA,MAAaC,EAAgC,gBAAU,SAAS,WAAW,EAAa,CACtF,OAAO/C,EAAagD,EAAG,WAAY,CAAC,sEAAuE,CAAC/C,EAAQC,EAAuBC,EAAUC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CACtM,CAAC,EAED,MAAa2C,EAA8B,gBAAU,SAAS,SAAS,EAAa,CAClF,OAAOjD,EAAagD,EAAG,WAAY,CAAC,oEAAqE,CAAC/C,EAAQM,EAAqBJ,EAAUC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CAClM,CAAC,EAED,MAAa4C,EAA8B,gBAAU,SAAS,SAAS,EAAa,CAClF,OAAOlD,EAAagD,EAAG,WAAY,CAAC,oEAAqE,CAAC/C,EAAQC,EAAuBC,EAAUC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CACpM,CAAC,EAED,MAAa6C,EAAqC,gBAAU,SAAS,gBAAgB,EAAa,CAChG,OAAOnD,EAAagD,EAAG,WAAY,CAAC,2EAA4E,CAAC/C,EAAQC,EAAuBC,EAAUC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CAC3M,CAAC,EA6DD,MAAa8C,EAKK,gBAAQ,GAAgBJ,IAAMxC,EAAQC,EAAU,sBAAuB,sKAAuK,CA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AYE,EAAUE,EAAiBrB,EAAmBK,EAAetB,EAAaiC,CAAS,CAAC,EAAIhC,EAAS2C,EAAiBT,CAAC,CAAC,EAMvkB,SAAS,MAAY,CACnB,MAAO,CAAC,2CAA4C,CAAC/C,EAAQG,EAAUO,EAAUC,CAAS,CAAC,CAC7F,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,qFAAsF,CAACX,EAAQG,EAAUO,EAAUC,CAAS,CAAC,CACvI"}
1
+ {"version":3,"file":"extensions.js","names":["API.newError","__L.at","C.withBadRequestError","S.Number","S.String","S.suspend","S.Union","S.optional","S.Record","S.TaggedError","T.applyErrorMatchers","C.withConflictError","API.D","API.named","T.Http","S.Struct","Retry.Retry","API.call","T.Label","T.RawResponse","T.BinaryResponse","T.Header","S.Array","S.instanceOf","S.Unknown","S.Boolean","withConflictError","Number","Record","String","BinaryStream","Struct","TaggedError","Union","Unknown","at","instanceOf","optional","suspend","D","call","SteelServiceErrors","error","named","newError","op","SteelProtocol","Retry","BinaryResponse","Header","Http","Label","RawResponse","applyErrorMatchers","Array","Boolean","withBadRequestError","TELEMETRY","BadRequest","i","Conflict","NotFound","PayloadTooLarge","deleteAllExtensions","deleteExtension","downloadExtension","listExtensions","updateExtension","uploadExtension"],"sources":["../../src/services/extensions.ts"],"mappings":"6ZAcA,MAAMyD,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,QACR,UAAW,KACb,EAEA,MAAaC,EAAgC,gBAAU,SAAS,WAAW,EAAa,CACtF,OAAO1D,EAAa2D,EAAG,WAAY,CAAC,2HAA4H,CAAC1D,EAAQC,EAAuBC,EAAUC,EAAU,KAAMC,EAAWC,EAASC,EAAYC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CAC3S,CAAC,EAED,MAAakD,EAA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AAC,EAAIxC,EAASgD,EAAmBN,CAAC,CAAC,EAIroB,MAAaO,EAKK,gBAAQ,GAAgBP,IAAM/C,EAAQC,EAAU,iBAAkB,8OAA+O,CAACZ,EAAQa,EAAQC,EAAUV,EAAW,KAAMiB,EAASnB,EAAUuD,EAAYjB,EAAoBK,EAAe9B,EAAayC,CAAS,CAAC,EAAIxC,EAASiD,EAAgBP,CAAC,CAAC,EASve,MAAaQ,EAKK,gBAAQ,GAAgBR,IAAM/C,EAAQC,EAAU,kBAAmB,mTAAoT,CAACZ,EAAQa,EAAQI,EAASd,EAAU,KAAMmB,EAAc,WAAY,YAAajB,EAASC,EAAYQ,EAAUV,EAAW,KAAMqD,EAAYG,EAAUD,EAAUE,EAAiBrB,EAAoBK,EAAe9B,EAAayC,CAAS,CAAC,EAAIxC,EAASkD,EAAiBR,CAAC,CAAC,EAIrpB,MAAaS,EAKK,gBAAQ,GAAgBT,IAAM/C,EAAQC,EAAU,kBAAmB,uQAAwQ,CAACZ,EAAQa,EAAQ,KAAMS,EAAc,WAAY,YAAajB,EAASC,EAAYH,EAAUW,EAAUV,EAAW,KAAMqD,EAAYE,EAAUE,EAAiBrB,EAAoBK,EAAe9B,EAAayC,CAAS,CAAC,EAAIxC,EAASmD,EAAiBT,CAAC,CAAC,EAMtlB,SAAS,MAAY,CACnB,MAAO,CAAC,oRAAqR,CAAC1D,EAAQG,EAAUoB,EAAWT,EAAUV,EAAWiB,EAASd,EAAUD,EAAYJ,EAAUsB,CAAS,CAAC,CACrY,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,2CAA4C,CAACxB,EAAQG,EAAUW,EAAUV,CAAS,CAAC,CAC7F,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,qFAAsF,CAACJ,EAAQG,EAAUW,EAAUV,CAAS,CAAC,CACvI"}
@@ -1,46 +1,59 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
+ import { BinaryStream } from "@distilled.cloud/core/protocol-rest";
2
3
  import * as S from "@distilled.cloud/core/schema-lite";
3
4
  import { type SteelOpError, type SteelOpContext } from "../protocol.ts";
4
5
  export type { SteelOpError, SteelOpContext };
5
6
  declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
6
7
  readonly code: any;
7
8
  readonly message: any;
9
+ readonly body: any;
10
+ readonly headers: any;
8
11
  }> & (new (...args: any[]) => {
9
12
  "@distilled.cloud/error/categories": {
10
13
  BadRequestError: true;
11
14
  };
12
15
  });
13
16
  export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
17
+ readonly body?: ErrorResponse | string;
14
18
  }
15
19
  declare const Conflict_base: S.TaggedErrorClass<"Conflict", {
16
20
  readonly code: any;
17
21
  readonly message: any;
22
+ readonly body: any;
23
+ readonly headers: any;
18
24
  }> & (new (...args: any[]) => {
19
25
  "@distilled.cloud/error/categories": {
20
26
  ConflictError: true;
21
27
  };
22
28
  });
23
29
  export declare class Conflict extends /*@__PURE__*/ Conflict_base {
30
+ readonly body?: ErrorResponse | string;
24
31
  }
25
32
  declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
26
33
  readonly code: any;
27
34
  readonly message: any;
35
+ readonly body: any;
36
+ readonly headers: any;
28
37
  }> & (new (...args: any[]) => {
29
38
  "@distilled.cloud/error/categories": {
30
39
  BadRequestError: true;
31
40
  };
32
41
  });
33
42
  export declare class NotFound extends /*@__PURE__*/ NotFound_base {
43
+ readonly body?: ErrorResponse | string;
34
44
  }
35
45
  declare const UnsupportedMediaType_base: S.TaggedErrorClass<"UnsupportedMediaType", {
36
46
  readonly code: any;
37
47
  readonly message: any;
48
+ readonly body: any;
49
+ readonly headers: any;
38
50
  }> & (new (...args: any[]) => {
39
51
  "@distilled.cloud/error/categories": {
40
52
  BadRequestError: true;
41
53
  };
42
54
  });
43
55
  export declare class UnsupportedMediaType extends /*@__PURE__*/ UnsupportedMediaType_base {
56
+ readonly body?: ErrorResponse | string;
44
57
  }
45
58
  export interface DeleteAllFilesRequest {
46
59
  sessionId: string;
@@ -61,16 +74,28 @@ export interface DeleteGlobalFileResponse {
61
74
  export interface DownloadArchiveRequest {
62
75
  sessionId: string;
63
76
  }
64
- export type DownloadArchiveResponse = Uint8Array;
77
+ export interface DownloadArchiveResponse {
78
+ body: BinaryStream;
79
+ /** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
80
+ contentType?: string | undefined;
81
+ }
65
82
  export interface DownloadFileRequest {
66
83
  sessionId: string;
67
84
  path: string;
68
85
  }
69
- export type DownloadFileResponse = Uint8Array;
86
+ export interface DownloadFileResponse {
87
+ body: BinaryStream;
88
+ /** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
89
+ contentType?: string | undefined;
90
+ }
70
91
  export interface DownloadGlobalFileRequest {
71
92
  path: string;
72
93
  }
73
- export type DownloadGlobalFileResponse = Uint8Array;
94
+ export interface DownloadGlobalFileResponse {
95
+ body: BinaryStream;
96
+ /** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
97
+ contentType?: string | undefined;
98
+ }
74
99
  export interface ListFilesRequest {
75
100
  sessionId: string;
76
101
  }
@@ -111,6 +136,35 @@ export interface UploadGlobalFileRequest {
111
136
  /** Path to the file in the storage system */
112
137
  path?: string | undefined;
113
138
  }
139
+ export interface ErrorResponseContextItem {
140
+ keyword: string;
141
+ message: string;
142
+ params: unknown;
143
+ }
144
+ export type ErrorResponseContextList = Array<ErrorResponseContextItem>;
145
+ /** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
146
+ export type ErrorResponseDetailsMap = {
147
+ [key: string]: unknown | undefined;
148
+ };
149
+ /** An error response from the API */
150
+ export interface ErrorResponse {
151
+ /** Stable machine-readable reason, e.g. 'budget_exceeded' or 'profile_not_ready'. Branch on this instead of parsing the message. */
152
+ code?: string | undefined;
153
+ context?: ErrorResponseContextList | undefined;
154
+ /** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
155
+ details?: ErrorResponseDetailsMap | undefined;
156
+ error?: string | undefined;
157
+ linkToDocs?: string | undefined;
158
+ message: string;
159
+ /** The request field that caused the error, if any. */
160
+ param?: string | undefined;
161
+ /** Seconds to wait before retrying. Also sent as the Retry-After header. */
162
+ retryAfterSeconds?: number | undefined;
163
+ /** Whether the same request can succeed later without changes. False means fix the request or the account first. */
164
+ retryable?: boolean | undefined;
165
+ /** Where a person turns on the refused feature, e.g. verifying the account. Pass it to your user. */
166
+ unlockUrl?: string | undefined;
167
+ }
114
168
  export type DeleteAllFilesError = NotFound | Conflict | SteelOpError;
115
169
  /** Delete all files Delete all files from a session */
116
170
  export declare const deleteAllFiles: API.OperationMethod<DeleteAllFilesRequest, DeleteAllFilesResponse, DeleteAllFilesError, SteelOpContext>;