@unified-api/typescript-sdk 2.4.1 → 2.5.0

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 (155) hide show
  1. package/README.md +41 -3
  2. package/funcs/apicallListUnifiedApicalls.js +1 -1
  3. package/funcs/apicallListUnifiedApicalls.js.map +1 -1
  4. package/funcs/connectionListUnifiedConnections.js +1 -1
  5. package/funcs/connectionListUnifiedConnections.js.map +1 -1
  6. package/funcs/integrationListUnifiedIntegrations.js +1 -1
  7. package/funcs/integrationListUnifiedIntegrations.js.map +1 -1
  8. package/funcs/issueListUnifiedIssues.js +1 -1
  9. package/funcs/issueListUnifiedIssues.js.map +1 -1
  10. package/funcs/passthroughCreatePassthroughJson.d.ts +19 -0
  11. package/funcs/passthroughCreatePassthroughJson.d.ts.map +1 -0
  12. package/funcs/{passthroughCreatePassthrough.js → passthroughCreatePassthroughJson.js} +18 -8
  13. package/funcs/passthroughCreatePassthroughJson.js.map +1 -0
  14. package/funcs/passthroughCreatePassthroughRaw.d.ts +19 -0
  15. package/funcs/passthroughCreatePassthroughRaw.d.ts.map +1 -0
  16. package/funcs/passthroughCreatePassthroughRaw.js +109 -0
  17. package/funcs/passthroughCreatePassthroughRaw.js.map +1 -0
  18. package/funcs/passthroughListPassthroughs.d.ts +8 -3
  19. package/funcs/passthroughListPassthroughs.d.ts.map +1 -1
  20. package/funcs/passthroughListPassthroughs.js +13 -3
  21. package/funcs/passthroughListPassthroughs.js.map +1 -1
  22. package/funcs/passthroughPatchPassthroughJson.d.ts +19 -0
  23. package/funcs/passthroughPatchPassthroughJson.d.ts.map +1 -0
  24. package/funcs/{passthroughPatchPassthrough.js → passthroughPatchPassthroughJson.js} +18 -8
  25. package/funcs/passthroughPatchPassthroughJson.js.map +1 -0
  26. package/funcs/passthroughPatchPassthroughRaw.d.ts +19 -0
  27. package/funcs/passthroughPatchPassthroughRaw.d.ts.map +1 -0
  28. package/funcs/passthroughPatchPassthroughRaw.js +109 -0
  29. package/funcs/passthroughPatchPassthroughRaw.js.map +1 -0
  30. package/funcs/passthroughRemovePassthrough.d.ts +8 -3
  31. package/funcs/passthroughRemovePassthrough.d.ts.map +1 -1
  32. package/funcs/passthroughRemovePassthrough.js +13 -3
  33. package/funcs/passthroughRemovePassthrough.js.map +1 -1
  34. package/funcs/passthroughUpdatePassthroughJson.d.ts +19 -0
  35. package/funcs/passthroughUpdatePassthroughJson.d.ts.map +1 -0
  36. package/funcs/{passthroughUpdatePassthrough.js → passthroughUpdatePassthroughJson.js} +18 -8
  37. package/funcs/passthroughUpdatePassthroughJson.js.map +1 -0
  38. package/funcs/passthroughUpdatePassthroughRaw.d.ts +19 -0
  39. package/funcs/passthroughUpdatePassthroughRaw.d.ts.map +1 -0
  40. package/funcs/passthroughUpdatePassthroughRaw.js +109 -0
  41. package/funcs/passthroughUpdatePassthroughRaw.js.map +1 -0
  42. package/funcs/unifiedCreateUnifiedWebhook.js +1 -1
  43. package/funcs/unifiedCreateUnifiedWebhook.js.map +1 -1
  44. package/funcs/unifiedListUnifiedApicalls.js +1 -1
  45. package/funcs/unifiedListUnifiedApicalls.js.map +1 -1
  46. package/funcs/unifiedListUnifiedConnections.js +1 -1
  47. package/funcs/unifiedListUnifiedConnections.js.map +1 -1
  48. package/funcs/unifiedListUnifiedIntegrations.js +1 -1
  49. package/funcs/unifiedListUnifiedIntegrations.js.map +1 -1
  50. package/funcs/unifiedListUnifiedIssues.js +1 -1
  51. package/funcs/unifiedListUnifiedIssues.js.map +1 -1
  52. package/funcs/unifiedListUnifiedWebhooks.js +1 -1
  53. package/funcs/unifiedListUnifiedWebhooks.js.map +1 -1
  54. package/funcs/webhookCreateUnifiedWebhook.js +1 -1
  55. package/funcs/webhookCreateUnifiedWebhook.js.map +1 -1
  56. package/funcs/webhookListUnifiedWebhooks.js +1 -1
  57. package/funcs/webhookListUnifiedWebhooks.js.map +1 -1
  58. package/lib/config.d.ts +3 -3
  59. package/lib/config.js +3 -3
  60. package/package.json +2 -2
  61. package/sdk/models/operations/createpassthroughjson.d.ts +83 -0
  62. package/sdk/models/operations/createpassthroughjson.d.ts.map +1 -0
  63. package/sdk/models/operations/createpassthroughjson.js +112 -0
  64. package/sdk/models/operations/createpassthroughjson.js.map +1 -0
  65. package/sdk/models/operations/createpassthroughraw.d.ts +83 -0
  66. package/sdk/models/operations/createpassthroughraw.d.ts.map +1 -0
  67. package/sdk/models/operations/createpassthroughraw.js +122 -0
  68. package/sdk/models/operations/createpassthroughraw.js.map +1 -0
  69. package/sdk/models/operations/index.d.ts +6 -3
  70. package/sdk/models/operations/index.d.ts.map +1 -1
  71. package/sdk/models/operations/index.js +6 -3
  72. package/sdk/models/operations/index.js.map +1 -1
  73. package/sdk/models/operations/listpassthroughs.d.ts +48 -0
  74. package/sdk/models/operations/listpassthroughs.d.ts.map +1 -1
  75. package/sdk/models/operations/listpassthroughs.js +48 -1
  76. package/sdk/models/operations/listpassthroughs.js.map +1 -1
  77. package/sdk/models/operations/patchpassthroughjson.d.ts +83 -0
  78. package/sdk/models/operations/patchpassthroughjson.d.ts.map +1 -0
  79. package/sdk/models/operations/patchpassthroughjson.js +112 -0
  80. package/sdk/models/operations/patchpassthroughjson.js.map +1 -0
  81. package/sdk/models/operations/patchpassthroughraw.d.ts +83 -0
  82. package/sdk/models/operations/patchpassthroughraw.d.ts.map +1 -0
  83. package/sdk/models/operations/patchpassthroughraw.js +122 -0
  84. package/sdk/models/operations/patchpassthroughraw.js.map +1 -0
  85. package/sdk/models/operations/removepassthrough.d.ts +48 -0
  86. package/sdk/models/operations/removepassthrough.d.ts.map +1 -1
  87. package/sdk/models/operations/removepassthrough.js +48 -1
  88. package/sdk/models/operations/removepassthrough.js.map +1 -1
  89. package/sdk/models/operations/updatepassthroughjson.d.ts +83 -0
  90. package/sdk/models/operations/updatepassthroughjson.d.ts.map +1 -0
  91. package/sdk/models/operations/updatepassthroughjson.js +112 -0
  92. package/sdk/models/operations/updatepassthroughjson.js.map +1 -0
  93. package/sdk/models/operations/updatepassthroughraw.d.ts +83 -0
  94. package/sdk/models/operations/updatepassthroughraw.d.ts.map +1 -0
  95. package/sdk/models/operations/updatepassthroughraw.js +122 -0
  96. package/sdk/models/operations/updatepassthroughraw.js.map +1 -0
  97. package/sdk/passthrough.d.ts +49 -15
  98. package/sdk/passthrough.d.ts.map +1 -1
  99. package/sdk/passthrough.js +47 -10
  100. package/sdk/passthrough.js.map +1 -1
  101. package/src/funcs/apicallListUnifiedApicalls.ts +1 -1
  102. package/src/funcs/connectionListUnifiedConnections.ts +1 -1
  103. package/src/funcs/integrationListUnifiedIntegrations.ts +1 -1
  104. package/src/funcs/issueListUnifiedIssues.ts +1 -1
  105. package/src/funcs/{passthroughCreatePassthrough.ts → passthroughCreatePassthroughJson.ts} +42 -11
  106. package/src/funcs/passthroughCreatePassthroughRaw.ts +158 -0
  107. package/src/funcs/passthroughListPassthroughs.ts +38 -7
  108. package/src/funcs/{passthroughPatchPassthrough.ts → passthroughPatchPassthroughJson.ts} +43 -11
  109. package/src/funcs/passthroughPatchPassthroughRaw.ts +158 -0
  110. package/src/funcs/passthroughRemovePassthrough.ts +38 -7
  111. package/src/funcs/{passthroughUpdatePassthrough.ts → passthroughUpdatePassthroughJson.ts} +42 -11
  112. package/src/funcs/passthroughUpdatePassthroughRaw.ts +158 -0
  113. package/src/funcs/unifiedCreateUnifiedWebhook.ts +1 -1
  114. package/src/funcs/unifiedListUnifiedApicalls.ts +1 -1
  115. package/src/funcs/unifiedListUnifiedConnections.ts +1 -1
  116. package/src/funcs/unifiedListUnifiedIntegrations.ts +1 -1
  117. package/src/funcs/unifiedListUnifiedIssues.ts +1 -1
  118. package/src/funcs/unifiedListUnifiedWebhooks.ts +1 -1
  119. package/src/funcs/webhookCreateUnifiedWebhook.ts +1 -1
  120. package/src/funcs/webhookListUnifiedWebhooks.ts +1 -1
  121. package/src/lib/config.ts +3 -3
  122. package/src/sdk/models/operations/createpassthroughjson.ts +166 -0
  123. package/src/sdk/models/operations/createpassthroughraw.ts +185 -0
  124. package/src/sdk/models/operations/index.ts +6 -3
  125. package/src/sdk/models/operations/listpassthroughs.ts +87 -0
  126. package/src/sdk/models/operations/patchpassthroughjson.ts +165 -0
  127. package/src/sdk/models/operations/patchpassthroughraw.ts +185 -0
  128. package/src/sdk/models/operations/removepassthrough.ts +94 -0
  129. package/src/sdk/models/operations/updatepassthroughjson.ts +166 -0
  130. package/src/sdk/models/operations/updatepassthroughraw.ts +185 -0
  131. package/src/sdk/passthrough.ts +125 -24
  132. package/funcs/passthroughCreatePassthrough.d.ts +0 -14
  133. package/funcs/passthroughCreatePassthrough.d.ts.map +0 -1
  134. package/funcs/passthroughCreatePassthrough.js.map +0 -1
  135. package/funcs/passthroughPatchPassthrough.d.ts +0 -14
  136. package/funcs/passthroughPatchPassthrough.d.ts.map +0 -1
  137. package/funcs/passthroughPatchPassthrough.js.map +0 -1
  138. package/funcs/passthroughUpdatePassthrough.d.ts +0 -14
  139. package/funcs/passthroughUpdatePassthrough.d.ts.map +0 -1
  140. package/funcs/passthroughUpdatePassthrough.js.map +0 -1
  141. package/sdk/models/operations/createpassthrough.d.ts +0 -39
  142. package/sdk/models/operations/createpassthrough.d.ts.map +0 -1
  143. package/sdk/models/operations/createpassthrough.js +0 -65
  144. package/sdk/models/operations/createpassthrough.js.map +0 -1
  145. package/sdk/models/operations/patchpassthrough.d.ts +0 -39
  146. package/sdk/models/operations/patchpassthrough.d.ts.map +0 -1
  147. package/sdk/models/operations/patchpassthrough.js +0 -65
  148. package/sdk/models/operations/patchpassthrough.js.map +0 -1
  149. package/sdk/models/operations/updatepassthrough.d.ts +0 -39
  150. package/sdk/models/operations/updatepassthrough.d.ts.map +0 -1
  151. package/sdk/models/operations/updatepassthrough.js +0 -65
  152. package/sdk/models/operations/updatepassthrough.js.map +0 -1
  153. package/src/sdk/models/operations/createpassthrough.ts +0 -70
  154. package/src/sdk/models/operations/patchpassthrough.ts +0 -70
  155. package/src/sdk/models/operations/updatepassthrough.ts +0 -70
