@unkey/api 2.0.5 → 2.0.6

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 (224) hide show
  1. package/README.md +2 -6
  2. package/RUNTIMES.md +6 -6
  3. package/bin/mcp-server.js +47 -52
  4. package/bin/mcp-server.js.map +44 -44
  5. package/dist/commonjs/funcs/apisCreateApi.js +1 -1
  6. package/dist/commonjs/funcs/apisCreateApi.js.map +1 -1
  7. package/dist/commonjs/funcs/apisDeleteApi.js +1 -1
  8. package/dist/commonjs/funcs/apisDeleteApi.js.map +1 -1
  9. package/dist/commonjs/funcs/apisGetApi.js +1 -1
  10. package/dist/commonjs/funcs/apisGetApi.js.map +1 -1
  11. package/dist/commonjs/funcs/apisListKeys.js +1 -1
  12. package/dist/commonjs/funcs/apisListKeys.js.map +1 -1
  13. package/dist/commonjs/funcs/identitiesCreateIdentity.js +1 -1
  14. package/dist/commonjs/funcs/identitiesCreateIdentity.js.map +1 -1
  15. package/dist/commonjs/funcs/identitiesDeleteIdentity.js +1 -1
  16. package/dist/commonjs/funcs/identitiesDeleteIdentity.js.map +1 -1
  17. package/dist/commonjs/funcs/identitiesGetIdentity.js +1 -1
  18. package/dist/commonjs/funcs/identitiesGetIdentity.js.map +1 -1
  19. package/dist/commonjs/funcs/identitiesListIdentities.js +1 -1
  20. package/dist/commonjs/funcs/identitiesListIdentities.js.map +1 -1
  21. package/dist/commonjs/funcs/identitiesUpdateIdentity.js +1 -1
  22. package/dist/commonjs/funcs/identitiesUpdateIdentity.js.map +1 -1
  23. package/dist/commonjs/funcs/keysAddPermissions.js +1 -1
  24. package/dist/commonjs/funcs/keysAddPermissions.js.map +1 -1
  25. package/dist/commonjs/funcs/keysAddRoles.js +1 -1
  26. package/dist/commonjs/funcs/keysAddRoles.js.map +1 -1
  27. package/dist/commonjs/funcs/keysCreateKey.js +1 -1
  28. package/dist/commonjs/funcs/keysCreateKey.js.map +1 -1
  29. package/dist/commonjs/funcs/keysDeleteKey.js +1 -1
  30. package/dist/commonjs/funcs/keysDeleteKey.js.map +1 -1
  31. package/dist/commonjs/funcs/keysGetKey.js +1 -1
  32. package/dist/commonjs/funcs/keysGetKey.js.map +1 -1
  33. package/dist/commonjs/funcs/keysRemovePermissions.js +1 -1
  34. package/dist/commonjs/funcs/keysRemovePermissions.js.map +1 -1
  35. package/dist/commonjs/funcs/keysRemoveRoles.js +1 -1
  36. package/dist/commonjs/funcs/keysRemoveRoles.js.map +1 -1
  37. package/dist/commonjs/funcs/keysRerollKey.js +1 -1
  38. package/dist/commonjs/funcs/keysRerollKey.js.map +1 -1
  39. package/dist/commonjs/funcs/keysSetPermissions.js +1 -1
  40. package/dist/commonjs/funcs/keysSetPermissions.js.map +1 -1
  41. package/dist/commonjs/funcs/keysSetRoles.js +1 -1
  42. package/dist/commonjs/funcs/keysSetRoles.js.map +1 -1
  43. package/dist/commonjs/funcs/keysUpdateCredits.js +1 -1
  44. package/dist/commonjs/funcs/keysUpdateCredits.js.map +1 -1
  45. package/dist/commonjs/funcs/keysUpdateKey.js +1 -1
  46. package/dist/commonjs/funcs/keysUpdateKey.js.map +1 -1
  47. package/dist/commonjs/funcs/keysVerifyKey.js +1 -1
  48. package/dist/commonjs/funcs/keysVerifyKey.js.map +1 -1
  49. package/dist/commonjs/funcs/keysWhoami.js +1 -1
  50. package/dist/commonjs/funcs/keysWhoami.js.map +1 -1
  51. package/dist/commonjs/funcs/permissionsCreatePermission.js +1 -1
  52. package/dist/commonjs/funcs/permissionsCreatePermission.js.map +1 -1
  53. package/dist/commonjs/funcs/permissionsCreateRole.js +1 -1
  54. package/dist/commonjs/funcs/permissionsCreateRole.js.map +1 -1
  55. package/dist/commonjs/funcs/permissionsDeletePermission.js +1 -1
  56. package/dist/commonjs/funcs/permissionsDeletePermission.js.map +1 -1
  57. package/dist/commonjs/funcs/permissionsDeleteRole.js +1 -1
  58. package/dist/commonjs/funcs/permissionsDeleteRole.js.map +1 -1
  59. package/dist/commonjs/funcs/permissionsGetPermission.js +1 -1
  60. package/dist/commonjs/funcs/permissionsGetPermission.js.map +1 -1
  61. package/dist/commonjs/funcs/permissionsGetRole.js +1 -1
  62. package/dist/commonjs/funcs/permissionsGetRole.js.map +1 -1
  63. package/dist/commonjs/funcs/permissionsListPermissions.js +1 -1
  64. package/dist/commonjs/funcs/permissionsListPermissions.js.map +1 -1
  65. package/dist/commonjs/funcs/permissionsListRoles.js +1 -1
  66. package/dist/commonjs/funcs/permissionsListRoles.js.map +1 -1
  67. package/dist/commonjs/funcs/ratelimitDeleteOverride.js +1 -1
  68. package/dist/commonjs/funcs/ratelimitDeleteOverride.js.map +1 -1
  69. package/dist/commonjs/funcs/ratelimitGetOverride.js +1 -1
  70. package/dist/commonjs/funcs/ratelimitGetOverride.js.map +1 -1
  71. package/dist/commonjs/funcs/ratelimitLimit.js +1 -1
  72. package/dist/commonjs/funcs/ratelimitLimit.js.map +1 -1
  73. package/dist/commonjs/funcs/ratelimitListOverrides.js +1 -1
  74. package/dist/commonjs/funcs/ratelimitListOverrides.js.map +1 -1
  75. package/dist/commonjs/funcs/ratelimitSetOverride.js +1 -1
  76. package/dist/commonjs/funcs/ratelimitSetOverride.js.map +1 -1
  77. package/dist/commonjs/lib/config.d.ts +3 -3
  78. package/dist/commonjs/lib/config.js +3 -3
  79. package/dist/commonjs/lib/config.js.map +1 -1
  80. package/dist/commonjs/lib/url.js +1 -1
  81. package/dist/commonjs/lib/url.js.map +1 -1
  82. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  83. package/dist/commonjs/mcp-server/server.js +1 -1
  84. package/dist/commonjs/models/components/identity.d.ts +6 -26
  85. package/dist/commonjs/models/components/identity.d.ts.map +1 -1
  86. package/dist/commonjs/models/components/identity.js +3 -26
  87. package/dist/commonjs/models/components/identity.js.map +1 -1
  88. package/dist/commonjs/models/errors/index.d.ts +1 -0
  89. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  90. package/dist/commonjs/models/errors/index.js +1 -0
  91. package/dist/commonjs/models/errors/index.js.map +1 -1
  92. package/dist/esm/funcs/apisCreateApi.js +1 -1
  93. package/dist/esm/funcs/apisCreateApi.js.map +1 -1
  94. package/dist/esm/funcs/apisDeleteApi.js +1 -1
  95. package/dist/esm/funcs/apisDeleteApi.js.map +1 -1
  96. package/dist/esm/funcs/apisGetApi.js +1 -1
  97. package/dist/esm/funcs/apisGetApi.js.map +1 -1
  98. package/dist/esm/funcs/apisListKeys.js +1 -1
  99. package/dist/esm/funcs/apisListKeys.js.map +1 -1
  100. package/dist/esm/funcs/identitiesCreateIdentity.js +1 -1
  101. package/dist/esm/funcs/identitiesCreateIdentity.js.map +1 -1
  102. package/dist/esm/funcs/identitiesDeleteIdentity.js +1 -1
  103. package/dist/esm/funcs/identitiesDeleteIdentity.js.map +1 -1
  104. package/dist/esm/funcs/identitiesGetIdentity.js +1 -1
  105. package/dist/esm/funcs/identitiesGetIdentity.js.map +1 -1
  106. package/dist/esm/funcs/identitiesListIdentities.js +1 -1
  107. package/dist/esm/funcs/identitiesListIdentities.js.map +1 -1
  108. package/dist/esm/funcs/identitiesUpdateIdentity.js +1 -1
  109. package/dist/esm/funcs/identitiesUpdateIdentity.js.map +1 -1
  110. package/dist/esm/funcs/keysAddPermissions.js +1 -1
  111. package/dist/esm/funcs/keysAddPermissions.js.map +1 -1
  112. package/dist/esm/funcs/keysAddRoles.js +1 -1
  113. package/dist/esm/funcs/keysAddRoles.js.map +1 -1
  114. package/dist/esm/funcs/keysCreateKey.js +1 -1
  115. package/dist/esm/funcs/keysCreateKey.js.map +1 -1
  116. package/dist/esm/funcs/keysDeleteKey.js +1 -1
  117. package/dist/esm/funcs/keysDeleteKey.js.map +1 -1
  118. package/dist/esm/funcs/keysGetKey.js +1 -1
  119. package/dist/esm/funcs/keysGetKey.js.map +1 -1
  120. package/dist/esm/funcs/keysRemovePermissions.js +1 -1
  121. package/dist/esm/funcs/keysRemovePermissions.js.map +1 -1
  122. package/dist/esm/funcs/keysRemoveRoles.js +1 -1
  123. package/dist/esm/funcs/keysRemoveRoles.js.map +1 -1
  124. package/dist/esm/funcs/keysRerollKey.js +1 -1
  125. package/dist/esm/funcs/keysRerollKey.js.map +1 -1
  126. package/dist/esm/funcs/keysSetPermissions.js +1 -1
  127. package/dist/esm/funcs/keysSetPermissions.js.map +1 -1
  128. package/dist/esm/funcs/keysSetRoles.js +1 -1
  129. package/dist/esm/funcs/keysSetRoles.js.map +1 -1
  130. package/dist/esm/funcs/keysUpdateCredits.js +1 -1
  131. package/dist/esm/funcs/keysUpdateCredits.js.map +1 -1
  132. package/dist/esm/funcs/keysUpdateKey.js +1 -1
  133. package/dist/esm/funcs/keysUpdateKey.js.map +1 -1
  134. package/dist/esm/funcs/keysVerifyKey.js +1 -1
  135. package/dist/esm/funcs/keysVerifyKey.js.map +1 -1
  136. package/dist/esm/funcs/keysWhoami.js +1 -1
  137. package/dist/esm/funcs/keysWhoami.js.map +1 -1
  138. package/dist/esm/funcs/permissionsCreatePermission.js +1 -1
  139. package/dist/esm/funcs/permissionsCreatePermission.js.map +1 -1
  140. package/dist/esm/funcs/permissionsCreateRole.js +1 -1
  141. package/dist/esm/funcs/permissionsCreateRole.js.map +1 -1
  142. package/dist/esm/funcs/permissionsDeletePermission.js +1 -1
  143. package/dist/esm/funcs/permissionsDeletePermission.js.map +1 -1
  144. package/dist/esm/funcs/permissionsDeleteRole.js +1 -1
  145. package/dist/esm/funcs/permissionsDeleteRole.js.map +1 -1
  146. package/dist/esm/funcs/permissionsGetPermission.js +1 -1
  147. package/dist/esm/funcs/permissionsGetPermission.js.map +1 -1
  148. package/dist/esm/funcs/permissionsGetRole.js +1 -1
  149. package/dist/esm/funcs/permissionsGetRole.js.map +1 -1
  150. package/dist/esm/funcs/permissionsListPermissions.js +1 -1
  151. package/dist/esm/funcs/permissionsListPermissions.js.map +1 -1
  152. package/dist/esm/funcs/permissionsListRoles.js +1 -1
  153. package/dist/esm/funcs/permissionsListRoles.js.map +1 -1
  154. package/dist/esm/funcs/ratelimitDeleteOverride.js +1 -1
  155. package/dist/esm/funcs/ratelimitDeleteOverride.js.map +1 -1
  156. package/dist/esm/funcs/ratelimitGetOverride.js +1 -1
  157. package/dist/esm/funcs/ratelimitGetOverride.js.map +1 -1
  158. package/dist/esm/funcs/ratelimitLimit.js +1 -1
  159. package/dist/esm/funcs/ratelimitLimit.js.map +1 -1
  160. package/dist/esm/funcs/ratelimitListOverrides.js +1 -1
  161. package/dist/esm/funcs/ratelimitListOverrides.js.map +1 -1
  162. package/dist/esm/funcs/ratelimitSetOverride.js +1 -1
  163. package/dist/esm/funcs/ratelimitSetOverride.js.map +1 -1
  164. package/dist/esm/lib/config.d.ts +3 -3
  165. package/dist/esm/lib/config.js +3 -3
  166. package/dist/esm/lib/config.js.map +1 -1
  167. package/dist/esm/lib/url.js +1 -1
  168. package/dist/esm/lib/url.js.map +1 -1
  169. package/dist/esm/mcp-server/mcp-server.js +1 -1
  170. package/dist/esm/mcp-server/server.js +1 -1
  171. package/dist/esm/models/components/identity.d.ts +6 -26
  172. package/dist/esm/models/components/identity.d.ts.map +1 -1
  173. package/dist/esm/models/components/identity.js +2 -23
  174. package/dist/esm/models/components/identity.js.map +1 -1
  175. package/dist/esm/models/errors/index.d.ts +1 -0
  176. package/dist/esm/models/errors/index.d.ts.map +1 -1
  177. package/dist/esm/models/errors/index.js +1 -0
  178. package/dist/esm/models/errors/index.js.map +1 -1
  179. package/examples/package-lock.json +1 -1
  180. package/jsr.json +1 -1
  181. package/package.json +1 -1
  182. package/src/funcs/apisCreateApi.ts +1 -1
  183. package/src/funcs/apisDeleteApi.ts +1 -1
  184. package/src/funcs/apisGetApi.ts +1 -1
  185. package/src/funcs/apisListKeys.ts +1 -1
  186. package/src/funcs/identitiesCreateIdentity.ts +1 -1
  187. package/src/funcs/identitiesDeleteIdentity.ts +1 -1
  188. package/src/funcs/identitiesGetIdentity.ts +1 -1
  189. package/src/funcs/identitiesListIdentities.ts +1 -1
  190. package/src/funcs/identitiesUpdateIdentity.ts +1 -1
  191. package/src/funcs/keysAddPermissions.ts +1 -1
  192. package/src/funcs/keysAddRoles.ts +1 -1
  193. package/src/funcs/keysCreateKey.ts +1 -1
  194. package/src/funcs/keysDeleteKey.ts +1 -1
  195. package/src/funcs/keysGetKey.ts +1 -1
  196. package/src/funcs/keysRemovePermissions.ts +1 -1
  197. package/src/funcs/keysRemoveRoles.ts +1 -1
  198. package/src/funcs/keysRerollKey.ts +1 -1
  199. package/src/funcs/keysSetPermissions.ts +1 -1
  200. package/src/funcs/keysSetRoles.ts +1 -1
  201. package/src/funcs/keysUpdateCredits.ts +1 -1
  202. package/src/funcs/keysUpdateKey.ts +1 -1
  203. package/src/funcs/keysVerifyKey.ts +1 -1
  204. package/src/funcs/keysWhoami.ts +1 -1
  205. package/src/funcs/permissionsCreatePermission.ts +1 -1
  206. package/src/funcs/permissionsCreateRole.ts +1 -1
  207. package/src/funcs/permissionsDeletePermission.ts +1 -1
  208. package/src/funcs/permissionsDeleteRole.ts +1 -1
  209. package/src/funcs/permissionsGetPermission.ts +1 -1
  210. package/src/funcs/permissionsGetRole.ts +1 -1
  211. package/src/funcs/permissionsListPermissions.ts +1 -1
  212. package/src/funcs/permissionsListRoles.ts +1 -1
  213. package/src/funcs/ratelimitDeleteOverride.ts +1 -1
  214. package/src/funcs/ratelimitGetOverride.ts +1 -1
  215. package/src/funcs/ratelimitLimit.ts +1 -1
  216. package/src/funcs/ratelimitListOverrides.ts +1 -1
  217. package/src/funcs/ratelimitSetOverride.ts +1 -1
  218. package/src/lib/config.ts +3 -3
  219. package/src/lib/url.ts +1 -1
  220. package/src/mcp-server/mcp-server.ts +1 -1
  221. package/src/mcp-server/server.ts +1 -1
  222. package/src/models/components/identity.ts +4 -53
  223. package/src/models/errors/index.ts +1 -0
  224. package/docs/sdks/unkey/README.md +0 -82
