@orq-ai/node 4.16.9 → 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 (122) 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/lib/config.js.map +1 -1
  7. package/models/components/reasoningpart.js +1 -1
  8. package/models/operations/createtool.js +4 -4
  9. package/models/operations/getalltools.js +4 -4
  10. package/models/operations/getv2humanevalsets.js +2 -2
  11. package/models/operations/getv2humanevalsetsid.js +2 -2
  12. package/models/operations/listdeploymentversions.js +1 -1
  13. package/models/operations/patchv2humanevalsetsid.js +2 -2
  14. package/models/operations/postv2feedbackevaluation.js +4 -4
  15. package/models/operations/postv2humanevalsets.js +2 -2
  16. package/models/operations/retrievetool.js +4 -4
  17. package/models/operations/runagent.js +1 -1
  18. package/models/operations/searchweb.d.ts +3 -1
  19. package/models/operations/searchweb.d.ts.map +1 -1
  20. package/models/operations/searchweb.js +2 -0
  21. package/models/operations/searchweb.js.map +1 -1
  22. package/models/operations/streamrunagent.js +1 -1
  23. package/models/operations/updatetool.js +4 -4
  24. package/package.json +5 -5
  25. package/packages/orq-rc/src/funcs/modelsAzureFoundryDeployments.ts +1 -1
  26. package/packages/orq-rc/src/funcs/modelsUpdate.ts +1 -1
  27. package/packages/orq-rc/src/lib/config.ts +2 -2
  28. package/packages/orq-rc/src/models/components/alertscope.ts +0 -1
  29. package/packages/orq-rc/src/models/components/alerttelemetrysource.ts +0 -1
  30. package/packages/orq-rc/src/models/components/budgetalertdimension.ts +0 -1
  31. package/packages/orq-rc/src/models/components/budgetperiod.ts +0 -1
  32. package/packages/orq-rc/src/models/components/budgetscopekind.ts +0 -1
  33. package/packages/orq-rc/src/models/components/budgetsortfield.ts +0 -1
  34. package/packages/orq-rc/src/models/components/createmanagementkeyrequest.ts +2 -3
  35. package/packages/orq-rc/src/models/components/createmcpgatewayrequest.ts +7 -0
  36. package/packages/orq-rc/src/models/components/domainverificationstatus.ts +0 -1
  37. package/packages/orq-rc/src/models/components/filepurpose.ts +0 -1
  38. package/packages/orq-rc/src/models/components/getlogcontextresponse.ts +1 -1
  39. package/packages/orq-rc/src/models/components/getlogresponse.ts +1 -1
  40. package/packages/orq-rc/src/models/components/identitysortfield.ts +0 -1
  41. package/packages/orq-rc/src/models/components/index.ts +5 -0
  42. package/packages/orq-rc/src/models/components/log.ts +1 -1
  43. package/packages/orq-rc/src/models/components/managementkey.ts +2 -2
  44. package/packages/orq-rc/src/models/components/managementkeystatus.ts +0 -1
  45. package/packages/orq-rc/src/models/components/managementpermissionmode.ts +0 -1
  46. package/packages/orq-rc/src/models/components/mcpauthconfig.ts +11 -0
  47. package/packages/orq-rc/src/models/components/mcpauthconfigoutput.ts +9 -0
  48. package/packages/orq-rc/src/models/components/mcpauthtype.ts +1 -1
  49. package/packages/orq-rc/src/models/components/mcpconnectiontype.ts +0 -1
  50. package/packages/orq-rc/src/models/components/mcpenterpriseauthconfig.ts +72 -0
  51. package/packages/orq-rc/src/models/components/mcpenterpriseauthconfigoutput.ts +62 -0
  52. package/packages/orq-rc/src/models/components/mcpgateway.ts +6 -0
  53. package/packages/orq-rc/src/models/components/mcpgatewaymode.ts +0 -1
  54. package/packages/orq-rc/src/models/components/mcpgatewayserverlink.ts +15 -0
  55. package/packages/orq-rc/src/models/components/mcpgatewaystatus.ts +0 -1
  56. package/packages/orq-rc/src/models/components/mcpserver.ts +6 -0
  57. package/packages/orq-rc/src/models/components/mcpskill.ts +85 -0
  58. package/packages/orq-rc/src/models/components/mcpskillexposure.ts +72 -0
  59. package/packages/orq-rc/src/models/components/mcpskillfile.ts +47 -0
  60. package/packages/orq-rc/src/models/components/mcpsyncstate.ts +6 -0
  61. package/packages/orq-rc/src/models/components/mcptoolexposuremode.ts +0 -1
  62. package/packages/orq-rc/src/models/components/mcptoolnaming.ts +0 -1
  63. package/packages/orq-rc/src/models/components/modeldocument.ts +3 -0
  64. package/packages/orq-rc/src/models/components/modelfusionpreset.ts +0 -1
  65. package/packages/orq-rc/src/models/components/modelfusionsynthesismode.ts +0 -2
  66. package/packages/orq-rc/src/models/components/monitortelemetrysource.ts +0 -1
  67. package/packages/orq-rc/src/models/components/notifiertype.ts +0 -1
  68. package/packages/orq-rc/src/models/components/pricing.ts +6 -0
  69. package/packages/orq-rc/src/models/components/pricingvariant.ts +6 -0
  70. package/packages/orq-rc/src/models/components/publicusage.ts +23 -0
  71. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  72. package/packages/orq-rc/src/models/components/sessioninterval.ts +0 -1
  73. package/packages/orq-rc/src/models/components/smartrouterprofile.ts +0 -1
  74. package/packages/orq-rc/src/models/components/syncstatus.ts +0 -1
  75. package/packages/orq-rc/src/models/components/telemetryquerymode.ts +0 -1
  76. package/packages/orq-rc/src/models/components/telemetryresultkind.ts +0 -1
  77. package/packages/orq-rc/src/models/components/telemetrysource.ts +0 -1
  78. package/packages/orq-rc/src/models/components/telemetryvaluecardinality.ts +0 -2
  79. package/packages/orq-rc/src/models/components/threadkind.ts +0 -1
  80. package/packages/orq-rc/src/models/components/updateidentityrequest.ts +1 -1
  81. package/packages/orq-rc/src/models/components/updatemcpgatewayrequest.ts +14 -0
  82. package/packages/orq-rc/src/models/components/updateworkspacesettingsrequest.ts +2 -4
  83. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +23 -0
  84. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  85. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  86. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  87. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  88. package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +1 -1
  89. package/packages/orq-rc/src/models/operations/modelcreate.ts +3 -0
  90. package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +3 -0
  91. package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +3 -0
  92. package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +3 -0
  93. package/packages/orq-rc/src/models/operations/modelupdate.ts +3 -0
  94. package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +3 -0
  95. package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +3 -0
  96. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
  98. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  99. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  100. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  101. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  102. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  103. package/packages/orq-rc/src/sdk/models.ts +2 -2
  104. package/sdk/websearch.d.ts +3 -3
  105. package/sdk/websearch.js +3 -3
  106. package/src/funcs/websearchSearch.ts +3 -3
  107. package/src/lib/config.ts +2 -2
  108. package/src/models/components/reasoningpart.ts +1 -1
  109. package/src/models/operations/createtool.ts +4 -4
  110. package/src/models/operations/getalltools.ts +4 -4
  111. package/src/models/operations/getv2humanevalsets.ts +2 -2
  112. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  113. package/src/models/operations/listdeploymentversions.ts +1 -1
  114. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  115. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  116. package/src/models/operations/postv2humanevalsets.ts +2 -2
  117. package/src/models/operations/retrievetool.ts +4 -4
  118. package/src/models/operations/runagent.ts +1 -1
  119. package/src/models/operations/searchweb.ts +3 -1
  120. package/src/models/operations/streamrunagent.ts +1 -1
  121. package/src/models/operations/updatetool.ts +4 -4
  122. 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;