@@ -1,35 +1,69 @@
1
+ import { CreatePassthroughJsonAcceptEnum } from "../funcs/passthroughCreatePassthroughJson.js";
2
+ import { CreatePassthroughRawAcceptEnum } from "../funcs/passthroughCreatePassthroughRaw.js";
3
+ import { ListPassthroughsAcceptEnum } from "../funcs/passthroughListPassthroughs.js";
4
+ import { PatchPassthroughJsonAcceptEnum } from "../funcs/passthroughPatchPassthroughJson.js";
5
+ import { PatchPassthroughRawAcceptEnum } from "../funcs/passthroughPatchPassthroughRaw.js";
6
+ import { RemovePassthroughAcceptEnum } from "../funcs/passthroughRemovePassthrough.js";
7
+ import { UpdatePassthroughJsonAcceptEnum } from "../funcs/passthroughUpdatePassthroughJson.js";
8
+ import { UpdatePassthroughRawAcceptEnum } from "../funcs/passthroughUpdatePassthroughRaw.js";
1
9
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
10
  import * as operations from "./models/operations/index.js";
11
+ export { CreatePassthroughJsonAcceptEnum } from "../funcs/passthroughCreatePassthroughJson.js";
12
+ export { CreatePassthroughRawAcceptEnum } from "../funcs/passthroughCreatePassthroughRaw.js";
13
+ export { ListPassthroughsAcceptEnum } from "../funcs/passthroughListPassthroughs.js";
14
+ export { PatchPassthroughJsonAcceptEnum } from "../funcs/passthroughPatchPassthroughJson.js";
15
+ export { PatchPassthroughRawAcceptEnum } from "../funcs/passthroughPatchPassthroughRaw.js";
16
+ export { RemovePassthroughAcceptEnum } from "../funcs/passthroughRemovePassthrough.js";
17
+ export { UpdatePassthroughJsonAcceptEnum } from "../funcs/passthroughUpdatePassthroughJson.js";
18
+ export { UpdatePassthroughRawAcceptEnum } from "../funcs/passthroughUpdatePassthroughRaw.js";
3
19
  export declare class Passthrough extends ClientSDK {
4
20
  /**
5
21
  * Passthrough POST
6
22
  */
7
- createPassthrough(request: operations.CreatePassthroughRequest, options?: RequestOptions): Promise<{
8
- [k: string]: any;
9
- }>;
23
+ createPassthroughJson(request: operations.CreatePassthroughJsonRequest, options?: RequestOptions & {
24
+ acceptHeaderOverride?: CreatePassthroughJsonAcceptEnum;
25
+ }): Promise<operations.CreatePassthroughJsonResponse | undefined>;
26
+ /**
27
+ * Passthrough POST
28
+ */
29
+ createPassthroughRaw(request: operations.CreatePassthroughRawRequest, options?: RequestOptions & {
30
+ acceptHeaderOverride?: CreatePassthroughRawAcceptEnum;
31
+ }): Promise<operations.CreatePassthroughRawResponse | undefined>;
10
32
  /**
11
33
  * Passthrough GET
12
34
  */
13
- listPassthroughs(request: operations.ListPassthroughsRequest, options?: RequestOptions): Promise<{
14
- [k: string]: any;
15
- }>;
35
+ listPassthroughs(request: operations.ListPassthroughsRequest, options?: RequestOptions & {
36
+ acceptHeaderOverride?: ListPassthroughsAcceptEnum;
37
+ }): Promise<operations.ListPassthroughsResponse | undefined>;
16
38
  /**
17
39
  * Passthrough PUT
18
40
  */
19
- patchPassthrough(request: operations.PatchPassthroughRequest, options?: RequestOptions): Promise<{
20
- [k: string]: any;
21
- }>;
41
+ patchPassthroughJson(request: operations.PatchPassthroughJsonRequest, options?: RequestOptions & {
42
+ acceptHeaderOverride?: PatchPassthroughJsonAcceptEnum;
43
+ }): Promise<operations.PatchPassthroughJsonResponse | undefined>;
44
+ /**
45
+ * Passthrough PUT
46
+ */
47
+ patchPassthroughRaw(request: operations.PatchPassthroughRawRequest, options?: RequestOptions & {
48
+ acceptHeaderOverride?: PatchPassthroughRawAcceptEnum;
49
+ }): Promise<operations.PatchPassthroughRawResponse | undefined>;
22
50
  /**
23
51
  * Passthrough DELETE
24
52
  */
25
- removePassthrough(request: operations.RemovePassthroughRequest, options?: RequestOptions): Promise<{
26
- [k: string]: any;
27
- }>;
53
+ removePassthrough(request: operations.RemovePassthroughRequest, options?: RequestOptions & {
54
+ acceptHeaderOverride?: RemovePassthroughAcceptEnum;
55
+ }): Promise<operations.RemovePassthroughResponse | undefined>;
56
+ /**
57
+ * Passthrough PUT
58
+ */
59
+ updatePassthroughJson(request: operations.UpdatePassthroughJsonRequest, options?: RequestOptions & {
60
+ acceptHeaderOverride?: UpdatePassthroughJsonAcceptEnum;
61
+ }): Promise<operations.UpdatePassthroughJsonResponse | undefined>;
28
62
  /**
29
63
  * Passthrough PUT
30
64
  */
31
- updatePassthrough(request: operations.UpdatePassthroughRequest, options?: RequestOptions): Promise<{
32
- [k: string]: any;
33
- }>;
65
+ updatePassthroughRaw(request: operations.UpdatePassthroughRawRequest, options?: RequestOptions & {
66
+ acceptHeaderOverride?: UpdatePassthroughRawAcceptEnum;
67
+ }): Promise<operations.UpdatePassthroughRawResponse | undefined>;
34
68
  }
