@orq-ai/node 4.17.14 → 4.17.16

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 (105) 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/createmcpgatewayrequest.ts +11 -0
  20. package/packages/orq-rc/src/models/components/index.ts +0 -27
  21. package/packages/orq-rc/src/models/components/mcpauthconfig.ts +67 -10
  22. package/packages/orq-rc/src/models/components/mcpauthconfigoutput.ts +57 -8
  23. package/packages/orq-rc/src/models/components/mcpgateway.ts +15 -0
  24. package/packages/orq-rc/src/models/components/mcpoauthconfig.ts +19 -1
  25. package/packages/orq-rc/src/models/components/mcpoauthconfigoutput.ts +17 -1
  26. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  27. package/packages/orq-rc/src/models/components/spansummary.ts +22 -0
  28. package/packages/orq-rc/src/models/components/updatemcpgatewayrequest.ts +11 -0
  29. package/packages/orq-rc/src/models/components/updateworkspacerequest.ts +4 -0
  30. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  31. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  32. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  33. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  34. package/packages/orq-rc/src/models/operations/index.ts +0 -10
  35. package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +1 -1
  36. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  37. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  38. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  39. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  40. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  41. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  42. package/packages/orq-rc/src/sdk/sdk.ts +0 -6
  43. package/src/lib/config.ts +3 -3
  44. package/src/models/components/reasoningpart.ts +1 -1
  45. package/src/models/operations/createtool.ts +4 -4
  46. package/src/models/operations/getalltools.ts +4 -4
  47. package/src/models/operations/getv2humanevalsets.ts +2 -2
  48. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  49. package/src/models/operations/listdeploymentversions.ts +1 -1
  50. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  51. package/src/models/operations/postv2humanevalsets.ts +2 -2
  52. package/src/models/operations/retrievetool.ts +4 -4
  53. package/src/models/operations/runagent.ts +1 -1
  54. package/src/models/operations/streamrunagent.ts +1 -1
  55. package/src/models/operations/updatetool.ts +4 -4
  56. package/packages/orq-rc/src/funcs/wikisCreate.ts +0 -165
  57. package/packages/orq-rc/src/funcs/wikisDelete.ts +0 -171
  58. package/packages/orq-rc/src/funcs/wikisGet.ts +0 -171
  59. package/packages/orq-rc/src/funcs/wikisGetPage.ts +0 -177
  60. package/packages/orq-rc/src/funcs/wikisGetTree.ts +0 -171
  61. package/packages/orq-rc/src/funcs/wikisInspectRepository.ts +0 -166
  62. package/packages/orq-rc/src/funcs/wikisList.ts +0 -176
  63. package/packages/orq-rc/src/funcs/wikisListRuns.ts +0 -176
  64. package/packages/orq-rc/src/funcs/wikisRefresh.ts +0 -174
  65. package/packages/orq-rc/src/funcs/wikisSearch.ts +0 -177
  66. package/packages/orq-rc/src/funcs/wikisUpdate.ts +0 -172
  67. package/packages/orq-rc/src/funcs/wikisUpdatePage.ts +0 -174
  68. package/packages/orq-rc/src/models/components/createwikirequest.ts +0 -67
  69. package/packages/orq-rc/src/models/components/createwikiresponse.ts +0 -32
  70. package/packages/orq-rc/src/models/components/deletewikiresponse.ts +0 -27
  71. package/packages/orq-rc/src/models/components/getwikipageresponse.ts +0 -32
  72. package/packages/orq-rc/src/models/components/getwikiresponse.ts +0 -32
  73. package/packages/orq-rc/src/models/components/getwikitreeresponse.ts +0 -32
  74. package/packages/orq-rc/src/models/components/inspectrepositorywikirequest.ts +0 -45
  75. package/packages/orq-rc/src/models/components/inspectrepositorywikiresponse.ts +0 -38
  76. package/packages/orq-rc/src/models/components/listwikirunsresponse.ts +0 -32
  77. package/packages/orq-rc/src/models/components/listwikisresponse.ts +0 -39
  78. package/packages/orq-rc/src/models/components/mcpenterpriseauthconfig.ts +0 -72
  79. package/packages/orq-rc/src/models/components/mcpenterpriseauthconfigoutput.ts +0 -62
  80. package/packages/orq-rc/src/models/components/refreshwikirequest.ts +0 -31
  81. package/packages/orq-rc/src/models/components/refreshwikiresponse.ts +0 -32
  82. package/packages/orq-rc/src/models/components/searchwikiresponse.ts +0 -32
  83. package/packages/orq-rc/src/models/components/updatewikipagerequest.ts +0 -42
  84. package/packages/orq-rc/src/models/components/updatewikipageresponse.ts +0 -32
  85. package/packages/orq-rc/src/models/components/updatewikirequest.ts +0 -48
  86. package/packages/orq-rc/src/models/components/updatewikiresponse.ts +0 -32
  87. package/packages/orq-rc/src/models/components/wiki.ts +0 -91
  88. package/packages/orq-rc/src/models/components/wikipage.ts +0 -58
  89. package/packages/orq-rc/src/models/components/wikirepository.ts +0 -72
  90. package/packages/orq-rc/src/models/components/wikirun.ts +0 -71
  91. package/packages/orq-rc/src/models/components/wikirunstats.ts +0 -44
  92. package/packages/orq-rc/src/models/components/wikisearchhit.ts +0 -45
  93. package/packages/orq-rc/src/models/components/wikisettings.ts +0 -76
  94. package/packages/orq-rc/src/models/components/wikitreepage.ts +0 -47
  95. package/packages/orq-rc/src/models/operations/deletewiki.ts +0 -36
  96. package/packages/orq-rc/src/models/operations/getwiki.ts +0 -32
  97. package/packages/orq-rc/src/models/operations/getwikipage.ts +0 -43
  98. package/packages/orq-rc/src/models/operations/getwikitree.ts +0 -36
  99. package/packages/orq-rc/src/models/operations/listwikiruns.ts +0 -39
  100. package/packages/orq-rc/src/models/operations/listwikis.ts +0 -54
  101. package/packages/orq-rc/src/models/operations/refreshwiki.ts +0 -41
  102. package/packages/orq-rc/src/models/operations/searchwiki.ts +0 -42
  103. package/packages/orq-rc/src/models/operations/updatewiki.ts +0 -41
  104. package/packages/orq-rc/src/models/operations/updatewikipage.ts +0 -41
  105. package/packages/orq-rc/src/sdk/wikis.ts +0 -154
