@orq-ai/node 4.16.10 → 4.16.11

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 (113) hide show
  1. package/funcs/websearchSearch.d.ts +3 -3
  2. package/funcs/websearchSearch.js +3 -3
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +2 -2
  5. package/lib/config.js +2 -2
  6. package/models/components/reasoningpart.js +1 -1
  7. package/models/operations/createtool.js +4 -4
  8. package/models/operations/getalltools.js +4 -4
  9. package/models/operations/getv2humanevalsets.js +2 -2
  10. package/models/operations/getv2humanevalsetsid.js +2 -2
  11. package/models/operations/listdeploymentversions.js +1 -1
  12. package/models/operations/patchv2humanevalsetsid.js +2 -2
  13. package/models/operations/postv2feedbackevaluation.js +4 -4
  14. package/models/operations/postv2humanevalsets.js +2 -2
  15. package/models/operations/retrievetool.js +4 -4
  16. package/models/operations/runagent.js +1 -1
  17. package/models/operations/searchweb.d.ts +3 -1
  18. package/models/operations/searchweb.d.ts.map +1 -1
  19. package/models/operations/searchweb.js +2 -0
  20. package/models/operations/searchweb.js.map +1 -1
  21. package/models/operations/streamrunagent.js +1 -1
  22. package/models/operations/updatetool.js +4 -4
  23. package/package.json +5 -5
  24. package/packages/orq-rc/src/funcs/modelsAzureFoundryDeployments.ts +1 -1
  25. package/packages/orq-rc/src/funcs/modelsUpdate.ts +1 -1
  26. package/packages/orq-rc/src/lib/config.ts +2 -2
  27. package/packages/orq-rc/src/models/components/alertscope.ts +0 -1
  28. package/packages/orq-rc/src/models/components/alerttelemetrysource.ts +0 -1
  29. package/packages/orq-rc/src/models/components/budgetalertdimension.ts +0 -1
  30. package/packages/orq-rc/src/models/components/budgetperiod.ts +0 -1
  31. package/packages/orq-rc/src/models/components/budgetscopekind.ts +0 -1
  32. package/packages/orq-rc/src/models/components/budgetsortfield.ts +0 -1
  33. package/packages/orq-rc/src/models/components/createmanagementkeyrequest.ts +2 -3
  34. package/packages/orq-rc/src/models/components/createmcpgatewayrequest.ts +7 -0
  35. package/packages/orq-rc/src/models/components/domainverificationstatus.ts +0 -1
  36. package/packages/orq-rc/src/models/components/filepurpose.ts +0 -1
  37. package/packages/orq-rc/src/models/components/getlogcontextresponse.ts +1 -1
  38. package/packages/orq-rc/src/models/components/getlogresponse.ts +1 -1
  39. package/packages/orq-rc/src/models/components/identitysortfield.ts +0 -1
  40. package/packages/orq-rc/src/models/components/index.ts +3 -0
  41. package/packages/orq-rc/src/models/components/log.ts +1 -1
  42. package/packages/orq-rc/src/models/components/managementkey.ts +2 -2
  43. package/packages/orq-rc/src/models/components/managementkeystatus.ts +0 -1
  44. package/packages/orq-rc/src/models/components/managementpermissionmode.ts +0 -1
  45. package/packages/orq-rc/src/models/components/mcpauthtype.ts +0 -1
  46. package/packages/orq-rc/src/models/components/mcpconnectiontype.ts +0 -1
  47. package/packages/orq-rc/src/models/components/mcpgateway.ts +6 -0
  48. package/packages/orq-rc/src/models/components/mcpgatewaymode.ts +0 -1
  49. package/packages/orq-rc/src/models/components/mcpgatewayserverlink.ts +15 -0
  50. package/packages/orq-rc/src/models/components/mcpgatewaystatus.ts +0 -1
  51. package/packages/orq-rc/src/models/components/mcpserver.ts +6 -0
  52. package/packages/orq-rc/src/models/components/mcpskill.ts +85 -0
  53. package/packages/orq-rc/src/models/components/mcpskillexposure.ts +72 -0
  54. package/packages/orq-rc/src/models/components/mcpskillfile.ts +47 -0
  55. package/packages/orq-rc/src/models/components/mcpsyncstate.ts +6 -0
  56. package/packages/orq-rc/src/models/components/mcptoolexposuremode.ts +0 -1
  57. package/packages/orq-rc/src/models/components/mcptoolnaming.ts +0 -1
  58. package/packages/orq-rc/src/models/components/modeldocument.ts +3 -0
  59. package/packages/orq-rc/src/models/components/modelfusionpreset.ts +0 -1
  60. package/packages/orq-rc/src/models/components/modelfusionsynthesismode.ts +0 -2
  61. package/packages/orq-rc/src/models/components/monitortelemetrysource.ts +0 -1
  62. package/packages/orq-rc/src/models/components/notifiertype.ts +0 -1
  63. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  64. package/packages/orq-rc/src/models/components/sessioninterval.ts +0 -1
  65. package/packages/orq-rc/src/models/components/smartrouterprofile.ts +0 -1
  66. package/packages/orq-rc/src/models/components/syncstatus.ts +0 -1
  67. package/packages/orq-rc/src/models/components/telemetryquerymode.ts +0 -1
  68. package/packages/orq-rc/src/models/components/telemetryresultkind.ts +0 -1
  69. package/packages/orq-rc/src/models/components/telemetrysource.ts +0 -1
  70. package/packages/orq-rc/src/models/components/telemetryvaluecardinality.ts +0 -2
  71. package/packages/orq-rc/src/models/components/threadkind.ts +0 -1
  72. package/packages/orq-rc/src/models/components/updateidentityrequest.ts +1 -1
  73. package/packages/orq-rc/src/models/components/updatemcpgatewayrequest.ts +14 -0
  74. package/packages/orq-rc/src/models/components/updateworkspacesettingsrequest.ts +2 -4
  75. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  76. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  77. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  79. package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +1 -1
  80. package/packages/orq-rc/src/models/operations/modelcreate.ts +3 -0
  81. package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +3 -0
  82. package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +3 -0
  83. package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +3 -0
  84. package/packages/orq-rc/src/models/operations/modelupdate.ts +3 -0
  85. package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +3 -0
  86. package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +3 -0
  87. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  88. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
  89. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  91. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  92. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  93. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  94. package/packages/orq-rc/src/sdk/models.ts +2 -2
  95. package/sdk/websearch.d.ts +3 -3
  96. package/sdk/websearch.js +3 -3
  97. package/src/funcs/websearchSearch.ts +3 -3
  98. package/src/lib/config.ts +2 -2
  99. package/src/models/components/reasoningpart.ts +1 -1
  100. package/src/models/operations/createtool.ts +4 -4
  101. package/src/models/operations/getalltools.ts +4 -4
  102. package/src/models/operations/getv2humanevalsets.ts +2 -2
  103. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  104. package/src/models/operations/listdeploymentversions.ts +1 -1
  105. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  106. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  107. package/src/models/operations/postv2humanevalsets.ts +2 -2
  108. package/src/models/operations/retrievetool.ts +4 -4
  109. package/src/models/operations/runagent.ts +1 -1
  110. package/src/models/operations/searchweb.ts +3 -1
  111. package/src/models/operations/streamrunagent.ts +1 -1
  112. package/src/models/operations/updatetool.ts +4 -4
  113. package/src/sdk/websearch.ts +3 -3