35
69
  //# sourceMappingURL=passthrough.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"passthrough.d.ts","sourceRoot":"","sources":["../src/sdk/passthrough.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,8BAA8B,CAAC;AAG3D,qBAAa,WAAY,SAAQ,SAAS;IACxC;;OAEG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAQhC;;OAEG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAQhC;;OAEG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAQhC;;OAEG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC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O,CAAC,EAAE,cAAc,GAAG;QACzB,oBAAoB,CAAC,EAAE,2BAA2B,CAAC;KACpD,GACA,OAAO,CAAC,UAAU,CAAC,yBAAyB,GAAG,SAAS,CAAC;IAQ5D;;OAEG;IACG,qBAAqB,CACzB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GAAG;QACzB,oBAAoB,CAAC,EAAE,+BAA+B,CAAC;KACxD,GACA,OAAO,CAAC,UAAU,CAAC,6BAA6B,GAAG,SAAS,CAAC;IAQhE;;OAEG;IACG,oBAAoB,CACxB,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GAAG;QACzB,oBAAoB,CAAC,EAAE,8BAA8B,CAAC;KACvD,GACA,OAAO,CAAC,UAAU,CAAC,4BAA4B,GAAG,SAAS,CAAC;CAOhE"}
@@ -3,20 +3,45 @@
3
3
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Passthrough = void 0;
7
- const passthroughCreatePassthrough_js_1 = require("../funcs/passthroughCreatePassthrough.js");
6
+ exports.Passthrough = exports.UpdatePassthroughRawAcceptEnum = exports.UpdatePassthroughJsonAcceptEnum = exports.RemovePassthroughAcceptEnum = exports.PatchPassthroughRawAcceptEnum = exports.PatchPassthroughJsonAcceptEnum = exports.ListPassthroughsAcceptEnum = exports.CreatePassthroughRawAcceptEnum = exports.CreatePassthroughJsonAcceptEnum = void 0;
7
+ const passthroughCreatePassthroughJson_js_1 = require("../funcs/passthroughCreatePassthroughJson.js");
8
+ const passthroughCreatePassthroughRaw_js_1 = require("../funcs/passthroughCreatePassthroughRaw.js");
8
9
  const passthroughListPassthroughs_js_1 = require("../funcs/passthroughListPassthroughs.js");