@@ -1,39 +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
- import { Wiki, Wiki$inboundSchema } from "./wiki.js";
11
-
12
- export type ListWikisResponse = {
13
- data?: Array<Wiki> | undefined;
14
- hasMore?: boolean | undefined;
15
- };
16
-
17
- /** @internal */
18
- export const ListWikisResponse$inboundSchema: z.ZodType<
19
- ListWikisResponse,
20
- z.ZodTypeDef,
21
- unknown
22
- > = z.object({
23
- data: z.array(Wiki$inboundSchema).optional(),
24
- has_more: z.boolean().optional(),
25
- }).transform((v) => {
26
- return remap$(v, {
27
- "has_more": "hasMore",
28
- });
29
- });
30
-
31
- export function listWikisResponseFromJSON(
32
- jsonString: string,
33
- ): SafeParseResult<ListWikisResponse, SDKValidationError> {
34
- return safeParse(
35
- jsonString,
36
- (x) => ListWikisResponse$inboundSchema.parse(JSON.parse(x)),
37
- `Failed to parse 'ListWikisResponse' from JSON`,
38
- );
39
- }
@@ -1,72 +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
- /**
9
- * McpEnterpriseAuthConfig is the client orq registered at the upstream's authorization
10
- *
11
- * @remarks
12
- * server for enterprise-managed authorization (ID-JAG). Access policy lives in the
13
- * workspace's SSO identity provider; users must sign in through SSO to use the server.
14
- */
15
- export type McpEnterpriseAuthConfig = {
16
- /**
17
- * RFC 9728 resource identifier the tokens are bound to; defaults to the connection URL.
18
- */
19
- resource?: string | undefined;
20
- /**
21
- * OAuth client identifier registered at the upstream authorization server.
22
- */
23
- clientId?: string | undefined;
24
- /**
25
- * OAuth client secret; accepted on write and never returned.
26
- */
27
- clientSecret?: string | undefined;
28
- /**
29
- * Redacted preview of `client_secret`, returned in its place.
30
- */
31
- maskedValue?: string | undefined;
32
- /**
33
- * Scopes requested when redeeming the identity assertion grant.
34
- */
35
- scopes?: Array<string> | undefined;
36
- };
37
-
38
- /** @internal */
39
- export type McpEnterpriseAuthConfig$Outbound = {
40
- resource?: string | undefined;
41
- client_id?: string | undefined;
42
- client_secret?: string | undefined;
43
- masked_value?: string | undefined;
44
- scopes?: Array<string> | undefined;
45
- };
46
-
47
- /** @internal */
48
- export const McpEnterpriseAuthConfig$outboundSchema: z.ZodType<
49
- McpEnterpriseAuthConfig$Outbound,
50
- z.ZodTypeDef,
51
- McpEnterpriseAuthConfig
52
- > = z.object({
53
- resource: z.string().optional(),
54
- clientId: z.string().optional(),
55
- clientSecret: z.string().optional(),
56
- maskedValue: z.string().optional(),
57
- scopes: z.array(z.string()).optional(),
58
- }).transform((v) => {
59
- return remap$(v, {
60
- clientId: "client_id",
61
- clientSecret: "client_secret",
62
- maskedValue: "masked_value",
63
- });
64
- });
65
-
66
- export function mcpEnterpriseAuthConfigToJSON(
67
- mcpEnterpriseAuthConfig: McpEnterpriseAuthConfig,
68
- ): string {
69
- return JSON.stringify(
70
- McpEnterpriseAuthConfig$outboundSchema.parse(mcpEnterpriseAuthConfig),
71
- );
72
- }
@@ -1,62 +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
- /**
12
- * McpEnterpriseAuthConfig is the client orq registered at the upstream's authorization
13
- *
14
- * @remarks
15
- * server for enterprise-managed authorization (ID-JAG). Access policy lives in the
16
- * workspace's SSO identity provider; users must sign in through SSO to use the server.
17
- */
18
- export type McpEnterpriseAuthConfigOutput = {
19
- /**
20
- * RFC 9728 resource identifier the tokens are bound to; defaults to the connection URL.
21
- */
22
- resource?: string | undefined;
23
- /**
24
- * OAuth client identifier registered at the upstream authorization server.
25
- */
26
- clientId?: string | undefined;
27
- /**
28
- * Redacted preview of `client_secret`, returned in its place.
29
- */
30
- maskedValue?: string | undefined;
31
- /**
32
- * Scopes requested when redeeming the identity assertion grant.
33
- */
34
- scopes?: Array<string> | undefined;
35
- };
36
-
37
- /** @internal */
38
- export const McpEnterpriseAuthConfigOutput$inboundSchema: z.ZodType<
39
- McpEnterpriseAuthConfigOutput,
40
- z.ZodTypeDef,
41
- unknown
42
- > = z.object({
43
- resource: z.string().optional(),
44
- client_id: z.string().optional(),
45
- masked_value: z.string().optional(),
46
- scopes: z.array(z.string()).optional(),
47
- }).transform((v) => {
48
- return remap$(v, {
49
- "client_id": "clientId",
50
- "masked_value": "maskedValue",
51
- });
52
- });
53
-
54
- export function mcpEnterpriseAuthConfigOutputFromJSON(
55
- jsonString: string,
56
- ): SafeParseResult<McpEnterpriseAuthConfigOutput, SDKValidationError> {
57
- return safeParse(
58
- jsonString,
59
- (x) => McpEnterpriseAuthConfigOutput$inboundSchema.parse(JSON.parse(x)),
60
- `Failed to parse 'McpEnterpriseAuthConfigOutput' from JSON`,
61
- );
62
- }
@@ -1,31 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
-
7
- export type RefreshWikiRequest = {
8
- full?: boolean | undefined;
9
- };
10
-
11
- /** @internal */
12
- export type RefreshWikiRequest$Outbound = {
13
- full?: boolean | undefined;
14
- };
15
-
16
- /** @internal */
17
- export const RefreshWikiRequest$outboundSchema: z.ZodType<
18
- RefreshWikiRequest$Outbound,
19
- z.ZodTypeDef,
20
- RefreshWikiRequest
21
- > = z.object({
22
- full: z.boolean().optional(),
23
- });
24
-
25
- export function refreshWikiRequestToJSON(
26
- refreshWikiRequest: RefreshWikiRequest,
27
- ): string {
28
- return JSON.stringify(
29
- RefreshWikiRequest$outboundSchema.parse(refreshWikiRequest),
30
- );
31
- }
@@ -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 RefreshWikiResponse = {
12
- run?: WikiRun | undefined;
13
- };
14
-
15
- /** @internal */
16
- export const RefreshWikiResponse$inboundSchema: z.ZodType<
17
- RefreshWikiResponse,
18
- z.ZodTypeDef,
19
- unknown
20
- > = z.object({
21
- run: WikiRun$inboundSchema.optional(),
22
- });
23
-
24
- export function refreshWikiResponseFromJSON(
25
- jsonString: string,
26
- ): SafeParseResult<RefreshWikiResponse, SDKValidationError> {
27
- return safeParse(
28
- jsonString,
29
- (x) => RefreshWikiResponse$inboundSchema.parse(JSON.parse(x)),
30
- `Failed to parse 'RefreshWikiResponse' 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 { WikiSearchHit, WikiSearchHit$inboundSchema } from "./wikisearchhit.js";
10
-
11
- export type SearchWikiResponse = {
12
- hits?: Array<WikiSearchHit> | undefined;
13
- };
14
-
15
- /** @internal */
16
- export const SearchWikiResponse$inboundSchema: z.ZodType<
17
- SearchWikiResponse,
18
- z.ZodTypeDef,
19
- unknown
20
- > = z.object({
21
- hits: z.array(WikiSearchHit$inboundSchema).optional(),
22
- });
23
-
24
- export function searchWikiResponseFromJSON(
25
- jsonString: string,
26
- ): SafeParseResult<SearchWikiResponse, SDKValidationError> {
27
- return safeParse(
28
- jsonString,
29
- (x) => SearchWikiResponse$inboundSchema.parse(JSON.parse(x)),
30
- `Failed to parse 'SearchWikiResponse' from JSON`,
31
- );
32
- }
@@ -1,42 +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 UpdateWikiPageRequest = {
9
- path?: string | undefined;
10
- markdown?: string | undefined;
11
- expectedContentHash?: string | undefined;
12
- };
13
-
14
- /** @internal */
15
- export type UpdateWikiPageRequest$Outbound = {
16
- path?: string | undefined;
17
- markdown?: string | undefined;
18
- expected_content_hash?: string | undefined;
19
- };
20
-
21
- /** @internal */
22
- export const UpdateWikiPageRequest$outboundSchema: z.ZodType<
23
- UpdateWikiPageRequest$Outbound,
24
- z.ZodTypeDef,
25
- UpdateWikiPageRequest
26
- > = z.object({
27
- path: z.string().optional(),
28
- markdown: z.string().optional(),
29
- expectedContentHash: z.string().optional(),
30
- }).transform((v) => {
31
- return remap$(v, {
32
- expectedContentHash: "expected_content_hash",
33
- });
34
- });
35
-
36
- export function updateWikiPageRequestToJSON(
37
- updateWikiPageRequest: UpdateWikiPageRequest,
38
- ): string {
39
- return JSON.stringify(
40
- UpdateWikiPageRequest$outboundSchema.parse(updateWikiPageRequest),
41
- );
42
- }
@@ -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 UpdateWikiPageResponse = {
12
- page?: WikiPage | undefined;
13
- };
14
-
15
- /** @internal */
16
- export const UpdateWikiPageResponse$inboundSchema: z.ZodType<
17
- UpdateWikiPageResponse,
18
- z.ZodTypeDef,
19
- unknown
20
- > = z.object({
21
- page: WikiPage$inboundSchema.optional(),
22
- });
23
-
24
- export function updateWikiPageResponseFromJSON(
25
- jsonString: string,
26
- ): SafeParseResult<UpdateWikiPageResponse, SDKValidationError> {
27
- return safeParse(
28
- jsonString,
29
- (x) => UpdateWikiPageResponse$inboundSchema.parse(JSON.parse(x)),
30
- `Failed to parse 'UpdateWikiPageResponse' from JSON`,
31
- );
32
- }
@@ -1,48 +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
- WikiSettings,
9
- WikiSettings$Outbound,
10
- WikiSettings$outboundSchema,
11
- } from "./wikisettings.js";
12
-
13
- export type UpdateWikiRequest = {
14
- displayName?: string | undefined;
15
- scmConnectionId?: string | undefined;
16
- settings?: WikiSettings | undefined;
17
- };
18
-
19
- /** @internal */
20
- export type UpdateWikiRequest$Outbound = {
21
- display_name?: string | undefined;
22
- scm_connection_id?: string | undefined;
23
- settings?: WikiSettings$Outbound | undefined;
24
- };
25
-
26
- /** @internal */
27
- export const UpdateWikiRequest$outboundSchema: z.ZodType<
28
- UpdateWikiRequest$Outbound,
29
- z.ZodTypeDef,
30
- UpdateWikiRequest
31
- > = z.object({
32
- displayName: z.string().optional(),
33
- scmConnectionId: z.string().optional(),
34
- settings: WikiSettings$outboundSchema.optional(),
35
- }).transform((v) => {
36
- return remap$(v, {
37
- displayName: "display_name",
38
- scmConnectionId: "scm_connection_id",
39
- });
40
- });
41
-
42
- export function updateWikiRequestToJSON(
43
- updateWikiRequest: UpdateWikiRequest,
44
- ): string {
45
- return JSON.stringify(
46
- UpdateWikiRequest$outboundSchema.parse(updateWikiRequest),
47
- );
48
- }
@@ -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 UpdateWikiResponse = {
12
- wiki?: Wiki | undefined;
13
- };
14
-
15
- /** @internal */
16
- export const UpdateWikiResponse$inboundSchema: z.ZodType<
17
- UpdateWikiResponse,
18
- z.ZodTypeDef,
19
- unknown
20
- > = z.object({
21
- wiki: Wiki$inboundSchema.optional(),
22
- });
23
-
24
- export function updateWikiResponseFromJSON(
25
- jsonString: string,
26
- ): SafeParseResult<UpdateWikiResponse, SDKValidationError> {
27
- return safeParse(
28
- jsonString,
29
- (x) => UpdateWikiResponse$inboundSchema.parse(JSON.parse(x)),
30
- `Failed to parse 'UpdateWikiResponse' from JSON`,
31
- );
32
- }
@@ -1,91 +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
- import {
11
- WikiRepository,
12
- WikiRepository$inboundSchema,
13
- } from "./wikirepository.js";
14
- import { WikiSettings, WikiSettings$inboundSchema } from "./wikisettings.js";
15
-
16
- export type Wiki = {
17
- wikiId?: string | undefined;
18
- workspaceId?: string | undefined;
19
- createdById?: string | undefined;
20
- displayName?: string | undefined;
21
- repositoryKey?: string | undefined;
22
- repository?: WikiRepository | undefined;
23
- branch?: string | undefined;
24
- scmConnectionId?: string | undefined;
25
- settings?: WikiSettings | undefined;
26
- loopId?: string | undefined;
27
- status?: string | undefined;
28
- currentRunId?: string | undefined;
29
- lastGeneratedCommit?: string | undefined;
30
- lastGeneratedAt?: Date | undefined;
31
- pageCount?: number | undefined;
32
- createdAt?: Date | undefined;
33
- updatedAt?: Date | undefined;
34
- factoryId?: string | undefined;
35
- };
36
-
37
- /** @internal */
38
- export const Wiki$inboundSchema: z.ZodType<Wiki, z.ZodTypeDef, unknown> = z
39
- .object({
40
- wiki_id: z.string().optional(),
41
- workspace_id: z.string().optional(),
42
- created_by_id: z.string().optional(),
43
- display_name: z.string().optional(),
44
- repository_key: z.string().optional(),
45
- repository: WikiRepository$inboundSchema.optional(),
46
- branch: z.string().optional(),
47
- scm_connection_id: z.string().optional(),
48
- settings: WikiSettings$inboundSchema.optional(),
49
- loop_id: z.string().optional(),
50
- status: z.string().optional(),
51
- current_run_id: z.string().optional(),
52
- last_generated_commit: z.string().optional(),
53
- last_generated_at: z.string().datetime({ offset: true }).transform(v =>
54
- new Date(v)
55
- ).optional(),
56
- page_count: z.number().int().optional(),
57
- created_at: z.string().datetime({ offset: true }).transform(v =>
58
- new Date(v)
59
- ).optional(),
60
- updated_at: z.string().datetime({ offset: true }).transform(v =>
61
- new Date(v)
62
- ).optional(),
63
- factory_id: z.string().optional(),
64
- }).transform((v) => {
65
- return remap$(v, {
66
- "wiki_id": "wikiId",
67
- "workspace_id": "workspaceId",
68
- "created_by_id": "createdById",
69
- "display_name": "displayName",
70
- "repository_key": "repositoryKey",
71
- "scm_connection_id": "scmConnectionId",
72
- "loop_id": "loopId",
73
- "current_run_id": "currentRunId",
74
- "last_generated_commit": "lastGeneratedCommit",
75
- "last_generated_at": "lastGeneratedAt",
76
- "page_count": "pageCount",
77
- "created_at": "createdAt",
78
- "updated_at": "updatedAt",
79
- "factory_id": "factoryId",
80
- });
81
- });
82
-
83
- export function wikiFromJSON(
84
- jsonString: string,
85
- ): SafeParseResult<Wiki, SDKValidationError> {
86
- return safeParse(
87
- jsonString,
88
- (x) => Wiki$inboundSchema.parse(JSON.parse(x)),
89
- `Failed to parse 'Wiki' from JSON`,
90
- );
91
- }
@@ -1,58 +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 WikiPage = {
12
- path?: string | undefined;
13
- title?: string | undefined;
14
- section?: string | undefined;
15
- order?: number | undefined;
16
- contentHash?: string | undefined;
17
- editedById?: string | undefined;
18
- markdown?: string | undefined;
19
- runId?: string | undefined;
20
- links?: Array<string> | undefined;
21
- editedAt?: Date | undefined;
22
- };
23
-
24
- /** @internal */
25
- export const WikiPage$inboundSchema: z.ZodType<
26
- WikiPage,
27
- z.ZodTypeDef,
28
- unknown
29
- > = z.object({
30
- path: z.string().optional(),
31
- title: z.string().optional(),
32
- section: z.string().optional(),
33
- order: z.number().int().optional(),
34
- content_hash: z.string().optional(),
35
- edited_by_id: z.string().optional(),
36
- markdown: z.string().optional(),
37
- run_id: z.string().optional(),
38
- links: z.array(z.string()).optional(),
39
- edited_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
40
- .optional(),
41
- }).transform((v) => {
42
- return remap$(v, {
43
- "content_hash": "contentHash",
44
- "edited_by_id": "editedById",
45
- "run_id": "runId",
46
- "edited_at": "editedAt",
47
- });
48
- });
49
-
50
- export function wikiPageFromJSON(
51
- jsonString: string,
52
- ): SafeParseResult<WikiPage, SDKValidationError> {
53
- return safeParse(
54
- jsonString,
55
- (x) => WikiPage$inboundSchema.parse(JSON.parse(x)),
56
- `Failed to parse 'WikiPage' from JSON`,
57
- );
58
- }
@@ -1,72 +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 WikiRepository = {
12
- provider?: string | undefined;
13
- owner?: string | undefined;
14
- name?: string | undefined;
15
- url?: string | undefined;
16
- defaultBranch?: string | undefined;
17
- };
18
-
19
- /** @internal */
20
- export const WikiRepository$inboundSchema: z.ZodType<
21
- WikiRepository,
22
- z.ZodTypeDef,
23
- unknown
24
- > = z.object({
25
- provider: z.string().optional(),
26
- owner: z.string().optional(),
27
- name: z.string().optional(),
28
- url: z.string().optional(),
29
- default_branch: z.string().optional(),
30
- }).transform((v) => {
31
- return remap$(v, {
32
- "default_branch": "defaultBranch",
33
- });
34
- });
35
- /** @internal */
36
- export type WikiRepository$Outbound = {
37
- provider?: string | undefined;
38
- owner?: string | undefined;
39
- name?: string | undefined;
40
- url?: string | undefined;
41
- default_branch?: string | undefined;
42
- };
43
-
44
- /** @internal */
45
- export const WikiRepository$outboundSchema: z.ZodType<
46
- WikiRepository$Outbound,
47
- z.ZodTypeDef,
48
- WikiRepository
49
- > = z.object({
50
- provider: z.string().optional(),
51
- owner: z.string().optional(),
52
- name: z.string().optional(),
53
- url: z.string().optional(),
54
- defaultBranch: z.string().optional(),
55
- }).transform((v) => {
56
- return remap$(v, {
57
- defaultBranch: "default_branch",
58
- });
59
- });
60
-
61
- export function wikiRepositoryToJSON(wikiRepository: WikiRepository): string {
62
- return JSON.stringify(WikiRepository$outboundSchema.parse(wikiRepository));
63
- }
64
- export function wikiRepositoryFromJSON(
65
- jsonString: string,
66
- ): SafeParseResult<WikiRepository, SDKValidationError> {
67
- return safeParse(
68
- jsonString,
69
- (x) => WikiRepository$inboundSchema.parse(JSON.parse(x)),
70
- `Failed to parse 'WikiRepository' from JSON`,
71
- );
72
- }