@@ -397,6 +397,8 @@ export * from "./mcpauthconfigoutput.js";
397
397
  export * from "./mcpauthtype.js";
398
398
  export * from "./mcpconnection.js";
399
399
  export * from "./mcpconnectiontype.js";
400
+ export * from "./mcpenterpriseauthconfig.js";
401
+ export * from "./mcpenterpriseauthconfigoutput.js";
400
402
  export * from "./mcpgateway.js";
401
403
  export * from "./mcpgatewaymode.js";
402
404
  export * from "./mcpgatewayplugin.js";
@@ -409,6 +411,9 @@ export * from "./mcpheadersecretoutput.js";
409
411
  export * from "./mcpoauthconfig.js";
410
412
  export * from "./mcpoauthconfigoutput.js";
411
413
  export * from "./mcpserver.js";
414
+ export * from "./mcpskill.js";
415
+ export * from "./mcpskillexposure.js";
416
+ export * from "./mcpskillfile.js";
412
417
  export * from "./mcpsyncstate.js";
413
418
  export * from "./mcptool.js";
414
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",
@@ -5,6 +5,11 @@
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { McpAuthType, McpAuthType$outboundSchema } from "./mcpauthtype.js";
8
+ import {
9
+ McpEnterpriseAuthConfig,
10
+ McpEnterpriseAuthConfig$Outbound,
11
+ McpEnterpriseAuthConfig$outboundSchema,
12
+ } from "./mcpenterpriseauthconfig.js";
8
13
  import {
9
14
  McpHeaderSecret,
10
15
  McpHeaderSecret$Outbound,
@@ -26,6 +31,10 @@ export type McpAuthConfig = {
26
31
  * OAuth client credentials the gateway presents to the upstream authorization server; set when type is OAUTH_CLIENT_CREDENTIALS.
27
32
  */
28
33
  oauth?: McpOAuthConfig | undefined;
34
+ /**
35
+ * Client for the upstream authorization server; set when type is ENTERPRISE_MANAGED.
36
+ */
37
+ enterprise?: McpEnterpriseAuthConfig | undefined;
29
38
  };
30
39
 
31
40
  /** @internal */
@@ -33,6 +42,7 @@ export type McpAuthConfig$Outbound = {
33
42
  type: string;
34
43
  static_headers?: Array<McpHeaderSecret$Outbound> | undefined;
35
44
  oauth?: McpOAuthConfig$Outbound | undefined;
45
+ enterprise?: McpEnterpriseAuthConfig$Outbound | undefined;
36
46
  };
37
47
 
38
48
  /** @internal */
@@ -44,6 +54,7 @@ export const McpAuthConfig$outboundSchema: z.ZodType<
44
54
  type: McpAuthType$outboundSchema,
45
55
  staticHeaders: z.array(McpHeaderSecret$outboundSchema).optional(),
46
56
  oauth: McpOAuthConfig$outboundSchema.optional(),
57
+ enterprise: McpEnterpriseAuthConfig$outboundSchema.optional(),
47
58
  }).transform((v) => {
48
59
  return remap$(v, {
49
60
  staticHeaders: "static_headers",
@@ -8,6 +8,10 @@ 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
10
  import { McpAuthType, McpAuthType$inboundSchema } from "./mcpauthtype.js";
11
+ import {
12
+ McpEnterpriseAuthConfigOutput,
13
+ McpEnterpriseAuthConfigOutput$inboundSchema,
14
+ } from "./mcpenterpriseauthconfigoutput.js";
11
15
  import {
12
16
  McpHeaderSecretOutput,
13
17
  McpHeaderSecretOutput$inboundSchema,
@@ -27,6 +31,10 @@ export type McpAuthConfigOutput = {
27
31
  * OAuth client credentials the gateway presents to the upstream authorization server; set when type is OAUTH_CLIENT_CREDENTIALS.
28
32
  */
29
33
  oauth?: McpOAuthConfigOutput | undefined;
34
+ /**
35
+ * Client for the upstream authorization server; set when type is ENTERPRISE_MANAGED.
36
+ */
37
+ enterprise?: McpEnterpriseAuthConfigOutput | undefined;
30
38
  };
31
39
 
32
40
  /** @internal */
@@ -38,6 +46,7 @@ export const McpAuthConfigOutput$inboundSchema: z.ZodType<
38
46
  type: McpAuthType$inboundSchema,
39
47
  static_headers: z.array(McpHeaderSecretOutput$inboundSchema).optional(),
40
48
  oauth: McpOAuthConfigOutput$inboundSchema.optional(),
49
+ enterprise: McpEnterpriseAuthConfigOutput$inboundSchema.optional(),
41
50
  }).transform((v) => {
42
51
  return remap$(v, {
43
52
  "static_headers": "staticHeaders",
@@ -6,11 +6,11 @@ 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",
13
12
  McpAuthTypePerUserOauth: "MCP_AUTH_TYPE_PER_USER_OAUTH",
13
+ McpAuthTypeEnterpriseManaged: "MCP_AUTH_TYPE_ENTERPRISE_MANAGED",
14
14
  } as const;
15
15
  export type McpAuthType = ClosedEnum<typeof McpAuthType>;
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 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",
@@ -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
+
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
+ }
@@ -0,0 +1,62 @@
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
+ }
@@ -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
+ }