@@ -55,6 +55,10 @@ export type CreateMcpGatewayRequest = {
55
55
  * Plugins run on every tool call this gateway serves.
56
56
  */
57
57
  plugins?: Array<McpGatewayPlugin> | undefined;
58
+ /**
59
+ * Workspace skills this gateway serves to MCP clients through the MCP Skills extension.
60
+ */
61
+ skillIds?: Array<string> | undefined;
58
62
  };
59
63
 
60
64
  /** @internal */
@@ -67,6 +71,7 @@ export type CreateMcpGatewayRequest$Outbound = {
67
71
  mode?: string | undefined;
68
72
  sharing?: Sharing$Outbound | undefined;
69
73
  plugins?: Array<McpGatewayPlugin$Outbound> | undefined;
74
+ skill_ids?: Array<string> | undefined;
70
75
  };
71
76
 
72
77
  /** @internal */
@@ -83,11 +88,13 @@ export const CreateMcpGatewayRequest$outboundSchema: z.ZodType<
83
88
  mode: McpGatewayMode$outboundSchema.optional(),
84
89
  sharing: Sharing$outboundSchema.optional(),
85
90
  plugins: z.array(McpGatewayPlugin$outboundSchema).optional(),
91
+ skillIds: z.array(z.string()).optional(),
86
92
  }).transform((v) => {
87
93
  return remap$(v, {
88
94
  displayName: "display_name",
89
95
  serverLinks: "server_links",
90
96
  toolNaming: "tool_naming",
97
+ skillIds: "skill_ids",
91
98
  });
92
99
  });