@@ -125,7 +125,7 @@ async function $do(
125
125
  options: client._options,
126
126
  baseURL: options?.serverURL ?? client._baseURL ?? "",
127
127
  operationID: "setRoles",
128
- oAuth2Scopes: [],
128
+ oAuth2Scopes: null,
129
129
 
130
130
  resolvedSecurity: requestSecurity,
131
131
 
@@ -126,7 +126,7 @@ async function $do(
126
126
  options: client._options,
127
127
  baseURL: options?.serverURL ?? client._baseURL ?? "",
128
128
  operationID: "updateCredits",
129
- oAuth2Scopes: [],
129
+ oAuth2Scopes: null,
130
130
 
131
131
  resolvedSecurity: requestSecurity,
132
132
 
@@ -126,7 +126,7 @@ async function $do(
126
126
  options: client._options,
127
127
  baseURL: options?.serverURL ?? client._baseURL ?? "",
128
128
  operationID: "updateKey",
129
- oAuth2Scopes: [],
129
+ oAuth2Scopes: null,
130
130
 
131
131
  resolvedSecurity: requestSecurity,
132
132
 
@@ -129,7 +129,7 @@ async function $do(
129
129
  options: client._options,
130
130
  baseURL: options?.serverURL ?? client._baseURL ?? "",
131
131
  operationID: "verifyKey",
132
- oAuth2Scopes: [],
132
+ oAuth2Scopes: null,
133
133
 
134
134
  resolvedSecurity: requestSecurity,
135
135
 
@@ -119,7 +119,7 @@ async function $do(
119
119
  options: client._options,
120
120
  baseURL: options?.serverURL ?? client._baseURL ?? "",
121
121
  operationID: "whoami",
122
- oAuth2Scopes: [],
122
+ oAuth2Scopes: null,
123
123
 
124
124
  resolvedSecurity: requestSecurity,
125
125
 
@@ -123,7 +123,7 @@ async function $do(
123
123
  options: client._options,
124
124
  baseURL: options?.serverURL ?? client._baseURL ?? "",
125
125
  operationID: "createPermission",
126
- oAuth2Scopes: [],
126
+ oAuth2Scopes: null,
127
127
 
128
128
  resolvedSecurity: requestSecurity,
129
129
 
@@ -119,7 +119,7 @@ async function $do(
119
119
  options: client._options,
120
120
  baseURL: options?.serverURL ?? client._baseURL ?? "",
121
121
  operationID: "createRole",
122
- oAuth2Scopes: [],
122
+ oAuth2Scopes: null,
123
123
 
124
124
  resolvedSecurity: requestSecurity,
125
125
 
@@ -121,7 +121,7 @@ async function $do(
121
121
  options: client._options,
122
122
  baseURL: options?.serverURL ?? client._baseURL ?? "",
123
123
  operationID: "deletePermission",
124
- oAuth2Scopes: [],
124
+ oAuth2Scopes: null,
125
125
 
126
126
  resolvedSecurity: requestSecurity,
127
127
 
@@ -117,7 +117,7 @@ async function $do(
117
117
  options: client._options,
118
118
  baseURL: options?.serverURL ?? client._baseURL ?? "",
119
119
  operationID: "deleteRole",
120
- oAuth2Scopes: [],
120
+ oAuth2Scopes: null,
121
121
 
122
122
  resolvedSecurity: requestSecurity,
123
123
 
@@ -119,7 +119,7 @@ async function $do(
119
119
  options: client._options,
120
120
  baseURL: options?.serverURL ?? client._baseURL ?? "",
121
121
  operationID: "getPermission",
122
- oAuth2Scopes: [],
122
+ oAuth2Scopes: null,
123
123
 
124
124
  resolvedSecurity: requestSecurity,
125
125
 
@@ -117,7 +117,7 @@ async function $do(
117
117
  options: client._options,
118
118
  baseURL: options?.serverURL ?? client._baseURL ?? "",
119
119
  operationID: "getRole",
120
- oAuth2Scopes: [],
120
+ oAuth2Scopes: null,
121
121
 
122
122
  resolvedSecurity: requestSecurity,
123
123
 
@@ -118,7 +118,7 @@ async function $do(
118
118
  options: client._options,
119
119
  baseURL: options?.serverURL ?? client._baseURL ?? "",
120
120
  operationID: "listPermissions",
121
- oAuth2Scopes: [],
121
+ oAuth2Scopes: null,
122
122
 
123
123
  resolvedSecurity: requestSecurity,
124
124
 
@@ -118,7 +118,7 @@ async function $do(
118
118
  options: client._options,
119
119
  baseURL: options?.serverURL ?? client._baseURL ?? "",
120
120
  operationID: "listRoles",
121
- oAuth2Scopes: [],
121
+ oAuth2Scopes: null,
122
122
 
123
123
  resolvedSecurity: requestSecurity,
124
124
 
@@ -120,7 +120,7 @@ async function $do(
120
120
  options: client._options,
121
121
  baseURL: options?.serverURL ?? client._baseURL ?? "",
122
122
  operationID: "ratelimit.deleteOverride",
123
- oAuth2Scopes: [],
123
+ oAuth2Scopes: null,
124
124
 
125
125
  resolvedSecurity: requestSecurity,
126
126
 
@@ -118,7 +118,7 @@ async function $do(
118
118
  options: client._options,
119
119
  baseURL: options?.serverURL ?? client._baseURL ?? "",
120
120
  operationID: "ratelimit.getOverride",
121
- oAuth2Scopes: [],
121
+ oAuth2Scopes: null,
122
122
 
123
123
  resolvedSecurity: requestSecurity,
124
124
 
@@ -128,7 +128,7 @@ async function $do(
128
128
  options: client._options,
129
129
  baseURL: options?.serverURL ?? client._baseURL ?? "",
130
130
  operationID: "ratelimit.limit",
131
- oAuth2Scopes: [],
131
+ oAuth2Scopes: null,
132
132
 
133
133
  resolvedSecurity: requestSecurity,
134
134
 
@@ -120,7 +120,7 @@ async function $do(
120
120
  options: client._options,
121
121
  baseURL: options?.serverURL ?? client._baseURL ?? "",
122
122
  operationID: "ratelimit.listOverrides",
123
- oAuth2Scopes: [],
123
+ oAuth2Scopes: null,
124
124
 
125
125
  resolvedSecurity: requestSecurity,
126
126
 
@@ -118,7 +118,7 @@ async function $do(
118
118
  options: client._options,
119
119
  baseURL: options?.serverURL ?? client._baseURL ?? "",
120
120
  operationID: "ratelimit.setOverride",
121
- oAuth2Scopes: [],
121
+ oAuth2Scopes: null,
122
122
 
123
123
  resolvedSecurity: requestSecurity,
124
124
 
package/src/lib/config.ts CHANGED
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
58
58
  export const SDK_METADATA = {
59
59
  language: "typescript",
60
60
  openapiDocVersion: "2.0.0",
61
- sdkVersion: "2.0.5",
62
- genVersion: "2.698.4",
63
- userAgent: "speakeasy-sdk/typescript 2.0.5 2.698.4 2.0.0 @unkey/api",
61
+ sdkVersion: "2.0.6",
62
+ genVersion: "2.723.11",
63
+ userAgent: "speakeasy-sdk/typescript 2.0.6 2.723.11 2.0.0 @unkey/api",
64
64
  } as const;
package/src/lib/url.ts CHANGED
@@ -10,7 +10,7 @@ export function pathToFunc(
10
10
  pathPattern: string,
11
11
  options?: { charEncoding?: "percent" | "none" },
12
12
  ): (params?: Params) => string {
13
- const paramRE = /\{([a-zA-Z0-9_]+?)\}/g;
13
+ const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
14
14
 
15
15
  return function buildURLPath(params: Record<string, unknown> = {}): string {
16
16
  return pathPattern.replace(paramRE, function (_, placeholder) {
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "2.0.5",
22
+ currentVersion: "2.0.6",
23
23
  },
24
24
  });
25
25
 
@@ -60,7 +60,7 @@ export function createMCPServer(deps: {
60
60
  }) {
61
61
  const server = new McpServer({
62
62
  name: "Unkey",
63
- version: "2.0.5",
63
+ version: "2.0.6",
64
64
  });
65
65
 
66
66
  const client = new UnkeyCore({
@@ -13,11 +13,6 @@ import {
13
13
  RatelimitResponse$outboundSchema,
14
14
  } from "./ratelimitresponse.js";
15
15
 
16
- /**
17
- * Identity metadata
18
- */
19
- export type IdentityMeta = {};
20
-
21
16
  export type Identity = {
22
17
  /**
23
18
  * Identity ID
@@ -30,57 +25,13 @@ export type Identity = {
30
25
  /**
31
26
  * Identity metadata
32
27
  */
33
- meta?: IdentityMeta | undefined;
28
+ meta?: { [k: string]: any } | undefined;
34
29
  /**
35
30
  * Identity ratelimits
36
31
  */
37
32
  ratelimits?: Array<RatelimitResponse> | undefined;
38
33
  };
39
34
 
40
- /** @internal */
41
- export const IdentityMeta$inboundSchema: z.ZodType<
42
- IdentityMeta,
43
- z.ZodTypeDef,
44
- unknown
45
- > = z.object({});
46
-
47
- /** @internal */
48
- export type IdentityMeta$Outbound = {};
49
-
50
- /** @internal */
51
- export const IdentityMeta$outboundSchema: z.ZodType<
52
- IdentityMeta$Outbound,
53
- z.ZodTypeDef,
54
- IdentityMeta
55
- > = z.object({});
56
-
57
- /**
58
- * @internal
59
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
- */
61
- export namespace IdentityMeta$ {
62
- /** @deprecated use `IdentityMeta$inboundSchema` instead. */
63
- export const inboundSchema = IdentityMeta$inboundSchema;
64
- /** @deprecated use `IdentityMeta$outboundSchema` instead. */
65
- export const outboundSchema = IdentityMeta$outboundSchema;
66
- /** @deprecated use `IdentityMeta$Outbound` instead. */
67
- export type Outbound = IdentityMeta$Outbound;
68
- }
69
-
70
- export function identityMetaToJSON(identityMeta: IdentityMeta): string {
71
- return JSON.stringify(IdentityMeta$outboundSchema.parse(identityMeta));
72
- }
73
-
74
- export function identityMetaFromJSON(
75
- jsonString: string,
76
- ): SafeParseResult<IdentityMeta, SDKValidationError> {
77
- return safeParse(
78
- jsonString,
79
- (x) => IdentityMeta$inboundSchema.parse(JSON.parse(x)),
80
- `Failed to parse 'IdentityMeta' from JSON`,
81
- );
82
- }
83
-
84
35
  /** @internal */
85
36
  export const Identity$inboundSchema: z.ZodType<
86
37
  Identity,
@@ -89,7 +40,7 @@ export const Identity$inboundSchema: z.ZodType<
89
40
  > = z.object({
90
41
  id: z.string(),
91
42
  externalId: z.string(),
92
- meta: z.lazy(() => IdentityMeta$inboundSchema).optional(),
43
+ meta: z.record(z.any()).optional(),
93
44
  ratelimits: z.array(RatelimitResponse$inboundSchema).optional(),
94
45
  });
95
46
 
@@ -97,7 +48,7 @@ export const Identity$inboundSchema: z.ZodType<
97
48
  export type Identity$Outbound = {
98
49
  id: string;
99
50
  externalId: string;
100
- meta?: IdentityMeta$Outbound | undefined;
51
+ meta?: { [k: string]: any } | undefined;
101
52
  ratelimits?: Array<RatelimitResponse$Outbound> | undefined;
102
53
  };
103
54
 
@@ -109,7 +60,7 @@ export const Identity$outboundSchema: z.ZodType<
109
60
  > = z.object({
110
61
  id: z.string(),
111
62
  externalId: z.string(),
112
- meta: z.lazy(() => IdentityMeta$outboundSchema).optional(),
63
+ meta: z.record(z.any()).optional(),
113
64
  ratelimits: z.array(RatelimitResponse$outboundSchema).optional(),
114
65
  });
115
66
 
@@ -14,3 +14,4 @@ export * from "./preconditionfailederrorresponse.js";
14
14
  export * from "./responsevalidationerror.js";
15
15
  export * from "./sdkvalidationerror.js";
16
16
  export * from "./unauthorizederrorresponse.js";
17
+ export * from "./unkeyerror.js";
@@ -1,82 +0,0 @@
1
- # Unkey SDK
2
-
3
- ## Overview
4
-
5
- Unkey API: Unkey's API provides programmatic access for all resources within our platform.
6
-
7
-
8
- ### Authentication
9
- #
10
- This API uses HTTP Bearer authentication with root keys. Most endpoints require specific permissions associated with your root key. When making requests, include your root key in the `Authorization` header:
11
- ```
12
- Authorization: Bearer unkey_xxxxxxxxxxx
13
- ```
14
-
15
- All responses follow a consistent envelope structure that separates operational metadata from actual data. This design provides several benefits:
16
- - Debugging: Every response includes a unique requestId for tracing issues
17
- - Consistency: Predictable response format across all endpoints
18
- - Extensibility: Easy to add new metadata without breaking existing integrations
19
- - Error Handling: Unified error format with actionable information
20
-
21
- ### Success Response Format:
22
- ```json
23
- {
24
- "meta": {
25
- "requestId": "req_123456"
26
- },
27
- "data": {
28
- // Actual response data here
29
- }
30
- }
31
- ```
32
-
33
- The meta object contains operational information:
34
- - `requestId`: Unique identifier for this request (essential for support)
35
-
36
- The data object contains the actual response data specific to each endpoint.
37
-
38
- ### Paginated Response Format:
39
- ```json
40
- {
41
- "meta": {
42
- "requestId": "req_123456"
43
- },
44
- "data": [
45
- // Array of results
46
- ],
47
- "pagination": {
48
- "cursor": "next_page_token",
49
- "hasMore": true
50
- }
51
- }
52
- ```
53
-
54
- The pagination object appears on list endpoints and contains:
55
- - `cursor`: Token for requesting the next page
56
- - `hasMore`: Whether more results are available
57
-
58
- ### Error Response Format:
59
- ```json
60
- {
61
- "meta": {
62
- "requestId": "req_2c9a0jf23l4k567"
63
- },
64
- "error": {
65
- "detail": "The resource you are attempting to modify is protected and cannot be changed",
66
- "status": 403,
67
- "title": "Forbidden",
68
- "type": "https://unkey.com/docs/errors/unkey/application/protected_resource"
69
- }
70
- }
71
- ```
72
-
73
- Error responses include comprehensive diagnostic information:
74
- - `title`: Human-readable error summary
75
- - `detail`: Specific description of what went wrong
76
- - `status`: HTTP status code
77
- - `type`: Link to error documentation
78
- - `errors`: Array of validation errors (for 400 responses)
79
-
80
- This structure ensures you always have the context needed to debug issues and take corrective action.
81
-
82
- ### Available Operations