9
- const passthroughPatchPassthrough_js_1 = require("../funcs/passthroughPatchPassthrough.js");
10
+ const passthroughPatchPassthroughJson_js_1 = require("../funcs/passthroughPatchPassthroughJson.js");
11
+ const passthroughPatchPassthroughRaw_js_1 = require("../funcs/passthroughPatchPassthroughRaw.js");
10
12
  const passthroughRemovePassthrough_js_1 = require("../funcs/passthroughRemovePassthrough.js");
11
- const passthroughUpdatePassthrough_js_1 = require("../funcs/passthroughUpdatePassthrough.js");
13
+ const passthroughUpdatePassthroughJson_js_1 = require("../funcs/passthroughUpdatePassthroughJson.js");
14
+ const passthroughUpdatePassthroughRaw_js_1 = require("../funcs/passthroughUpdatePassthroughRaw.js");
12
15
  const sdks_js_1 = require("../lib/sdks.js");
13
16
  const fp_js_1 = require("./types/fp.js");
17
+ var passthroughCreatePassthroughJson_js_2 = require("../funcs/passthroughCreatePassthroughJson.js");
18
+ Object.defineProperty(exports, "CreatePassthroughJsonAcceptEnum", { enumerable: true, get: function () { return passthroughCreatePassthroughJson_js_2.CreatePassthroughJsonAcceptEnum; } });
19
+ var passthroughCreatePassthroughRaw_js_2 = require("../funcs/passthroughCreatePassthroughRaw.js");
20
+ Object.defineProperty(exports, "CreatePassthroughRawAcceptEnum", { enumerable: true, get: function () { return passthroughCreatePassthroughRaw_js_2.CreatePassthroughRawAcceptEnum; } });
21
+ var passthroughListPassthroughs_js_2 = require("../funcs/passthroughListPassthroughs.js");
22
+ Object.defineProperty(exports, "ListPassthroughsAcceptEnum", { enumerable: true, get: function () { return passthroughListPassthroughs_js_2.ListPassthroughsAcceptEnum; } });
23
+ var passthroughPatchPassthroughJson_js_2 = require("../funcs/passthroughPatchPassthroughJson.js");
24
+ Object.defineProperty(exports, "PatchPassthroughJsonAcceptEnum", { enumerable: true, get: function () { return passthroughPatchPassthroughJson_js_2.PatchPassthroughJsonAcceptEnum; } });
25
+ var passthroughPatchPassthroughRaw_js_2 = require("../funcs/passthroughPatchPassthroughRaw.js");
26
+ Object.defineProperty(exports, "PatchPassthroughRawAcceptEnum", { enumerable: true, get: function () { return passthroughPatchPassthroughRaw_js_2.PatchPassthroughRawAcceptEnum; } });
27
+ var passthroughRemovePassthrough_js_2 = require("../funcs/passthroughRemovePassthrough.js");
28
+ Object.defineProperty(exports, "RemovePassthroughAcceptEnum", { enumerable: true, get: function () { return passthroughRemovePassthrough_js_2.RemovePassthroughAcceptEnum; } });
29
+ var passthroughUpdatePassthroughJson_js_2 = require("../funcs/passthroughUpdatePassthroughJson.js");
30
+ Object.defineProperty(exports, "UpdatePassthroughJsonAcceptEnum", { enumerable: true, get: function () { return passthroughUpdatePassthroughJson_js_2.UpdatePassthroughJsonAcceptEnum; } });
31
+ var passthroughUpdatePassthroughRaw_js_2 = require("../funcs/passthroughUpdatePassthroughRaw.js");
32
+ Object.defineProperty(exports, "UpdatePassthroughRawAcceptEnum", { enumerable: true, get: function () { return passthroughUpdatePassthroughRaw_js_2.UpdatePassthroughRawAcceptEnum; } });
14
33
  class Passthrough extends sdks_js_1.ClientSDK {
15
34
  /**
16
35
  * Passthrough POST
17
36
  */
18
- async createPassthrough(request, options) {
19
- return (0, fp_js_1.unwrapAsync)((0, passthroughCreatePassthrough_js_1.passthroughCreatePassthrough)(this, request, options));
37
+ async createPassthroughJson(request, options) {
38
+ return (0, fp_js_1.unwrapAsync)((0, passthroughCreatePassthroughJson_js_1.passthroughCreatePassthroughJson)(this, request, options));
39
+ }
40
+ /**
41
+ * Passthrough POST
42
+ */
43
+ async createPassthroughRaw(request, options) {
44
+ return (0, fp_js_1.unwrapAsync)((0, passthroughCreatePassthroughRaw_js_1.passthroughCreatePassthroughRaw)(this, request, options));
20
45
  }
21
46
  /**
22
47
  * Passthrough GET
@@ -27,8 +52,14 @@ class Passthrough extends sdks_js_1.ClientSDK {
27
52
  /**
28
53
  * Passthrough PUT
29
54
  */
30
- async patchPassthrough(request, options) {
31
- return (0, fp_js_1.unwrapAsync)((0, passthroughPatchPassthrough_js_1.passthroughPatchPassthrough)(this, request, options));
55
+ async patchPassthroughJson(request, options) {
56
+ return (0, fp_js_1.unwrapAsync)((0, passthroughPatchPassthroughJson_js_1.passthroughPatchPassthroughJson)(this, request, options));
57
+ }
58
+ /**
59
+ * Passthrough PUT
60
+ */
61
+ async patchPassthroughRaw(request, options) {
62
+ return (0, fp_js_1.unwrapAsync)((0, passthroughPatchPassthroughRaw_js_1.passthroughPatchPassthroughRaw)(this, request, options));
32
63
  }
33
64
  /**
34
65
  * Passthrough DELETE
@@ -39,8 +70,14 @@ class Passthrough extends sdks_js_1.ClientSDK {
39
70
  /**
40
71
  * Passthrough PUT
41
72
  */
42
- async updatePassthrough(request, options) {
43
- return (0, fp_js_1.unwrapAsync)((0, passthroughUpdatePassthrough_js_1.passthroughUpdatePassthrough)(this, request, options));
73
+ async updatePassthroughJson(request, options) {
74
+ return (0, fp_js_1.unwrapAsync)((0, passthroughUpdatePassthroughJson_js_1.passthroughUpdatePassthroughJson)(this, request, options));
75
+ }
76
+ /**
77
+ * Passthrough PUT
78
+ */
79
+ async updatePassthroughRaw(request, options) {
80
+ return (0, fp_js_1.unwrapAsync)((0, passthroughUpdatePassthroughRaw_js_1.passthroughUpdatePassthroughRaw)(this, request, options));
44
81
  }
45
82
  }
46
83
  exports.Passthrough = Passthrough;
@@ -1 +1 @@
1
- {"version":3,"file":"passthrough.js","sourceRoot":"","sources":["../src/sdk/passthrough.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8FAAwF;AACxF,4FAAsF;AACtF,4FAAsF;AACtF,8FAAwF;AACxF,8FAAwF;AACxF,4CAA2D;AAE3D,yCAA4C;AAE5C,MAAa,WAAY,SAAQ,mBAAS;IACxC;;OAEG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8DAA4B,EAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4DAA2B,EAC5C,IAAI,EACJ,OAAO,E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AED,OAAO,IAAA,mBAAW,EAAC,IAAA,oEAA+B,EAChD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAhID,kCAgIC"}
@@ -42,7 +42,7 @@ export async function apicallListUnifiedApicalls(
42
42
  | ConnectionError
43
43
  >
44
44
  > {
45
- const input$ = typeof request === "undefined" ? {} : request;
45
+ const input$ = request;
46
46
 
47
47
  const parsed$ = schemas$.safeParse(
48
48
  input$,
@@ -42,7 +42,7 @@ export async function connectionListUnifiedConnections(
42
42
  | ConnectionError
43
43
  >
44
44
  > {
45
- const input$ = typeof request === "undefined" ? {} : request;
45
+ const input$ = request;
46
46
 
47
47
  const parsed$ = schemas$.safeParse(
48
48
  input$,
@@ -42,7 +42,7 @@ export async function integrationListUnifiedIntegrations(
42
42
  | ConnectionError
43
43
  >
44
44
  > {
45
- const input$ = typeof request === "undefined" ? {} : request;
45
+ const input$ = request;
46
46
 
47
47
  const parsed$ = schemas$.safeParse(
48
48
  input$,
@@ -42,7 +42,7 @@ export async function issueListUnifiedIssues(
42
42
  | ConnectionError
43
43
  >
44
44
  > {
45
- const input$ = typeof request === "undefined" ? {} : request;
45
+ const input$ = request;
46
46
 
47
47
  const parsed$ = schemas$.safeParse(
48
48
  input$,
@@ -2,7 +2,6 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
6
5
  import { UnifiedToCore } from "../core.js";
7
6
  import {
8
7
  encodeJSON as encodeJSON$,
@@ -25,16 +24,24 @@ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
25
24
  import * as operations from "../sdk/models/operations/index.js";
26
25
  import { Result } from "../sdk/types/fp.js";
27
26
 
27
+ export enum CreatePassthroughJsonAcceptEnum {
28
+ applicationJson = "application/json",
29
+ textPlain = "text/plain",
30
+ wildcardWildcard = "*/*",
31
+ }
32
+
28
33
  /**
29
34
  * Passthrough POST
30
35
  */
31
- export async function passthroughCreatePassthrough(
36
+ export async function passthroughCreatePassthroughJson(
32
37
  client$: UnifiedToCore,
33
- request: operations.CreatePassthroughRequest,
34
- options?: RequestOptions,
38
+ request: operations.CreatePassthroughJsonRequest,
39
+ options?: RequestOptions & {
40
+ acceptHeaderOverride?: CreatePassthroughJsonAcceptEnum;
41
+ },
35
42
  ): Promise<
36
43
  Result<
37
- { [k: string]: any },
44
+ operations.CreatePassthroughJsonResponse | undefined,
38
45
  | SDKError
39
46
  | SDKValidationError
40
47
  | UnexpectedClientError
@@ -49,7 +56,7 @@ export async function passthroughCreatePassthrough(
49
56
  const parsed$ = schemas$.safeParse(
50
57
  input$,
51
58
  (value$) =>
52
- operations.CreatePassthroughRequest$outboundSchema.parse(value$),
59
+ operations.CreatePassthroughJsonRequest$outboundSchema.parse(value$),
53
60
  "Input validation failed",
54
61
  );
55
62
  if (!parsed$.ok) {
@@ -73,12 +80,13 @@ export async function passthroughCreatePassthrough(
73
80
 
74
81
  const headers$ = new Headers({
75
82
  "Content-Type": "application/json",
76
- Accept: "application/json",
83
+ Accept: options?.acceptHeaderOverride
84
+ || "application/json;q=1, text/plain;q=0.7, */*;q=0",
77
85
  });
78
86
 
79
87
  const security$ = await extractSecurity(client$.options$.security);
80
88
  const context = {
81
- operationID: "createPassthrough",
89
+ operationID: "createPassthrough_json",
82
90
  oAuth2Scopes: [],
83
91
  securitySource: client$.options$.security,
84
92
  };
@@ -109,8 +117,12 @@ export async function passthroughCreatePassthrough(
109
117
  }
110
118
  const response = doResult.value;
111
119
 
120
+ const responseFields$ = {
121
+ HttpMeta: { Response: response, Request: request$ },
122
+ };
123
+
112
124
  const [result$] = await m$.match<
113
- { [k: string]: any },
125
+ operations.CreatePassthroughJsonResponse | undefined,
114
126
  | SDKError
115
127
  | SDKValidationError
116
128
  | UnexpectedClientError
@@ -119,9 +131,28 @@ export async function passthroughCreatePassthrough(
119
131
  | RequestTimeoutError
120
132
  | ConnectionError
121
133
  >(
122
- m$.json("2XX", z.record(z.any())),
134
+ m$.nil(
135
+ [204, 205, 304],
136
+ operations.CreatePassthroughJsonResponse$inboundSchema.optional(),
137
+ { hdrs: true },
138
+ ),
139
+ m$.bytes(
140
+ "2XX",
141
+ operations.CreatePassthroughJsonResponse$inboundSchema.optional(),
142
+ { ctype: "*/*", key: "Result" },
143
+ ),
144
+ m$.json(
145
+ "2XX",
146
+ operations.CreatePassthroughJsonResponse$inboundSchema.optional(),
147
+ { key: "Result" },
148
+ ),
149
+ m$.text(
150
+ "2XX",
151
+ operations.CreatePassthroughJsonResponse$inboundSchema.optional(),
152
+ { key: "Result" },
153
+ ),
123
154
  m$.fail(["4XX", "5XX"]),
124
- )(response);
155
+ )(response, { extraFields: responseFields$ });
125
156
  if (!result$.ok) {
126
157
  return result$;
127
158
  }
@@ -0,0 +1,158 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { UnifiedToCore } from "../core.js";
6
+ import { encodeSimple as encodeSimple$ } from "../lib/encodings.js";
7
+ import * as m$ from "../lib/matchers.js";
8
+ import * as schemas$ from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import {
13
+ ConnectionError,
14
+ InvalidRequestError,
15
+ RequestAbortedError,
16
+ RequestTimeoutError,
17
+ UnexpectedClientError,
18
+ } from "../sdk/models/errors/httpclienterrors.js";
19
+ import { SDKError } from "../sdk/models/errors/sdkerror.js";
20
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
21
+ import * as operations from "../sdk/models/operations/index.js";
22
+ import { Result } from "../sdk/types/fp.js";
23
+
24
+ export enum CreatePassthroughRawAcceptEnum {
25
+ applicationJson = "application/json",
26
+ textPlain = "text/plain",
27
+ wildcardWildcard = "*/*",
28
+ }
29
+
30
+ /**
31
+ * Passthrough POST
32
+ */
33
+ export async function passthroughCreatePassthroughRaw(
34
+ client$: UnifiedToCore,
35
+ request: operations.CreatePassthroughRawRequest,
36
+ options?: RequestOptions & {
37
+ acceptHeaderOverride?: CreatePassthroughRawAcceptEnum;
38
+ },
39
+ ): Promise<
40
+ Result<
41
+ operations.CreatePassthroughRawResponse | undefined,
42
+ | SDKError
43
+ | SDKValidationError
44
+ | UnexpectedClientError
45
+ | InvalidRequestError
46
+ | RequestAbortedError
47
+ | RequestTimeoutError
48
+ | ConnectionError
49
+ >
50
+ > {
51
+ const input$ = request;
52
+
53
+ const parsed$ = schemas$.safeParse(
54
+ input$,
55
+ (value$) =>
56
+ operations.CreatePassthroughRawRequest$outboundSchema.parse(value$),
57
+ "Input validation failed",
58
+ );
59
+ if (!parsed$.ok) {
60
+ return parsed$;
61
+ }
62
+ const payload$ = parsed$.value;
63
+ const body$ = payload$.RequestBody;
64
+
65
+ const pathParams$ = {
66
+ connection_id: encodeSimple$("connection_id", payload$.connection_id, {
67
+ explode: false,
68
+ charEncoding: "percent",
69
+ }),
70
+ path: encodeSimple$("path", payload$.path, {
71
+ explode: false,
72
+ charEncoding: "percent",
73
+ }),
74
+ };
75
+
76
+ const path$ = pathToFunc("/passthrough/{connection_id}/{path}")(pathParams$);
77
+
78
+ const headers$ = new Headers({
79
+ "Content-Type": "text/plain",
80
+ Accept: options?.acceptHeaderOverride
81
+ || "application/json;q=1, text/plain;q=0.7, */*;q=0",
82
+ });
83
+
84
+ const security$ = await extractSecurity(client$.options$.security);
85
+ const context = {
86
+ operationID: "createPassthrough_raw",
87
+ oAuth2Scopes: [],
88
+ securitySource: client$.options$.security,
89
+ };
90
+ const securitySettings$ = resolveGlobalSecurity(security$);
91
+
92
+ const requestRes = client$.createRequest$(context, {
93
+ security: securitySettings$,
94
+ method: "POST",
95
+ path: path$,
96
+ headers: headers$,
97
+ body: body$,
98
+ timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
99
+ }, options);
100
+ if (!requestRes.ok) {
101
+ return requestRes;
102
+ }
103
+ const request$ = requestRes.value;
104
+
105
+ const doResult = await client$.do$(request$, {
106
+ context,
107
+ errorCodes: ["4XX", "5XX"],
108
+ retryConfig: options?.retries
109
+ || client$.options$.retryConfig,
110
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
111
+ });
112
+ if (!doResult.ok) {
113
+ return doResult;
114
+ }
115
+ const response = doResult.value;
116
+
117
+ const responseFields$ = {
118
+ HttpMeta: { Response: response, Request: request$ },
119
+ };
120
+
121
+ const [result$] = await m$.match<
122
+ operations.CreatePassthroughRawResponse | undefined,
123
+ | SDKError
124
+ | SDKValidationError
125
+ | UnexpectedClientError
126
+ | InvalidRequestError
127
+ | RequestAbortedError
128
+ | RequestTimeoutError
129
+ | ConnectionError
130
+ >(
131
+ m$.nil(
132
+ [204, 205, 304],
133
+ operations.CreatePassthroughRawResponse$inboundSchema.optional(),
134
+ { hdrs: true },
135
+ ),
136
+ m$.bytes(
137
+ "2XX",
138
+ operations.CreatePassthroughRawResponse$inboundSchema.optional(),
139
+ { ctype: "*/*", key: "Result" },
140
+ ),
141
+ m$.json(
142
+ "2XX",
143
+ operations.CreatePassthroughRawResponse$inboundSchema.optional(),
144
+ { key: "Result" },
145
+ ),
146
+ m$.text(
147
+ "2XX",
148
+ operations.CreatePassthroughRawResponse$inboundSchema.optional(),
149
+ { key: "Result" },
150
+ ),
151
+ m$.fail(["4XX", "5XX"]),
152
+ )(response, { extraFields: responseFields$ });
153
+ if (!result$.ok) {
154
+ return result$;
155
+ }
156
+
157
+ return result$;
158
+ }
@@ -2,7 +2,6 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
6
5
  import { UnifiedToCore } from "../core.js";
7
6
  import { encodeSimple as encodeSimple$ } from "../lib/encodings.js";
8
7
  import * as m$ from "../lib/matchers.js";
@@ -22,16 +21,24 @@ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
22
21
  import * as operations from "../sdk/models/operations/index.js";
23
22
  import { Result } from "../sdk/types/fp.js";
24
23
 
24
+ export enum ListPassthroughsAcceptEnum {
25
+ applicationJson = "application/json",
26
+ textPlain = "text/plain",
27
+ wildcardWildcard = "*/*",
28
+ }
29
+
25
30
  /**
26
31
  * Passthrough GET
27
32
  */
28
33
  export async function passthroughListPassthroughs(
29
34
  client$: UnifiedToCore,
30
35
  request: operations.ListPassthroughsRequest,
31
- options?: RequestOptions,
36
+ options?: RequestOptions & {
37
+ acceptHeaderOverride?: ListPassthroughsAcceptEnum;
38
+ },
32
39
  ): Promise<
33
40
  Result<
34
- { [k: string]: any },
41
+ operations.ListPassthroughsResponse | undefined,
35
42
  | SDKError
36
43
  | SDKValidationError
37
44
  | UnexpectedClientError
@@ -68,7 +75,8 @@ export async function passthroughListPassthroughs(
68
75
  const path$ = pathToFunc("/passthrough/{connection_id}/{path}")(pathParams$);
69
76
 
70
77
  const headers$ = new Headers({
71
- Accept: "application/json",
78
+ Accept: options?.acceptHeaderOverride
79
+ || "application/json;q=1, text/plain;q=0.7, */*;q=0",
72
80
  });
73
81
 
74
82
  const security$ = await extractSecurity(client$.options$.security);
@@ -104,8 +112,12 @@ export async function passthroughListPassthroughs(
104
112
  }
105
113
  const response = doResult.value;
106
114
 
115
+ const responseFields$ = {
116
+ HttpMeta: { Response: response, Request: request$ },
117
+ };
118
+
107
119
  const [result$] = await m$.match<
108
- { [k: string]: any },
120
+ operations.ListPassthroughsResponse | undefined,
109
121
  | SDKError
110
122
  | SDKValidationError
111
123
  | UnexpectedClientError
@@ -114,9 +126,28 @@ export async function passthroughListPassthroughs(
114
126
  | RequestTimeoutError
115
127
  | ConnectionError
116
128
  >(
117
- m$.json("2XX", z.record(z.any())),
129
+ m$.nil(
130
+ [204, 205, 304],
131
+ operations.ListPassthroughsResponse$inboundSchema.optional(),
132
+ { hdrs: true },
133
+ ),
134
+ m$.bytes(
135
+ "2XX",
136
+ operations.ListPassthroughsResponse$inboundSchema.optional(),
137
+ { ctype: "*/*", key: "Result" },
138
+ ),
139
+ m$.json(
140
+ "2XX",
141
+ operations.ListPassthroughsResponse$inboundSchema.optional(),
142
+ { key: "Result" },
143
+ ),
144
+ m$.text(
145
+ "2XX",
146
+ operations.ListPassthroughsResponse$inboundSchema.optional(),
147
+ { key: "Result" },
148
+ ),
118
149
  m$.fail(["4XX", "5XX"]),
119
- )(response);
150
+ )(response, { extraFields: responseFields$ });
120
151
  if (!result$.ok) {
121
152
  return result$;
122
153
  }