93
100
 
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const DomainVerificationStatus = {
9
- DomainVerificationStatusUnspecified: "DOMAIN_VERIFICATION_STATUS_UNSPECIFIED",
10
9
  DomainVerificationStatusPending: "DOMAIN_VERIFICATION_STATUS_PENDING",
11
10
  DomainVerificationStatusVerified: "DOMAIN_VERIFICATION_STATUS_VERIFIED",
12
11
  } as const;
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const FilePurpose = {
9
- FilePurposeUnspecified: "FILE_PURPOSE_UNSPECIFIED",
10
9
  FilePurposeRetrieval: "FILE_PURPOSE_RETRIEVAL",
11
10
  FilePurposeKnowledgeDatasource: "FILE_PURPOSE_KNOWLEDGE_DATASOURCE",
12
11
  FilePurposeBatch: "FILE_PURPOSE_BATCH",
@@ -11,7 +11,7 @@ import { Log, Log$inboundSchema } from "./log.js";
11
11
 
12
12
  export type GetLogContextResponse = {
13
13
  /**
14
- * Log is the canonical wire representation of an otel_logs row.
14
+ * Log is a log record returned by the log endpoints.
15
15
  */
16
16
  anchor: Log;
17
17
  /**
@@ -10,7 +10,7 @@ import { Log, Log$inboundSchema } from "./log.js";
10
10
 
11
11
  export type GetLogResponse = {
12
12
  /**
13
- * Log is the canonical wire representation of an otel_logs row.
13
+ * Log is a log record returned by the log endpoints.
14
14
  */
15
15
  log?: Log | undefined;
16
16
  };
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const IdentitySortField = {
9
- IdentitySortFieldUnspecified: "IDENTITY_SORT_FIELD_UNSPECIFIED",
10
9
  IdentitySortFieldDisplayName: "IDENTITY_SORT_FIELD_DISPLAY_NAME",
11
10
  IdentitySortFieldUpdated: "IDENTITY_SORT_FIELD_UPDATED",
12
11
  } as const;
@@ -411,6 +411,9 @@ export * from "./mcpheadersecretoutput.js";
411
411
  export * from "./mcpoauthconfig.js";
412
412
  export * from "./mcpoauthconfigoutput.js";
413
413
  export * from "./mcpserver.js";
414
+ export * from "./mcpskill.js";
415
+ export * from "./mcpskillexposure.js";
416
+ export * from "./mcpskillfile.js";
414
417
  export * from "./mcpsyncstate.js";
415
418
  export * from "./mcptool.js";
416
419
  export * from "./mcptoolannotations.js";
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  /**
12
- * Log is the canonical wire representation of an otel_logs row.
12
+ * Log is a log record returned by the log endpoints.
13
13
  */
14
14
  export type Log = {
15
15
  id?: string | undefined;
@@ -77,10 +77,10 @@ export type ManagementKey = {
77
77
  */
78
78
  lastUsedAt?: Date | undefined;
79
79
  /**
80
- * Optional expiration. The authenticate hot-path rejects keys whose
80
+ * Optional expiration. Keys whose `expires_at` is in the past are
81
81
  *
82
82
  * @remarks
83
- * `expires_at` is in the past. Unset means the key never expires.
83
+ * rejected when used. Unset means the key never expires.
84
84
  */
85
85
  expiresAt?: Date | undefined;
86
86
  };
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const ManagementKeyStatus = {
9
- ManagementKeyStatusUnspecified: "MANAGEMENT_KEY_STATUS_UNSPECIFIED",
10
9
  ManagementKeyStatusActive: "MANAGEMENT_KEY_STATUS_ACTIVE",
11
10
  ManagementKeyStatusDisabled: "MANAGEMENT_KEY_STATUS_DISABLED",
12
11
  ManagementKeyStatusRevoked: "MANAGEMENT_KEY_STATUS_REVOKED",
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const ManagementPermissionMode = {
9
- ManagementPermissionModeUnspecified: "MANAGEMENT_PERMISSION_MODE_UNSPECIFIED",
10
9
  ManagementPermissionModeAll: "MANAGEMENT_PERMISSION_MODE_ALL",
11
10
  ManagementPermissionModeRestricted: "MANAGEMENT_PERMISSION_MODE_RESTRICTED",
12
11
  ManagementPermissionModeReadOnly: "MANAGEMENT_PERMISSION_MODE_READ_ONLY",
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const McpAuthType = {
9
- McpAuthTypeUnspecified: "MCP_AUTH_TYPE_UNSPECIFIED",
10
9
  McpAuthTypeNone: "MCP_AUTH_TYPE_NONE",
11
10
  McpAuthTypeStaticHeaders: "MCP_AUTH_TYPE_STATIC_HEADERS",
12
11
  McpAuthTypeOauthClientCredentials: "MCP_AUTH_TYPE_OAUTH_CLIENT_CREDENTIALS",
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const McpConnectionType = {
9
- McpConnectionTypeUnspecified: "MCP_CONNECTION_TYPE_UNSPECIFIED",
10
9
  McpConnectionTypeHttp: "MCP_CONNECTION_TYPE_HTTP",
11
10
  McpConnectionTypeSse: "MCP_CONNECTION_TYPE_SSE",
12
11
  McpConnectionTypeStdio: "MCP_CONNECTION_TYPE_STDIO",
@@ -74,6 +74,10 @@ export type McpGateway = {
74
74
  * Plugins run on every tool call this gateway serves.
75
75
  */
76
76
  plugins?: Array<McpGatewayPlugin> | undefined;
77
+ /**
78
+ * Workspace skills this gateway serves to MCP clients through the MCP Skills extension.
79
+ */
80
+ skillIds?: Array<string> | undefined;
77
81
  };
78
82
 
79
83
  /** @internal */
@@ -96,6 +100,7 @@ export const McpGateway$inboundSchema: z.ZodType<
96
100
  mode: McpGatewayMode$inboundSchema.optional(),
97
101
  sharing: Sharing$inboundSchema.optional(),
98
102
  plugins: z.array(McpGatewayPlugin$inboundSchema).optional(),
103
+ skill_ids: z.array(z.string()).optional(),
99
104
  }).transform((v) => {
100
105
  return remap$(v, {
101
106
  "display_name": "displayName",
@@ -103,6 +108,7 @@ export const McpGateway$inboundSchema: z.ZodType<
103
108
  "tool_naming": "toolNaming",
104
109
  "public_url": "publicUrl",
105
110
  "exposed_tools_count": "exposedToolsCount",
111
+ "skill_ids": "skillIds",
106
112
  });
107
113
  });
108
114
 
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const McpGatewayMode = {
9
- McpGatewayModeUnspecified: "MCP_GATEWAY_MODE_UNSPECIFIED",
10
9
  McpGatewayModeCode: "MCP_GATEWAY_MODE_CODE",
11
10
  McpGatewayModeDirect: "MCP_GATEWAY_MODE_DIRECT",
12
11
  } as const;
@@ -7,6 +7,12 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ McpSkillExposure,
12
+ McpSkillExposure$inboundSchema,
13
+ McpSkillExposure$Outbound,
14
+ McpSkillExposure$outboundSchema,
15
+ } from "./mcpskillexposure.js";
10
16
  import {
11
17
  McpToolExposure,
12
18
  McpToolExposure$inboundSchema,
@@ -31,6 +37,10 @@ export type McpGatewayServerLink = {
31
37
  * Narrows which of the server's tools this gateway exposes.
32
38
  */
33
39
  toolExposure: McpToolExposure;
40
+ /**
41
+ * Which of the server's skills this gateway serves. Unset serves none.
42
+ */
43
+ skillExposure?: McpSkillExposure | undefined;
34
44
  };
35
45
 
36
46
  /** @internal */
@@ -43,10 +53,12 @@ export const McpGatewayServerLink$inboundSchema: z.ZodType<
43
53
  alias: z.string(),
44
54
  enabled: z.boolean().optional(),
45
55
  tool_exposure: McpToolExposure$inboundSchema,
56
+ skill_exposure: McpSkillExposure$inboundSchema.optional(),
46
57
  }).transform((v) => {
47
58
  return remap$(v, {
48
59
  "mcp_server_id": "mcpServerId",
49
60
  "tool_exposure": "toolExposure",
61
+ "skill_exposure": "skillExposure",
50
62
  });
51
63
  });
52
64
  /** @internal */
@@ -55,6 +67,7 @@ export type McpGatewayServerLink$Outbound = {
55
67
  alias: string;
56
68
  enabled?: boolean | undefined;
57
69
  tool_exposure: McpToolExposure$Outbound;
70
+ skill_exposure?: McpSkillExposure$Outbound | undefined;
58
71
  };
59
72
 
60
73
  /** @internal */
@@ -67,10 +80,12 @@ export const McpGatewayServerLink$outboundSchema: z.ZodType<
67
80
  alias: z.string(),
68
81
  enabled: z.boolean().optional(),
69
82
  toolExposure: McpToolExposure$outboundSchema,
83
+ skillExposure: McpSkillExposure$outboundSchema.optional(),
70
84
  }).transform((v) => {
71
85
  return remap$(v, {
72
86
  mcpServerId: "mcp_server_id",
73
87
  toolExposure: "tool_exposure",
88
+ skillExposure: "skill_exposure",
74
89
  });
75
90
  });
