@orq-ai/node 4.17.13 → 4.17.15

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 (131) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/lib/config.js.map +1 -1
  5. package/models/components/reasoningpart.js +1 -1
  6. package/models/operations/createtool.js +4 -4
  7. package/models/operations/getalltools.js +4 -4
  8. package/models/operations/getv2humanevalsets.js +2 -2
  9. package/models/operations/getv2humanevalsetsid.js +2 -2
  10. package/models/operations/listdeploymentversions.js +1 -1
  11. package/models/operations/patchv2humanevalsetsid.js +2 -2
  12. package/models/operations/postv2humanevalsets.js +2 -2
  13. package/models/operations/retrievetool.js +4 -4
  14. package/models/operations/runagent.js +1 -1
  15. package/models/operations/streamrunagent.js +1 -1
  16. package/models/operations/updatetool.js +4 -4
  17. package/package.json +5 -5
  18. package/packages/orq-rc/src/lib/config.ts +3 -3
  19. package/packages/orq-rc/src/models/components/budgetscope.ts +2 -2
  20. package/packages/orq-rc/src/models/components/budgetscoperestresponse.ts +2 -2
  21. package/packages/orq-rc/src/models/components/budgetusage.ts +1 -4
  22. package/packages/orq-rc/src/models/components/classifypromptcacheoptions.ts +76 -0
  23. package/packages/orq-rc/src/models/components/createmcpgatewayrequest.ts +11 -0
  24. package/packages/orq-rc/src/models/components/index.ts +2 -27
  25. package/packages/orq-rc/src/models/components/mcpauthconfig.ts +67 -10
  26. package/packages/orq-rc/src/models/components/mcpauthconfigoutput.ts +57 -8
  27. package/packages/orq-rc/src/models/components/mcpgateway.ts +15 -0
  28. package/packages/orq-rc/src/models/components/mcpoauthconfig.ts +19 -1
  29. package/packages/orq-rc/src/models/components/mcpoauthconfigoutput.ts +17 -1
  30. package/packages/orq-rc/src/models/components/modelmetadata.ts +6 -0
  31. package/packages/orq-rc/src/models/components/openaipromptcacheoptions.ts +13 -8
  32. package/packages/orq-rc/src/models/components/providerbudgetscope.ts +2 -2
  33. package/packages/orq-rc/src/models/components/querylogsresponse.ts +1 -1
  34. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  35. package/packages/orq-rc/src/models/components/spansummary.ts +29 -5
  36. package/packages/orq-rc/src/models/components/thinkingconfigadaptiveschema.ts +32 -0
  37. package/packages/orq-rc/src/models/components/thinkingconfigbetweentoolsschema.ts +104 -0
  38. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +27 -0
  39. package/packages/orq-rc/src/models/components/thinkingparam.ts +7 -6
  40. package/packages/orq-rc/src/models/components/updatemcpgatewayrequest.ts +11 -0
  41. package/packages/orq-rc/src/models/components/updateworkspacerequest.ts +4 -0
  42. package/packages/orq-rc/src/models/operations/createagentrequest.ts +26 -6
  43. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +8 -2
  44. package/packages/orq-rc/src/models/operations/createclassify.ts +25 -11
  45. package/packages/orq-rc/src/models/operations/createcompletion.ts +8 -2
  46. package/packages/orq-rc/src/models/operations/createdecisions.ts +25 -11
  47. package/packages/orq-rc/src/models/operations/createprompt.ts +13 -3
  48. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  49. package/packages/orq-rc/src/models/operations/getallprompts.ts +5 -1
  50. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  51. package/packages/orq-rc/src/models/operations/getoneprompt.ts +5 -1
  52. package/packages/orq-rc/src/models/operations/getpromptversion.ts +5 -1
  53. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  54. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  55. package/packages/orq-rc/src/models/operations/index.ts +0 -10
  56. package/packages/orq-rc/src/models/operations/listagents.ts +10 -2
  57. package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +1 -1
  58. package/packages/orq-rc/src/models/operations/listpromptversions.ts +5 -1
  59. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  60. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  61. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +10 -2
  62. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  63. package/packages/orq-rc/src/models/operations/runagent.ts +17 -5
  64. package/packages/orq-rc/src/models/operations/streamrunagent.ts +17 -5
  65. package/packages/orq-rc/src/models/operations/updateagent.ts +26 -6
  66. package/packages/orq-rc/src/models/operations/updateprompt.ts +13 -3
  67. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  68. package/packages/orq-rc/src/sdk/sdk.ts +0 -6
  69. package/src/lib/config.ts +3 -3
  70. package/src/models/components/reasoningpart.ts +1 -1
  71. package/src/models/operations/createtool.ts +4 -4
  72. package/src/models/operations/getalltools.ts +4 -4
  73. package/src/models/operations/getv2humanevalsets.ts +2 -2
  74. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  75. package/src/models/operations/listdeploymentversions.ts +1 -1
  76. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  77. package/src/models/operations/postv2humanevalsets.ts +2 -2
  78. package/src/models/operations/retrievetool.ts +4 -4
  79. package/src/models/operations/runagent.ts +1 -1
  80. package/src/models/operations/streamrunagent.ts +1 -1
  81. package/src/models/operations/updatetool.ts +4 -4
  82. package/packages/orq-rc/src/funcs/wikisCreate.ts +0 -165
  83. package/packages/orq-rc/src/funcs/wikisDelete.ts +0 -171
  84. package/packages/orq-rc/src/funcs/wikisGet.ts +0 -171
  85. package/packages/orq-rc/src/funcs/wikisGetPage.ts +0 -177
  86. package/packages/orq-rc/src/funcs/wikisGetTree.ts +0 -171
  87. package/packages/orq-rc/src/funcs/wikisInspectRepository.ts +0 -166
  88. package/packages/orq-rc/src/funcs/wikisList.ts +0 -176
  89. package/packages/orq-rc/src/funcs/wikisListRuns.ts +0 -176
  90. package/packages/orq-rc/src/funcs/wikisRefresh.ts +0 -174
  91. package/packages/orq-rc/src/funcs/wikisSearch.ts +0 -177
  92. package/packages/orq-rc/src/funcs/wikisUpdate.ts +0 -172
  93. package/packages/orq-rc/src/funcs/wikisUpdatePage.ts +0 -174
  94. package/packages/orq-rc/src/models/components/createwikirequest.ts +0 -67
  95. package/packages/orq-rc/src/models/components/createwikiresponse.ts +0 -32
  96. package/packages/orq-rc/src/models/components/deletewikiresponse.ts +0 -27
  97. package/packages/orq-rc/src/models/components/getwikipageresponse.ts +0 -32
  98. package/packages/orq-rc/src/models/components/getwikiresponse.ts +0 -32
  99. package/packages/orq-rc/src/models/components/getwikitreeresponse.ts +0 -32
  100. package/packages/orq-rc/src/models/components/inspectrepositorywikirequest.ts +0 -45
  101. package/packages/orq-rc/src/models/components/inspectrepositorywikiresponse.ts +0 -38
  102. package/packages/orq-rc/src/models/components/listwikirunsresponse.ts +0 -32
  103. package/packages/orq-rc/src/models/components/listwikisresponse.ts +0 -39
  104. package/packages/orq-rc/src/models/components/mcpenterpriseauthconfig.ts +0 -72
  105. package/packages/orq-rc/src/models/components/mcpenterpriseauthconfigoutput.ts +0 -62
  106. package/packages/orq-rc/src/models/components/refreshwikirequest.ts +0 -31
  107. package/packages/orq-rc/src/models/components/refreshwikiresponse.ts +0 -32
  108. package/packages/orq-rc/src/models/components/searchwikiresponse.ts +0 -32
  109. package/packages/orq-rc/src/models/components/updatewikipagerequest.ts +0 -42
  110. package/packages/orq-rc/src/models/components/updatewikipageresponse.ts +0 -32
  111. package/packages/orq-rc/src/models/components/updatewikirequest.ts +0 -48
  112. package/packages/orq-rc/src/models/components/updatewikiresponse.ts +0 -32
  113. package/packages/orq-rc/src/models/components/wiki.ts +0 -91
  114. package/packages/orq-rc/src/models/components/wikipage.ts +0 -58
  115. package/packages/orq-rc/src/models/components/wikirepository.ts +0 -72
  116. package/packages/orq-rc/src/models/components/wikirun.ts +0 -71
  117. package/packages/orq-rc/src/models/components/wikirunstats.ts +0 -44
  118. package/packages/orq-rc/src/models/components/wikisearchhit.ts +0 -45
  119. package/packages/orq-rc/src/models/components/wikisettings.ts +0 -76
  120. package/packages/orq-rc/src/models/components/wikitreepage.ts +0 -47
  121. package/packages/orq-rc/src/models/operations/deletewiki.ts +0 -36
  122. package/packages/orq-rc/src/models/operations/getwiki.ts +0 -32
  123. package/packages/orq-rc/src/models/operations/getwikipage.ts +0 -43
  124. package/packages/orq-rc/src/models/operations/getwikitree.ts +0 -36
  125. package/packages/orq-rc/src/models/operations/listwikiruns.ts +0 -39
  126. package/packages/orq-rc/src/models/operations/listwikis.ts +0 -54
  127. package/packages/orq-rc/src/models/operations/refreshwiki.ts +0 -41
  128. package/packages/orq-rc/src/models/operations/searchwiki.ts +0 -42
  129. package/packages/orq-rc/src/models/operations/updatewiki.ts +0 -41
  130. package/packages/orq-rc/src/models/operations/updatewikipage.ts +0 -41
  131. package/packages/orq-rc/src/sdk/wikis.ts +0 -154