76
91
 
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const McpGatewayStatus = {
9
- McpGatewayStatusUnspecified: "MCP_GATEWAY_STATUS_UNSPECIFIED",
10
9
  McpGatewayStatusActive: "MCP_GATEWAY_STATUS_ACTIVE",
11
10
  McpGatewayStatusDisabled: "MCP_GATEWAY_STATUS_DISABLED",
12
11
  } as const;
@@ -12,6 +12,7 @@ import {
12
12
  McpAuthConfigOutput$inboundSchema,
13
13
  } from "./mcpauthconfigoutput.js";
14
14
  import { McpConnection, McpConnection$inboundSchema } from "./mcpconnection.js";
15
+ import { McpSkill, McpSkill$inboundSchema } from "./mcpskill.js";
15
16
  import { McpSyncState, McpSyncState$inboundSchema } from "./mcpsyncstate.js";
16
17
  import { McpTool, McpTool$inboundSchema } from "./mcptool.js";
17
18
  import {
@@ -73,6 +74,10 @@ export type McpServer = {
73
74
  * Account that created the server.
74
75
  */
75
76
  createdById?: string | undefined;
77
+ /**
78
+ * Skills the upstream publishes through the MCP Skills extension, discovered by the last successful `:sync`.
79
+ */
80
+ skills?: Array<McpSkill> | undefined;
76
81
  };
77
82
 
78
83
  /** @internal */
@@ -94,6 +99,7 @@ export const McpServer$inboundSchema: z.ZodType<
94
99
  updated: z.string().optional(),
95
100
  sharing: Sharing$inboundSchema.optional(),
96
101
  created_by_id: z.string().optional(),
102
+ skills: z.array(McpSkill$inboundSchema).optional(),
97
103
  }).transform((v) => {
98
104
  return remap$(v, {
99
105
  "display_name": "displayName",
@@ -0,0 +1,85 @@
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 { McpSkillFile, McpSkillFile$inboundSchema } from "./mcpskillfile.js";
10
+
11
+ /**
12
+ * Full `SKILL.md` frontmatter as published upstream.
13
+ */
14
+ export type Frontmatter = {};
15
+
16
+ /**
17
+ * A skill an upstream server publishes through the MCP Skills extension (`io.modelcontextprotocol/skills`).
18
+ */
19
+ export type McpSkill = {
20
+ /**
21
+ * Resource URI of the skill's `SKILL.md` on the upstream server.
22
+ */
23
+ uri?: string | undefined;
24
+ /**
25
+ * Skill name from the `SKILL.md` frontmatter.
26
+ */
27
+ name?: string | undefined;
28
+ /**
29
+ * Skill description from the `SKILL.md` frontmatter.
30
+ */
31
+ description?: string | undefined;
32
+ /**
33
+ * Full `SKILL.md` frontmatter as published upstream.
34
+ */
35
+ frontmatter?: Frontmatter | undefined;
36
+ /**
37
+ * Manifest of the skill's files; empty when the skill is dynamic.
38
+ */
39
+ files?: Array<McpSkillFile> | undefined;
40
+ /**
41
+ * Upstream generates the skill's content and publishes no manifest.
42
+ */
43
+ dynamic?: boolean | undefined;
44
+ };
45
+
46
+ /** @internal */
47
+ export const Frontmatter$inboundSchema: z.ZodType<
48
+ Frontmatter,
49
+ z.ZodTypeDef,
50
+ unknown
51
+ > = z.object({});
52
+
53
+ export function frontmatterFromJSON(
54
+ jsonString: string,
55
+ ): SafeParseResult<Frontmatter, SDKValidationError> {
56
+ return safeParse(
57
+ jsonString,
58
+ (x) => Frontmatter$inboundSchema.parse(JSON.parse(x)),
59
+ `Failed to parse 'Frontmatter' from JSON`,
60
+ );
61
+ }
62
+
63
+ /** @internal */
64
+ export const McpSkill$inboundSchema: z.ZodType<
65
+ McpSkill,
66
+ z.ZodTypeDef,
67
+ unknown
68
+ > = z.object({
69
+ uri: z.string().optional(),
70
+ name: z.string().optional(),
71
+ description: z.string().optional(),
72
+ frontmatter: z.lazy(() => Frontmatter$inboundSchema).optional(),
73
+ files: z.array(McpSkillFile$inboundSchema).optional(),
74
+ dynamic: z.boolean().optional(),
75
+ });
76
+
77
+ export function mcpSkillFromJSON(
78
+ jsonString: string,
79
+ ): SafeParseResult<McpSkill, SDKValidationError> {
80
+ return safeParse(
81
+ jsonString,
82
+ (x) => McpSkill$inboundSchema.parse(JSON.parse(x)),
83
+ `Failed to parse 'McpSkill' from JSON`,
84
+ );
85
+ }
@@ -0,0 +1,72 @@
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
+ McpToolExposureMode,
12
+ McpToolExposureMode$inboundSchema,
13
+ McpToolExposureMode$outboundSchema,
14
+ } from "./mcptoolexposuremode.js";
15
+
16
+ export type McpSkillExposure = {
17
+ mode: McpToolExposureMode;
18
+ /**
19
+ * `McpSkill.uri` values to expose when mode is SELECTED.
20
+ */
21
+ skillUris?: Array<string> | undefined;
22
+ };
23
+
24
+ /** @internal */
25
+ export const McpSkillExposure$inboundSchema: z.ZodType<
26
+ McpSkillExposure,
27
+ z.ZodTypeDef,
28
+ unknown
29
+ > = z.object({
30
+ mode: McpToolExposureMode$inboundSchema,
31
+ skill_uris: z.array(z.string()).optional(),
32
+ }).transform((v) => {
33
+ return remap$(v, {
34
+ "skill_uris": "skillUris",
35
+ });
36
+ });
37
+ /** @internal */
38
+ export type McpSkillExposure$Outbound = {
39
+ mode: string;
40
+ skill_uris?: Array<string> | undefined;
41
+ };
42
+
43
+ /** @internal */
44
+ export const McpSkillExposure$outboundSchema: z.ZodType<
45
+ McpSkillExposure$Outbound,
46
+ z.ZodTypeDef,
47
+ McpSkillExposure
48
+ > = z.object({
49
+ mode: McpToolExposureMode$outboundSchema,
50
+ skillUris: z.array(z.string()).optional(),
51
+ }).transform((v) => {
52
+ return remap$(v, {
53
+ skillUris: "skill_uris",
54
+ });
55
+ });
56
+
57
+ export function mcpSkillExposureToJSON(
58
+ mcpSkillExposure: McpSkillExposure,
59
+ ): string {
60
+ return JSON.stringify(
61
+ McpSkillExposure$outboundSchema.parse(mcpSkillExposure),
62
+ );
63
+ }
64
+ export function mcpSkillExposureFromJSON(
65
+ jsonString: string,
66
+ ): SafeParseResult<McpSkillExposure, SDKValidationError> {
67
+ return safeParse(
68
+ jsonString,
69
+ (x) => McpSkillExposure$inboundSchema.parse(JSON.parse(x)),
70
+ `Failed to parse 'McpSkillExposure' from JSON`,
71
+ );
72
+ }
@@ -0,0 +1,47 @@
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
+ /**
11
+ * A file of an upstream skill, as listed in the skill's manifest.
12
+ */
13
+ export type McpSkillFile = {
14
+ /**
15
+ * Resource URI of the file on the upstream server.
16
+ */
17
+ uri?: string | undefined;
18
+ /**
19
+ * SHA-256 digest of the file's raw bytes, formatted as `sha256:{hex}`.
20
+ */
21
+ digest?: string | undefined;
22
+ /**
23
+ * Length in bytes of the file's raw content.
24
+ */
25
+ size?: string | undefined;
26
+ };
27
+
28
+ /** @internal */
29
+ export const McpSkillFile$inboundSchema: z.ZodType<
30
+ McpSkillFile,
31
+ z.ZodTypeDef,
32
+ unknown
33
+ > = z.object({
34
+ uri: z.string().optional(),
35
+ digest: z.string().optional(),
36
+ size: z.string().optional(),
37
+ });
38
+
39
+ export function mcpSkillFileFromJSON(
40
+ jsonString: string,
41
+ ): SafeParseResult<McpSkillFile, SDKValidationError> {
42
+ return safeParse(
43
+ jsonString,
44
+ (x) => McpSkillFile$inboundSchema.parse(JSON.parse(x)),
45
+ `Failed to parse 'McpSkillFile' from JSON`,
46
+ );
47
+ }
@@ -31,6 +31,10 @@ export type McpSyncState = {
31
31
  * Failures reported by the last sync.
32
32
  */
33
33
  errors?: Array<string> | undefined;
34
+ /**
35
+ * Skills in the catalog after the last sync.
36
+ */
37
+ skillsTotal?: number | undefined;
34
38
  };
35
39
 
36
40
  /** @internal */
@@ -45,12 +49,14 @@ export const McpSyncState$inboundSchema: z.ZodType<
45
49
  tools_removed: z.number().int().optional(),
46
50
  last_synced_at: z.string().optional(),
47
51
  errors: z.array(z.string()).optional(),
52
+ skills_total: z.number().int().optional(),
48
53
  }).transform((v) => {
49
54
  return remap$(v, {
50
55
  "tools_total": "toolsTotal",
51
56
  "tools_added": "toolsAdded",
52
57
  "tools_removed": "toolsRemoved",
53
58
  "last_synced_at": "lastSyncedAt",
59
+ "skills_total": "skillsTotal",
54
60
  });
55
61
  });
56
62
 
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const McpToolExposureMode = {
9
- McpToolExposureModeUnspecified: "MCP_TOOL_EXPOSURE_MODE_UNSPECIFIED",
10
9
  McpToolExposureModeAll: "MCP_TOOL_EXPOSURE_MODE_ALL",
11
10
  McpToolExposureModeSelected: "MCP_TOOL_EXPOSURE_MODE_SELECTED",
12
11
  McpToolExposureModeNone: "MCP_TOOL_EXPOSURE_MODE_NONE",
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const McpToolNaming = {
9
- McpToolNamingUnspecified: "MCP_TOOL_NAMING_UNSPECIFIED",
10
9
  McpToolNamingPrefixWithServerKey: "MCP_TOOL_NAMING_PREFIX_WITH_SERVER_KEY",
11
10
  McpToolNamingPrefixOnCollision: "MCP_TOOL_NAMING_PREFIX_ON_COLLISION",
12
11
  } as const;
@@ -36,6 +36,9 @@ export type ModelDocument = {
36
36
  inputCost: number | null;
37
37
  inputCurrency: string;
38
38
  isActive: boolean;
39
+ /**
40
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
41
+ */
39
42
  legacyUuid?: string | undefined;
40
43
  metadata: ModelMetadata;
41
44
  modelDeveloper?: string | undefined;
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const ModelFusionPreset = {
9
- ModelFusionPresetUnspecified: "MODEL_FUSION_PRESET_UNSPECIFIED",
10
9
  ModelFusionPresetGeneral: "MODEL_FUSION_PRESET_GENERAL",
11
10
  ModelFusionPresetQuality: "MODEL_FUSION_PRESET_QUALITY",
12
11
  ModelFusionPresetBudget: "MODEL_FUSION_PRESET_BUDGET",
@@ -6,8 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const ModelFusionSynthesisMode = {
9
- ModelFusionSynthesisModeUnspecified:
10
- "MODEL_FUSION_SYNTHESIS_MODE_UNSPECIFIED",
11
9
  ModelFusionSynthesisModeAnalysis: "MODEL_FUSION_SYNTHESIS_MODE_ANALYSIS",
12
10
  ModelFusionSynthesisModeJudgeWritesFinal:
13
11
  "MODEL_FUSION_SYNTHESIS_MODE_JUDGE_WRITES_FINAL",
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const MonitorTelemetrySource = {
9
- MonitorTelemetrySourceUnspecified: "MONITOR_TELEMETRY_SOURCE_UNSPECIFIED",
10
9
  MonitorTelemetrySourceTraces: "MONITOR_TELEMETRY_SOURCE_TRACES",
11
10
  MonitorTelemetrySourceMetrics: "MONITOR_TELEMETRY_SOURCE_METRICS",
12
11
  MonitorTelemetrySourceLogs: "MONITOR_TELEMETRY_SOURCE_LOGS",
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const NotifierType = {
9
- NotifierTypeUnspecified: "NOTIFIER_TYPE_UNSPECIFIED",
10
9
  NotifierTypeEmail: "NOTIFIER_TYPE_EMAIL",
11
10
  NotifierTypeSlackWebhook: "NOTIFIER_TYPE_SLACK_WEBHOOK",
12
11
  NotifierTypeWebhook: "NOTIFIER_TYPE_WEBHOOK",
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
40
40
  z.ZodTypeDef,
41
41
  unknown
42
42
  > = z.object({
43
- _id: z.string().default("reasoning_01m51n0png0bm54rp32vg6j3sp"),
43
+ _id: z.string().default("reasoning_01m52hq7rysfw5spsy1trxjyzg"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const SessionInterval = {
9
- SessionIntervalUnspecified: "SESSION_INTERVAL_UNSPECIFIED",
10
9
  SessionIntervalAllTime: "SESSION_INTERVAL_ALL_TIME",
11
10
  SessionIntervalLast30Minutes: "SESSION_INTERVAL_LAST_30_MINUTES",
12
11
  SessionIntervalLast1Hour: "SESSION_INTERVAL_LAST_1_HOUR",
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const SmartRouterProfile = {
9
- SmartRouterProfileUnspecified: "SMART_ROUTER_PROFILE_UNSPECIFIED",
10
9
  SmartRouterProfileQuality: "SMART_ROUTER_PROFILE_QUALITY",
11
10
  SmartRouterProfileBalanced: "SMART_ROUTER_PROFILE_BALANCED",
12
11
  SmartRouterProfileCost: "SMART_ROUTER_PROFILE_COST",
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const SyncStatus = {
9
- SyncStatusUnspecified: "SYNC_STATUS_UNSPECIFIED",
10
9
  SyncStatusSynced: "SYNC_STATUS_SYNCED",
11
10
  SyncStatusFailed: "SYNC_STATUS_FAILED",
12
11
  SyncStatusPending: "SYNC_STATUS_PENDING",
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const TelemetryQueryMode = {
9
- TelemetryQueryModeUnspecified: "TELEMETRY_QUERY_MODE_UNSPECIFIED",
10
9
  TelemetryQueryModeScalar: "TELEMETRY_QUERY_MODE_SCALAR",
11
10
  TelemetryQueryModeTimeSeries: "TELEMETRY_QUERY_MODE_TIME_SERIES",
12
11
  } as const;
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const TelemetryResultKind = {
9
- TelemetryResultKindUnspecified: "TELEMETRY_RESULT_KIND_UNSPECIFIED",
10
9
  TelemetryResultKindScalar: "TELEMETRY_RESULT_KIND_SCALAR",
11
10
  TelemetryResultKindGroupedScalar: "TELEMETRY_RESULT_KIND_GROUPED_SCALAR",
12
11
  TelemetryResultKindTimeSeries: "TELEMETRY_RESULT_KIND_TIME_SERIES",
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const TelemetrySource = {
9
- TelemetrySourceUnspecified: "TELEMETRY_SOURCE_UNSPECIFIED",
10
9
  TelemetrySourceTraces: "TELEMETRY_SOURCE_TRACES",
11
10
  TelemetrySourceMetrics: "TELEMETRY_SOURCE_METRICS",
12
11
  TelemetrySourceLogs: "TELEMETRY_SOURCE_LOGS",
@@ -6,8 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const TelemetryValueCardinality = {
9
- TelemetryValueCardinalityUnspecified:
10
- "TELEMETRY_VALUE_CARDINALITY_UNSPECIFIED",
11
9
  TelemetryValueCardinalitySingle: "TELEMETRY_VALUE_CARDINALITY_SINGLE",
12
10
  TelemetryValueCardinalityMultiple: "TELEMETRY_VALUE_CARDINALITY_MULTIPLE",
13
11
  } as const;