@@ -1,172 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { OrqCore } from "../core.js";
6
- import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
- import { matchStatusCode } from "../lib/http.js";
8
- import * as M from "../lib/matchers.js";
9
- import { compactMap } from "../lib/primitives.js";
10
- import { safeParse } from "../lib/schemas.js";
11
- import { RequestOptions } from "../lib/sdks.js";
12
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
- import { pathToFunc } from "../lib/url.js";
14
- import * as components from "../models/components/index.js";
15
- import {
16
- ConnectionError,
17
- InvalidRequestError,
18
- RequestAbortedError,
19
- RequestTimeoutError,
20
- UnexpectedClientError,
21
- } from "../models/errors/httpclienterrors.js";
22
- import * as errors from "../models/errors/index.js";
23
- import { OrqError } from "../models/errors/orqerror.js";
24
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
25
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
26
- import * as operations from "../models/operations/index.js";
27
- import { APICall, APIPromise } from "../types/async.js";
28
- import { Result } from "../types/fp.js";
29
-
30
- export function wikisUpdate(
31
- client: OrqCore,
32
- request: operations.UpdateWikiRequest,
33
- options?: RequestOptions,
34
- ): APIPromise<
35
- Result<
36
- components.UpdateWikiResponse,
37
- | errors.ErrorResponse
38
- | OrqError
39
- | ResponseValidationError
40
- | ConnectionError
41
- | RequestAbortedError
42
- | RequestTimeoutError
43
- | InvalidRequestError
44
- | UnexpectedClientError
45
- | SDKValidationError
46
- >
47
- > {
48
- return new APIPromise($do(
49
- client,
50
- request,
51
- options,
52
- ));
53
- }
54
-
55
- async function $do(
56
- client: OrqCore,
57
- request: operations.UpdateWikiRequest,
58
- options?: RequestOptions,
59
- ): Promise<
60
- [
61
- Result<
62
- components.UpdateWikiResponse,
63
- | errors.ErrorResponse
64
- | OrqError
65
- | ResponseValidationError
66
- | ConnectionError
67
- | RequestAbortedError
68
- | RequestTimeoutError
69
- | InvalidRequestError
70
- | UnexpectedClientError
71
- | SDKValidationError
72
- >,
73
- APICall,
74
- ]
75
- > {
76
- const parsed = safeParse(
77
- request,
78
- (value) => operations.UpdateWikiRequest$outboundSchema.parse(value),
79
- "Input validation failed",
80
- );
81
- if (!parsed.ok) {
82
- return [parsed, { status: "invalid" }];
83
- }
84
- const payload = parsed.value;
85
- const body = encodeJSON("body", payload.UpdateWikiRequest, { explode: true });
86
-
87
- const pathParams = {
88
- wiki_id: encodeSimple("wiki_id", payload.wiki_id, {
89
- explode: false,
90
- charEncoding: "percent",
91
- }),
92
- };
93
- const path = pathToFunc("/v2/wikis/{wiki_id}")(pathParams);
94
-
95
- const headers = new Headers(compactMap({
96
- "Content-Type": "application/json",
97
- Accept: "application/json",
98
- }));
99
-
100
- const secConfig = await extractSecurity(client._options.apiKey);
101
- const securityInput = secConfig == null ? {} : { apiKey: secConfig };
102
- const requestSecurity = resolveGlobalSecurity(securityInput);
103
-
104
- const context = {
105
- options: client._options,
106
- baseURL: options?.serverURL ?? client._baseURL ?? "",
107
- operationID: "UpdateWiki",
108
- oAuth2Scopes: null,
109
-
110
- resolvedSecurity: requestSecurity,
111
-
112
- securitySource: client._options.apiKey,
113
- retryConfig: options?.retries
114
- || client._options.retryConfig
115
- || { strategy: "none" },
116
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
117
- };
118
-
119
- const requestRes = client._createRequest(context, {
120
- security: requestSecurity,
121
- method: "PATCH",
122
- baseURL: options?.serverURL,
123
- path: path,
124
- headers: headers,
125
- body: body,
126
- userAgent: client._options.userAgent,
127
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
128
- }, options);
129
- if (!requestRes.ok) {
130
- return [requestRes, { status: "invalid" }];
131
- }
132
- const req = requestRes.value;
133
-
134
- const doResult = await client._do(req, {
135
- context,
136
- isErrorStatusCode: (statusCode: number) =>
137
- matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
138
- retryConfig: context.retryConfig,
139
- retryCodes: context.retryCodes,
140
- });
141
- if (!doResult.ok) {
142
- return [doResult, { status: "request-error", request: req }];
143
- }
144
- const response = doResult.value;
145
-
146
- const responseFields = {
147
- HttpMeta: { Response: response, Request: req },
148
- };
149
-
150
- const [result] = await M.match<
151
- components.UpdateWikiResponse,
152
- | errors.ErrorResponse
153
- | OrqError
154
- | ResponseValidationError
155
- | ConnectionError
156
- | RequestAbortedError
157
- | RequestTimeoutError
158
- | InvalidRequestError
159
- | UnexpectedClientError
160
- | SDKValidationError
161
- >(
162
- M.json(200, components.UpdateWikiResponse$inboundSchema),
163
- M.jsonErr(401, errors.ErrorResponse$inboundSchema),
164
- M.fail("4XX"),
165
- M.fail("5XX"),
166
- )(response, req, { extraFields: responseFields });
167
- if (!result.ok) {
168
- return [result, { status: "complete", request: req, response }];
169
- }
170
-
171
- return [result, { status: "complete", request: req, response }];
172
- }
@@ -1,174 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { OrqCore } from "../core.js";
6
- import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
- import { matchStatusCode } from "../lib/http.js";
8
- import * as M from "../lib/matchers.js";
9
- import { compactMap } from "../lib/primitives.js";
10
- import { safeParse } from "../lib/schemas.js";
11
- import { RequestOptions } from "../lib/sdks.js";
12
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
- import { pathToFunc } from "../lib/url.js";
14
- import * as components from "../models/components/index.js";
15
- import {
16
- ConnectionError,
17
- InvalidRequestError,
18
- RequestAbortedError,
19
- RequestTimeoutError,
20
- UnexpectedClientError,
21
- } from "../models/errors/httpclienterrors.js";
22
- import * as errors from "../models/errors/index.js";
23
- import { OrqError } from "../models/errors/orqerror.js";
24
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
25
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
26
- import * as operations from "../models/operations/index.js";
27
- import { APICall, APIPromise } from "../types/async.js";
28
- import { Result } from "../types/fp.js";
29
-
30
- export function wikisUpdatePage(
31
- client: OrqCore,
32
- request: operations.UpdateWikiPageRequest,
33
- options?: RequestOptions,
34
- ): APIPromise<
35
- Result<
36
- components.UpdateWikiPageResponse,
37
- | errors.ErrorResponse
38
- | OrqError
39
- | ResponseValidationError
40
- | ConnectionError
41
- | RequestAbortedError
42
- | RequestTimeoutError
43
- | InvalidRequestError
44
- | UnexpectedClientError
45
- | SDKValidationError
46
- >
47
- > {
48
- return new APIPromise($do(
49
- client,
50
- request,
51
- options,
52
- ));
53
- }
54
-
55
- async function $do(
56
- client: OrqCore,
57
- request: operations.UpdateWikiPageRequest,
58
- options?: RequestOptions,
59
- ): Promise<
60
- [
61
- Result<
62
- components.UpdateWikiPageResponse,
63
- | errors.ErrorResponse
64
- | OrqError
65
- | ResponseValidationError
66
- | ConnectionError
67
- | RequestAbortedError
68
- | RequestTimeoutError
69
- | InvalidRequestError
70
- | UnexpectedClientError
71
- | SDKValidationError
72
- >,
73
- APICall,
74
- ]
75
- > {
76
- const parsed = safeParse(
77
- request,
78
- (value) => operations.UpdateWikiPageRequest$outboundSchema.parse(value),
79
- "Input validation failed",
80
- );
81
- if (!parsed.ok) {
82
- return [parsed, { status: "invalid" }];
83
- }
84
- const payload = parsed.value;
85
- const body = encodeJSON("body", payload.UpdateWikiPageRequest, {
86
- explode: true,
87
- });
88
-
89
- const pathParams = {
90
- wiki_id: encodeSimple("wiki_id", payload.wiki_id, {
91
- explode: false,
92
- charEncoding: "percent",
93
- }),
94
- };
95
- const path = pathToFunc("/v2/wikis/{wiki_id}/page")(pathParams);
96
-
97
- const headers = new Headers(compactMap({
98
- "Content-Type": "application/json",
99
- Accept: "application/json",
100
- }));
101
-
102
- const secConfig = await extractSecurity(client._options.apiKey);
103
- const securityInput = secConfig == null ? {} : { apiKey: secConfig };
104
- const requestSecurity = resolveGlobalSecurity(securityInput);
105
-
106
- const context = {
107
- options: client._options,
108
- baseURL: options?.serverURL ?? client._baseURL ?? "",
109
- operationID: "UpdateWikiPage",
110
- oAuth2Scopes: null,
111
-
112
- resolvedSecurity: requestSecurity,
113
-
114
- securitySource: client._options.apiKey,
115
- retryConfig: options?.retries
116
- || client._options.retryConfig
117
- || { strategy: "none" },
118
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
119
- };
120
-
121
- const requestRes = client._createRequest(context, {
122
- security: requestSecurity,
123
- method: "PATCH",
124
- baseURL: options?.serverURL,
125
- path: path,
126
- headers: headers,
127
- body: body,
128
- userAgent: client._options.userAgent,
129
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
130
- }, options);
131
- if (!requestRes.ok) {
132
- return [requestRes, { status: "invalid" }];
133
- }
134
- const req = requestRes.value;
135
-
136
- const doResult = await client._do(req, {
137
- context,
138
- isErrorStatusCode: (statusCode: number) =>
139
- matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
140
- retryConfig: context.retryConfig,
141
- retryCodes: context.retryCodes,
142
- });
143
- if (!doResult.ok) {
144
- return [doResult, { status: "request-error", request: req }];
145
- }
146
- const response = doResult.value;
147
-
148
- const responseFields = {
149
- HttpMeta: { Response: response, Request: req },
150
- };
151
-
152
- const [result] = await M.match<
153
- components.UpdateWikiPageResponse,
154
- | errors.ErrorResponse
155
- | OrqError
156
- | ResponseValidationError
157
- | ConnectionError
158
- | RequestAbortedError
159
- | RequestTimeoutError
160
- | InvalidRequestError
161
- | UnexpectedClientError
162
- | SDKValidationError
163
- >(
164
- M.json(200, components.UpdateWikiPageResponse$inboundSchema),
165
- M.jsonErr(401, errors.ErrorResponse$inboundSchema),
166
- M.fail("4XX"),
167
- M.fail("5XX"),
168
- )(response, req, { extraFields: responseFields });
169
- if (!result.ok) {
170
- return [result, { status: "complete", request: req, response }];
171
- }
172
-
173
- return [result, { status: "complete", request: req, response }];
174
- }
@@ -1,67 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import {
8
- WikiRepository,
9
- WikiRepository$Outbound,
10
- WikiRepository$outboundSchema,
11
- } from "./wikirepository.js";
12
- import {
13
- WikiSettings,
14
- WikiSettings$Outbound,
15
- WikiSettings$outboundSchema,
16
- } from "./wikisettings.js";
17
-
18
- export type CreateWikiRequest = {
19
- displayName?: string | undefined;
20
- repository?: WikiRepository | undefined;
21
- branch?: string | undefined;
22
- scmConnectionId?: string | undefined;
23
- settings?: WikiSettings | undefined;
24
- importExisting?: boolean | undefined;
25
- factoryId?: string | undefined;
26
- };
27
-
28
- /** @internal */
29
- export type CreateWikiRequest$Outbound = {
30
- display_name?: string | undefined;
31
- repository?: WikiRepository$Outbound | undefined;
32
- branch?: string | undefined;
33
- scm_connection_id?: string | undefined;
34
- settings?: WikiSettings$Outbound | undefined;
35
- import_existing?: boolean | undefined;
36
- factory_id?: string | undefined;
37
- };
38
-
39
- /** @internal */
40
- export const CreateWikiRequest$outboundSchema: z.ZodType<
41
- CreateWikiRequest$Outbound,
42
- z.ZodTypeDef,
43
- CreateWikiRequest
44
- > = z.object({
45
- displayName: z.string().optional(),
46
- repository: WikiRepository$outboundSchema.optional(),
47
- branch: z.string().optional(),
48
- scmConnectionId: z.string().optional(),
49
- settings: WikiSettings$outboundSchema.optional(),
50
- importExisting: z.boolean().optional(),
51
- factoryId: z.string().optional(),
52
- }).transform((v) => {
53
- return remap$(v, {
54
- displayName: "display_name",
55
- scmConnectionId: "scm_connection_id",
56
- importExisting: "import_existing",
57
- factoryId: "factory_id",
58
- });
59
- });
60
-
61
- export function createWikiRequestToJSON(
62
- createWikiRequest: CreateWikiRequest,
63
- ): string {
64
- return JSON.stringify(
65
- CreateWikiRequest$outboundSchema.parse(createWikiRequest),
66
- );
67
- }
@@ -1,32 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import { Wiki, Wiki$inboundSchema } from "./wiki.js";
10
-
11
- export type CreateWikiResponse = {
12
- wiki?: Wiki | undefined;
13
- };
14
-
15
- /** @internal */
16
- export const CreateWikiResponse$inboundSchema: z.ZodType<
17
- CreateWikiResponse,
18
- z.ZodTypeDef,
19
- unknown
20
- > = z.object({
21
- wiki: Wiki$inboundSchema.optional(),
22
- });
23
-
24
- export function createWikiResponseFromJSON(
25
- jsonString: string,
26
- ): SafeParseResult<CreateWikiResponse, SDKValidationError> {
27
- return safeParse(
28
- jsonString,
29
- (x) => CreateWikiResponse$inboundSchema.parse(JSON.parse(x)),
30
- `Failed to parse 'CreateWikiResponse' from JSON`,
31
- );
32
- }
@@ -1,27 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
-
10
- export type DeleteWikiResponse = {};
11
-
12
- /** @internal */
13
- export const DeleteWikiResponse$inboundSchema: z.ZodType<
14
- DeleteWikiResponse,
15
- z.ZodTypeDef,
16
- unknown
17
- > = z.object({});
18
-
19
- export function deleteWikiResponseFromJSON(
20
- jsonString: string,
21
- ): SafeParseResult<DeleteWikiResponse, SDKValidationError> {
22
- return safeParse(
23
- jsonString,
24
- (x) => DeleteWikiResponse$inboundSchema.parse(JSON.parse(x)),
25
- `Failed to parse 'DeleteWikiResponse' from JSON`,
26
- );
27
- }
@@ -1,32 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import { WikiPage, WikiPage$inboundSchema } from "./wikipage.js";
10
-
11
- export type GetWikiPageResponse = {
12
- page?: WikiPage | undefined;
13
- };
14
-
15
- /** @internal */
16
- export const GetWikiPageResponse$inboundSchema: z.ZodType<
17
- GetWikiPageResponse,
18
- z.ZodTypeDef,
19
- unknown
20
- > = z.object({
21
- page: WikiPage$inboundSchema.optional(),
22
- });
23
-
24
- export function getWikiPageResponseFromJSON(
25
- jsonString: string,
26
- ): SafeParseResult<GetWikiPageResponse, SDKValidationError> {
27
- return safeParse(
28
- jsonString,
29
- (x) => GetWikiPageResponse$inboundSchema.parse(JSON.parse(x)),
30
- `Failed to parse 'GetWikiPageResponse' from JSON`,
31
- );
32
- }
@@ -1,32 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import { Wiki, Wiki$inboundSchema } from "./wiki.js";
10
-
11
- export type GetWikiResponse = {
12
- wiki?: Wiki | undefined;
13
- };
14
-
15
- /** @internal */
16
- export const GetWikiResponse$inboundSchema: z.ZodType<
17
- GetWikiResponse,
18
- z.ZodTypeDef,
19
- unknown
20
- > = z.object({
21
- wiki: Wiki$inboundSchema.optional(),
22
- });
23
-
24
- export function getWikiResponseFromJSON(
25
- jsonString: string,
26
- ): SafeParseResult<GetWikiResponse, SDKValidationError> {
27
- return safeParse(
28
- jsonString,
29
- (x) => GetWikiResponse$inboundSchema.parse(JSON.parse(x)),
30
- `Failed to parse 'GetWikiResponse' from JSON`,
31
- );
32
- }
@@ -1,32 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import { WikiTreePage, WikiTreePage$inboundSchema } from "./wikitreepage.js";
10
-
11
- export type GetWikiTreeResponse = {
12
- pages?: Array<WikiTreePage> | undefined;
13
- };
14
-
15
- /** @internal */
16
- export const GetWikiTreeResponse$inboundSchema: z.ZodType<
17
- GetWikiTreeResponse,
18
- z.ZodTypeDef,
19
- unknown
20
- > = z.object({
21
- pages: z.array(WikiTreePage$inboundSchema).optional(),
22
- });
23
-
24
- export function getWikiTreeResponseFromJSON(
25
- jsonString: string,
26
- ): SafeParseResult<GetWikiTreeResponse, SDKValidationError> {
27
- return safeParse(
28
- jsonString,
29
- (x) => GetWikiTreeResponse$inboundSchema.parse(JSON.parse(x)),
30
- `Failed to parse 'GetWikiTreeResponse' from JSON`,
31
- );
32
- }
@@ -1,45 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
-
8
- export type InspectRepositoryWikiRequest = {
9
- scmConnectionId?: string | undefined;
10
- repositoryUrl?: string | undefined;
11
- branch?: string | undefined;
12
- };
13
-
14
- /** @internal */
15
- export type InspectRepositoryWikiRequest$Outbound = {
16
- scm_connection_id?: string | undefined;
17
- repository_url?: string | undefined;
18
- branch?: string | undefined;
19
- };
20
-
21
- /** @internal */
22
- export const InspectRepositoryWikiRequest$outboundSchema: z.ZodType<
23
- InspectRepositoryWikiRequest$Outbound,
24
- z.ZodTypeDef,
25
- InspectRepositoryWikiRequest
26
- > = z.object({
27
- scmConnectionId: z.string().optional(),
28
- repositoryUrl: z.string().optional(),
29
- branch: z.string().optional(),
30
- }).transform((v) => {
31
- return remap$(v, {
32
- scmConnectionId: "scm_connection_id",
33
- repositoryUrl: "repository_url",
34
- });
35
- });
36
-
37
- export function inspectRepositoryWikiRequestToJSON(
38
- inspectRepositoryWikiRequest: InspectRepositoryWikiRequest,
39
- ): string {
40
- return JSON.stringify(
41
- InspectRepositoryWikiRequest$outboundSchema.parse(
42
- inspectRepositoryWikiRequest,
43
- ),
44
- );
45
- }
@@ -1,38 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- export type InspectRepositoryWikiResponse = {
12
- available?: boolean | undefined;
13
- pageCount?: number | undefined;
14
- };
15
-
16
- /** @internal */
17
- export const InspectRepositoryWikiResponse$inboundSchema: z.ZodType<
18
- InspectRepositoryWikiResponse,
19
- z.ZodTypeDef,
20
- unknown
21
- > = z.object({
22
- available: z.boolean().optional(),
23
- page_count: z.number().int().optional(),
24
- }).transform((v) => {
25
- return remap$(v, {
26
- "page_count": "pageCount",
27
- });
28
- });
29
-
30
- export function inspectRepositoryWikiResponseFromJSON(
31
- jsonString: string,
32
- ): SafeParseResult<InspectRepositoryWikiResponse, SDKValidationError> {
33
- return safeParse(
34
- jsonString,
35
- (x) => InspectRepositoryWikiResponse$inboundSchema.parse(JSON.parse(x)),
36
- `Failed to parse 'InspectRepositoryWikiResponse' from JSON`,
37
- );
38
- }
@@ -1,32 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import { WikiRun, WikiRun$inboundSchema } from "./wikirun.js";
10
-
11
- export type ListWikiRunsResponse = {
12
- data?: Array<WikiRun> | undefined;
13
- };
14
-
15
- /** @internal */
16
- export const ListWikiRunsResponse$inboundSchema: z.ZodType<
17
- ListWikiRunsResponse,
18
- z.ZodTypeDef,
19
- unknown
20
- > = z.object({
21
- data: z.array(WikiRun$inboundSchema).optional(),
22
- });
23
-
24
- export function listWikiRunsResponseFromJSON(
25
- jsonString: string,
26
- ): SafeParseResult<ListWikiRunsResponse, SDKValidationError> {
27
- return safeParse(
28
- jsonString,
29
- (x) => ListWikiRunsResponse$inboundSchema.parse(JSON.parse(x)),
30
- `Failed to parse 'ListWikiRunsResponse' from JSON`,
31
- );
32
- }