@meetkai/mka1 0.55.20 → 0.55.22
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.
- package/README.md +411 -404
- package/bin/mcp-server.js +3601 -3076
- package/bin/mcp-server.js.map +21 -13
- package/dist/commonjs/funcs/authApiKeysDelete.d.ts +20 -0
- package/dist/commonjs/funcs/authApiKeysDelete.d.ts.map +1 -0
- package/dist/commonjs/funcs/authApiKeysDelete.js +132 -0
- package/dist/commonjs/funcs/authApiKeysDelete.js.map +1 -0
- package/dist/commonjs/funcs/computeSecretsRotateComputeSecret.d.ts +19 -0
- package/dist/commonjs/funcs/computeSecretsRotateComputeSecret.d.ts.map +1 -0
- package/dist/commonjs/funcs/computeSecretsRotateComputeSecret.js +136 -0
- package/dist/commonjs/funcs/computeSecretsRotateComputeSecret.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +5 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/authApiKeysDelete.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/authApiKeysDelete.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/authApiKeysDelete.js +64 -0
- package/dist/commonjs/mcp-server/tools/authApiKeysDelete.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/computeSecretsRotateComputeSecret.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/computeSecretsRotateComputeSecret.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/computeSecretsRotateComputeSecret.js +64 -0
- package/dist/commonjs/mcp-server/tools/computeSecretsRotateComputeSecret.js.map +1 -0
- package/dist/commonjs/models/components/computesecret.d.ts +15 -0
- package/dist/commonjs/models/components/computesecret.d.ts.map +1 -1
- package/dist/commonjs/models/components/computesecret.js +10 -0
- package/dist/commonjs/models/components/computesecret.js.map +1 -1
- package/dist/commonjs/models/components/computesecretcreate.d.ts +5 -0
- package/dist/commonjs/models/components/computesecretcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/computesecretcreate.js +12 -0
- package/dist/commonjs/models/components/computesecretcreate.js.map +1 -1
- package/dist/commonjs/models/components/computesecretrotate.d.ts +26 -0
- package/dist/commonjs/models/components/computesecretrotate.d.ts.map +1 -0
- package/dist/commonjs/models/components/computesecretrotate.js +70 -0
- package/dist/commonjs/models/components/computesecretrotate.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/errors/deletescopedapikey.d.ts +188 -0
- package/dist/commonjs/models/errors/deletescopedapikey.d.ts.map +1 -0
- package/dist/commonjs/models/errors/deletescopedapikey.js +270 -0
- package/dist/commonjs/models/errors/deletescopedapikey.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/operations/deletescopedapikey.d.ts +53 -0
- package/dist/commonjs/models/operations/deletescopedapikey.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletescopedapikey.js +107 -0
- package/dist/commonjs/models/operations/deletescopedapikey.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/rotatecomputesecret.d.ts +34 -0
- package/dist/commonjs/models/operations/rotatecomputesecret.d.ts.map +1 -0
- package/dist/commonjs/models/operations/rotatecomputesecret.js +92 -0
- package/dist/commonjs/models/operations/rotatecomputesecret.js.map +1 -0
- package/dist/commonjs/models/operations/updatescopedapikey.d.ts +8 -24
- package/dist/commonjs/models/operations/updatescopedapikey.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatescopedapikey.js +8 -24
- package/dist/commonjs/models/operations/updatescopedapikey.js.map +1 -1
- package/dist/commonjs/models/operations/updateserviceaccountapikey.d.ts +2 -0
- package/dist/commonjs/models/operations/updateserviceaccountapikey.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateserviceaccountapikey.js +2 -0
- package/dist/commonjs/models/operations/updateserviceaccountapikey.js.map +1 -1
- package/dist/commonjs/react-query/authApiKeysDelete.d.ts +29 -0
- package/dist/commonjs/react-query/authApiKeysDelete.d.ts.map +1 -0
- package/dist/commonjs/react-query/authApiKeysDelete.js +47 -0
- package/dist/commonjs/react-query/authApiKeysDelete.js.map +1 -0
- package/dist/commonjs/react-query/computeSecretsRotateComputeSecret.d.ts +28 -0
- package/dist/commonjs/react-query/computeSecretsRotateComputeSecret.d.ts.map +1 -0
- package/dist/commonjs/react-query/computeSecretsRotateComputeSecret.js +47 -0
- package/dist/commonjs/react-query/computeSecretsRotateComputeSecret.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +2 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +2 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/sdk/apikeys.d.ts +7 -0
- package/dist/commonjs/sdk/apikeys.d.ts.map +1 -1
- package/dist/commonjs/sdk/apikeys.js +10 -0
- package/dist/commonjs/sdk/apikeys.js.map +1 -1
- package/dist/commonjs/sdk/computesecrets.d.ts +7 -0
- package/dist/commonjs/sdk/computesecrets.d.ts.map +1 -1
- package/dist/commonjs/sdk/computesecrets.js +10 -0
- package/dist/commonjs/sdk/computesecrets.js.map +1 -1
- package/dist/esm/funcs/authApiKeysDelete.d.ts +20 -0
- package/dist/esm/funcs/authApiKeysDelete.d.ts.map +1 -0
- package/dist/esm/funcs/authApiKeysDelete.js +96 -0
- package/dist/esm/funcs/authApiKeysDelete.js.map +1 -0
- package/dist/esm/funcs/computeSecretsRotateComputeSecret.d.ts +19 -0
- package/dist/esm/funcs/computeSecretsRotateComputeSecret.d.ts.map +1 -0
- package/dist/esm/funcs/computeSecretsRotateComputeSecret.js +100 -0
- package/dist/esm/funcs/computeSecretsRotateComputeSecret.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +5 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/authApiKeysDelete.d.ts +8 -0
- package/dist/esm/mcp-server/tools/authApiKeysDelete.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/authApiKeysDelete.js +28 -0
- package/dist/esm/mcp-server/tools/authApiKeysDelete.js.map +1 -0
- package/dist/esm/mcp-server/tools/computeSecretsRotateComputeSecret.d.ts +8 -0
- package/dist/esm/mcp-server/tools/computeSecretsRotateComputeSecret.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/computeSecretsRotateComputeSecret.js +28 -0
- package/dist/esm/mcp-server/tools/computeSecretsRotateComputeSecret.js.map +1 -0
- package/dist/esm/models/components/computesecret.d.ts +15 -0
- package/dist/esm/models/components/computesecret.d.ts.map +1 -1
- package/dist/esm/models/components/computesecret.js +10 -0
- package/dist/esm/models/components/computesecret.js.map +1 -1
- package/dist/esm/models/components/computesecretcreate.d.ts +5 -0
- package/dist/esm/models/components/computesecretcreate.d.ts.map +1 -1
- package/dist/esm/models/components/computesecretcreate.js +12 -0
- package/dist/esm/models/components/computesecretcreate.js.map +1 -1
- package/dist/esm/models/components/computesecretrotate.d.ts +26 -0
- package/dist/esm/models/components/computesecretrotate.d.ts.map +1 -0
- package/dist/esm/models/components/computesecretrotate.js +32 -0
- package/dist/esm/models/components/computesecretrotate.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/errors/deletescopedapikey.d.ts +188 -0
- package/dist/esm/models/errors/deletescopedapikey.d.ts.map +1 -0
- package/dist/esm/models/errors/deletescopedapikey.js +227 -0
- package/dist/esm/models/errors/deletescopedapikey.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/operations/deletescopedapikey.d.ts +53 -0
- package/dist/esm/models/operations/deletescopedapikey.d.ts.map +1 -0
- package/dist/esm/models/operations/deletescopedapikey.js +65 -0
- package/dist/esm/models/operations/deletescopedapikey.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/rotatecomputesecret.d.ts +34 -0
- package/dist/esm/models/operations/rotatecomputesecret.d.ts.map +1 -0
- package/dist/esm/models/operations/rotatecomputesecret.js +52 -0
- package/dist/esm/models/operations/rotatecomputesecret.js.map +1 -0
- package/dist/esm/models/operations/updatescopedapikey.d.ts +8 -24
- package/dist/esm/models/operations/updatescopedapikey.d.ts.map +1 -1
- package/dist/esm/models/operations/updatescopedapikey.js +8 -24
- package/dist/esm/models/operations/updatescopedapikey.js.map +1 -1
- package/dist/esm/models/operations/updateserviceaccountapikey.d.ts +2 -0
- package/dist/esm/models/operations/updateserviceaccountapikey.d.ts.map +1 -1
- package/dist/esm/models/operations/updateserviceaccountapikey.js +2 -0
- package/dist/esm/models/operations/updateserviceaccountapikey.js.map +1 -1
- package/dist/esm/react-query/authApiKeysDelete.d.ts +29 -0
- package/dist/esm/react-query/authApiKeysDelete.d.ts.map +1 -0
- package/dist/esm/react-query/authApiKeysDelete.js +42 -0
- package/dist/esm/react-query/authApiKeysDelete.js.map +1 -0
- package/dist/esm/react-query/computeSecretsRotateComputeSecret.d.ts +28 -0
- package/dist/esm/react-query/computeSecretsRotateComputeSecret.d.ts.map +1 -0
- package/dist/esm/react-query/computeSecretsRotateComputeSecret.js +42 -0
- package/dist/esm/react-query/computeSecretsRotateComputeSecret.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +2 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +2 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/sdk/apikeys.d.ts +7 -0
- package/dist/esm/sdk/apikeys.d.ts.map +1 -1
- package/dist/esm/sdk/apikeys.js +10 -0
- package/dist/esm/sdk/apikeys.js.map +1 -1
- package/dist/esm/sdk/computesecrets.d.ts +7 -0
- package/dist/esm/sdk/computesecrets.d.ts.map +1 -1
- package/dist/esm/sdk/computesecrets.js +10 -0
- package/dist/esm/sdk/computesecrets.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/authApiKeysDelete.ts +230 -0
- package/src/funcs/computeSecretsRotateComputeSecret.ts +189 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/authApiKeysDelete.ts +37 -0
- package/src/mcp-server/tools/computeSecretsRotateComputeSecret.ts +39 -0
- package/src/models/components/computesecret.ts +27 -0
- package/src/models/components/computesecretcreate.ts +17 -0
- package/src/models/components/computesecretrotate.ts +68 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/errors/deletescopedapikey.ts +461 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/deletescopedapikey.ts +168 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/rotatecomputesecret.ts +121 -0
- package/src/models/operations/updatescopedapikey.ts +18 -48
- package/src/models/operations/updateserviceaccountapikey.ts +6 -0
- package/src/react-query/authApiKeysDelete.ts +117 -0
- package/src/react-query/computeSecretsRotateComputeSecret.ts +109 -0
- package/src/react-query/index.ts +2 -0
- package/src/sdk/apikeys.ts +18 -0
- package/src/sdk/computesecrets.ts +18 -0
|
@@ -29,6 +29,13 @@ export declare class ApiKeys extends ClientSDK {
|
|
|
29
29
|
* Issue a new plaintext secret for an existing key in place (id / scopes / binding preserved). Returned once.
|
|
30
30
|
*/
|
|
31
31
|
regenerate(request: operations.RegenerateScopedApiKeyRequest, options?: RequestOptions): Promise<operations.RegenerateScopedApiKeyResponseBody>;
|
|
32
|
+
/**
|
|
33
|
+
* Delete a scoped API key
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Delete one of the caller's own keys. A key caller needs `write:apikeys` and may delete only keys in its own organization whose scopes it holds, including itself. Takes effect immediately.
|
|
37
|
+
*/
|
|
38
|
+
delete(request: operations.DeleteScopedApiKeyRequest, options?: RequestOptions): Promise<operations.DeleteScopedApiKeyResponseBody>;
|
|
32
39
|
/**
|
|
33
40
|
* Exchange API key for a JWT token
|
|
34
41
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikeys.d.ts","sourceRoot":"","sources":["../../../src/sdk/apikeys.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"apikeys.d.ts","sourceRoot":"","sources":["../../../src/sdk/apikeys.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAQrD;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IAQ1C;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAQrD;;;;;OAKG;IACG,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAQzD;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAQrD;;;;;OAKG;IACG,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;CAOvD"}
|
package/dist/esm/sdk/apikeys.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import { authApiKeysCreate } from "../funcs/authApiKeysCreate.js";
|
|
5
|
+
import { authApiKeysDelete } from "../funcs/authApiKeysDelete.js";
|
|
5
6
|
import { authApiKeysExchangeToken } from "../funcs/authApiKeysExchangeToken.js";
|
|
6
7
|
import { authApiKeysList } from "../funcs/authApiKeysList.js";
|
|
7
8
|
import { authApiKeysRegenerate } from "../funcs/authApiKeysRegenerate.js";
|
|
@@ -45,6 +46,15 @@ export class ApiKeys extends ClientSDK {
|
|
|
45
46
|
async regenerate(request, options) {
|
|
46
47
|
return unwrapAsync(authApiKeysRegenerate(this, request, options));
|
|
47
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Delete a scoped API key
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* Delete one of the caller's own keys. A key caller needs `write:apikeys` and may delete only keys in its own organization whose scopes it holds, including itself. Takes effect immediately.
|
|
54
|
+
*/
|
|
55
|
+
async delete(request, options) {
|
|
56
|
+
return unwrapAsync(authApiKeysDelete(this, request, options));
|
|
57
|
+
}
|
|
48
58
|
/**
|
|
49
59
|
* Exchange API key for a JWT token
|
|
50
60
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikeys.js","sourceRoot":"","sources":["../../../src/sdk/apikeys.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAA6C,EAC7C,OAAwB;QAExB,OAAO,WAAW,CAAC,iBAAiB,CAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAA4C,EAC5C,OAAwB;QAExB,OAAO,WAAW,CAAC,eAAe,CAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAA6C,EAC7C,OAAwB;QAExB,OAAO,WAAW,CAAC,iBAAiB,CAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CACd,OAAiD,EACjD,OAAwB;QAExB,OAAO,WAAW,CAAC,qBAAqB,CACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,OAA8C,EAC9C,OAAwB;QAExB,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"apikeys.js","sourceRoot":"","sources":["../../../src/sdk/apikeys.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAA6C,EAC7C,OAAwB;QAExB,OAAO,WAAW,CAAC,iBAAiB,CAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAA4C,EAC5C,OAAwB;QAExB,OAAO,WAAW,CAAC,eAAe,CAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAA6C,EAC7C,OAAwB;QAExB,OAAO,WAAW,CAAC,iBAAiB,CAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CACd,OAAiD,EACjD,OAAwB;QAExB,OAAO,WAAW,CAAC,qBAAqB,CACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAA6C,EAC7C,OAAwB;QAExB,OAAO,WAAW,CAAC,iBAAiB,CAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,OAA8C,EAC9C,OAAwB;QAExB,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -18,5 +18,12 @@ export declare class ComputeSecrets extends ClientSDK {
|
|
|
18
18
|
* Get a secret
|
|
19
19
|
*/
|
|
20
20
|
getComputeSecret(request: operations.GetComputeSecretRequest, options?: RequestOptions): Promise<operations.GetComputeSecretResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Rotate a secret
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* Replaces every value of the secret under the same id and increments its version. Resources that reference it read the new values at their next launch, retry or restart; running workloads keep the values they started with. The new keys must include every key a live resource references. The expiry is set from the request: omit expires_at for a version that never expires.
|
|
26
|
+
*/
|
|
27
|
+
rotateComputeSecret(request: operations.RotateComputeSecretRequest, options?: RequestOptions): Promise<operations.RotateComputeSecretResponse>;
|
|
21
28
|
}
|
|
22
29
|
//# sourceMappingURL=computesecrets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computesecrets.d.ts","sourceRoot":"","sources":["../../../src/sdk/computesecrets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"computesecrets.d.ts","sourceRoot":"","sources":["../../../src/sdk/computesecrets.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,cAAe,SAAQ,SAAS;IAC3C;;OAEG;IACG,kBAAkB,CACtB,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAQjD;;OAEG;IACG,mBAAmB,CACvB,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAQlD;;OAEG;IACG,mBAAmB,CACvB,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,GAAG,SAAS,CAAC;IAQvD;;OAEG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAQ/C;;;;;OAKG;IACG,mBAAmB,CACvB,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC;CAOnD"}
|
|
@@ -5,6 +5,7 @@ import { computeSecretsCreateComputeSecret } from "../funcs/computeSecretsCreate
|
|
|
5
5
|
import { computeSecretsDeleteComputeSecret } from "../funcs/computeSecretsDeleteComputeSecret.js";
|
|
6
6
|
import { computeSecretsGetComputeSecret } from "../funcs/computeSecretsGetComputeSecret.js";
|
|
7
7
|
import { computeSecretsListComputeSecrets } from "../funcs/computeSecretsListComputeSecrets.js";
|
|
8
|
+
import { computeSecretsRotateComputeSecret } from "../funcs/computeSecretsRotateComputeSecret.js";
|
|
8
9
|
import { ClientSDK } from "../lib/sdks.js";
|
|
9
10
|
import { unwrapAsync } from "../types/fp.js";
|
|
10
11
|
export class ComputeSecrets extends ClientSDK {
|
|
@@ -32,5 +33,14 @@ export class ComputeSecrets extends ClientSDK {
|
|
|
32
33
|
async getComputeSecret(request, options) {
|
|
33
34
|
return unwrapAsync(computeSecretsGetComputeSecret(this, request, options));
|
|
34
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Rotate a secret
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* Replaces every value of the secret under the same id and increments its version. Resources that reference it read the new values at their next launch, retry or restart; running workloads keep the values they started with. The new keys must include every key a live resource references. The expiry is set from the request: omit expires_at for a version that never expires.
|
|
41
|
+
*/
|
|
42
|
+
async rotateComputeSecret(request, options) {
|
|
43
|
+
return unwrapAsync(computeSecretsRotateComputeSecret(this, request, options));
|
|
44
|
+
}
|
|
35
45
|
}
|
|
36
46
|
//# sourceMappingURL=computesecrets.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computesecrets.js","sourceRoot":"","sources":["../../../src/sdk/computesecrets.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,EAAE,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;AAChG,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,cAAe,SAAQ,SAAS;IAC3C;;OAEG;IACH,KAAK,CAAC,kBAAkB,CACtB,OAA6C,EAC7C,OAAwB;QAExB,OAAO,WAAW,CAAC,gCAAgC,CACjD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAA8C,EAC9C,OAAwB;QAExB,OAAO,WAAW,CAAC,iCAAiC,CAClD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAA8C,EAC9C,OAAwB;QAExB,OAAO,WAAW,CAAC,iCAAiC,CAClD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAA2C,EAC3C,OAAwB;QAExB,OAAO,WAAW,CAAC,8BAA8B,CAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"computesecrets.js","sourceRoot":"","sources":["../../../src/sdk/computesecrets.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,EAAE,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;AAChG,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,cAAe,SAAQ,SAAS;IAC3C;;OAEG;IACH,KAAK,CAAC,kBAAkB,CACtB,OAA6C,EAC7C,OAAwB;QAExB,OAAO,WAAW,CAAC,gCAAgC,CACjD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAA8C,EAC9C,OAAwB;QAExB,OAAO,WAAW,CAAC,iCAAiC,CAClD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAA8C,EAC9C,OAAwB;QAExB,OAAO,WAAW,CAAC,iCAAiC,CAClD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAA2C,EAC3C,OAAwB;QAExB,OAAO,WAAW,CAAC,8BAA8B,CAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAA8C,EAC9C,OAAwB;QAExB,OAAO,WAAW,CAAC,iCAAiC,CAClD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKCore } from "../core.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Delete a scoped API key
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Delete one of the caller's own keys. A key caller needs `write:apikeys` and may delete only keys in its own organization whose scopes it holds, including itself. Takes effect immediately.
|
|
34
|
+
*
|
|
35
|
+
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
36
|
+
*/
|
|
37
|
+
export function authApiKeysDelete(
|
|
38
|
+
client: SDKCore,
|
|
39
|
+
request: operations.DeleteScopedApiKeyRequest,
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): APIPromise<
|
|
42
|
+
Result<
|
|
43
|
+
operations.DeleteScopedApiKeyResponseBody,
|
|
44
|
+
| errors.DeleteScopedApiKeyResponseBody
|
|
45
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponseBody
|
|
46
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponseResponseBody
|
|
47
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody
|
|
48
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody
|
|
49
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody
|
|
50
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody
|
|
51
|
+
| SDKError
|
|
52
|
+
| ResponseValidationError
|
|
53
|
+
| ConnectionError
|
|
54
|
+
| RequestAbortedError
|
|
55
|
+
| RequestTimeoutError
|
|
56
|
+
| InvalidRequestError
|
|
57
|
+
| UnexpectedClientError
|
|
58
|
+
| SDKValidationError
|
|
59
|
+
>
|
|
60
|
+
> {
|
|
61
|
+
return new APIPromise($do(
|
|
62
|
+
client,
|
|
63
|
+
request,
|
|
64
|
+
options,
|
|
65
|
+
));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
async function $do(
|
|
69
|
+
client: SDKCore,
|
|
70
|
+
request: operations.DeleteScopedApiKeyRequest,
|
|
71
|
+
options?: RequestOptions,
|
|
72
|
+
): Promise<
|
|
73
|
+
[
|
|
74
|
+
Result<
|
|
75
|
+
operations.DeleteScopedApiKeyResponseBody,
|
|
76
|
+
| errors.DeleteScopedApiKeyResponseBody
|
|
77
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponseBody
|
|
78
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponseResponseBody
|
|
79
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody
|
|
80
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody
|
|
81
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody
|
|
82
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody
|
|
83
|
+
| SDKError
|
|
84
|
+
| ResponseValidationError
|
|
85
|
+
| ConnectionError
|
|
86
|
+
| RequestAbortedError
|
|
87
|
+
| RequestTimeoutError
|
|
88
|
+
| InvalidRequestError
|
|
89
|
+
| UnexpectedClientError
|
|
90
|
+
| SDKValidationError
|
|
91
|
+
>,
|
|
92
|
+
APICall,
|
|
93
|
+
]
|
|
94
|
+
> {
|
|
95
|
+
const parsed = safeParse(
|
|
96
|
+
request,
|
|
97
|
+
(value) => operations.DeleteScopedApiKeyRequest$outboundSchema.parse(value),
|
|
98
|
+
"Input validation failed",
|
|
99
|
+
);
|
|
100
|
+
if (!parsed.ok) {
|
|
101
|
+
return [parsed, { status: "invalid" }];
|
|
102
|
+
}
|
|
103
|
+
const payload = parsed.value;
|
|
104
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
105
|
+
|
|
106
|
+
const path = pathToFunc("/api/v1/authentication/api-key/scoped/delete")();
|
|
107
|
+
|
|
108
|
+
const headers = new Headers(compactMap({
|
|
109
|
+
"Content-Type": "application/json",
|
|
110
|
+
Accept: "application/json",
|
|
111
|
+
"X-On-Behalf-Of": encodeSimple(
|
|
112
|
+
"X-On-Behalf-Of",
|
|
113
|
+
payload["X-On-Behalf-Of"],
|
|
114
|
+
{ explode: false, charEncoding: "none" },
|
|
115
|
+
),
|
|
116
|
+
}));
|
|
117
|
+
|
|
118
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
119
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
120
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
121
|
+
|
|
122
|
+
const context = {
|
|
123
|
+
options: client._options,
|
|
124
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
125
|
+
operationID: "deleteScopedApiKey",
|
|
126
|
+
oAuth2Scopes: null,
|
|
127
|
+
|
|
128
|
+
resolvedSecurity: requestSecurity,
|
|
129
|
+
|
|
130
|
+
securitySource: client._options.bearerAuth,
|
|
131
|
+
retryConfig: options?.retries
|
|
132
|
+
|| client._options.retryConfig
|
|
133
|
+
|| {
|
|
134
|
+
strategy: "backoff",
|
|
135
|
+
backoff: {
|
|
136
|
+
initialInterval: 500,
|
|
137
|
+
maxInterval: 5000,
|
|
138
|
+
exponent: 1.5,
|
|
139
|
+
maxElapsedTime: 15000,
|
|
140
|
+
},
|
|
141
|
+
retryConnectionErrors: true,
|
|
142
|
+
}
|
|
143
|
+
|| { strategy: "none" },
|
|
144
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
const requestRes = client._createRequest(context, {
|
|
148
|
+
security: requestSecurity,
|
|
149
|
+
method: "POST",
|
|
150
|
+
baseURL: options?.serverURL,
|
|
151
|
+
path: path,
|
|
152
|
+
headers: headers,
|
|
153
|
+
body: body,
|
|
154
|
+
userAgent: client._options.userAgent,
|
|
155
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
156
|
+
}, options);
|
|
157
|
+
if (!requestRes.ok) {
|
|
158
|
+
return [requestRes, { status: "invalid" }];
|
|
159
|
+
}
|
|
160
|
+
const req = requestRes.value;
|
|
161
|
+
|
|
162
|
+
const doResult = await client._do(req, {
|
|
163
|
+
context,
|
|
164
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
165
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
166
|
+
retryConfig: context.retryConfig,
|
|
167
|
+
retryCodes: context.retryCodes,
|
|
168
|
+
});
|
|
169
|
+
if (!doResult.ok) {
|
|
170
|
+
return [doResult, { status: "request-error", request: req }];
|
|
171
|
+
}
|
|
172
|
+
const response = doResult.value;
|
|
173
|
+
|
|
174
|
+
const responseFields = {
|
|
175
|
+
HttpMeta: { Response: response, Request: req },
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
const [result] = await M.match<
|
|
179
|
+
operations.DeleteScopedApiKeyResponseBody,
|
|
180
|
+
| errors.DeleteScopedApiKeyResponseBody
|
|
181
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponseBody
|
|
182
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponseResponseBody
|
|
183
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody
|
|
184
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody
|
|
185
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody
|
|
186
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody
|
|
187
|
+
| SDKError
|
|
188
|
+
| ResponseValidationError
|
|
189
|
+
| ConnectionError
|
|
190
|
+
| RequestAbortedError
|
|
191
|
+
| RequestTimeoutError
|
|
192
|
+
| InvalidRequestError
|
|
193
|
+
| UnexpectedClientError
|
|
194
|
+
| SDKValidationError
|
|
195
|
+
>(
|
|
196
|
+
M.json(200, operations.DeleteScopedApiKeyResponseBody$inboundSchema),
|
|
197
|
+
M.jsonErr(400, errors.DeleteScopedApiKeyResponseBody$inboundSchema),
|
|
198
|
+
M.jsonErr(
|
|
199
|
+
401,
|
|
200
|
+
errors.DeleteScopedApiKeyAuthApiKeysResponseBody$inboundSchema,
|
|
201
|
+
),
|
|
202
|
+
M.jsonErr(
|
|
203
|
+
403,
|
|
204
|
+
errors.DeleteScopedApiKeyAuthApiKeysResponseResponseBody$inboundSchema,
|
|
205
|
+
),
|
|
206
|
+
M.jsonErr(
|
|
207
|
+
404,
|
|
208
|
+
errors.DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody$inboundSchema,
|
|
209
|
+
),
|
|
210
|
+
M.jsonErr(
|
|
211
|
+
409,
|
|
212
|
+
errors.DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody$inboundSchema,
|
|
213
|
+
),
|
|
214
|
+
M.jsonErr(
|
|
215
|
+
410,
|
|
216
|
+
errors.DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody$inboundSchema,
|
|
217
|
+
),
|
|
218
|
+
M.jsonErr(
|
|
219
|
+
429,
|
|
220
|
+
errors.DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody$inboundSchema,
|
|
221
|
+
),
|
|
222
|
+
M.fail("4XX"),
|
|
223
|
+
M.fail("5XX"),
|
|
224
|
+
)(response, req, { extraFields: responseFields });
|
|
225
|
+
if (!result.ok) {
|
|
226
|
+
return [result, { status: "complete", request: req, response }];
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
return [result, { status: "complete", request: req, response }];
|
|
230
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKCore } from "../core.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Rotate a secret
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Replaces every value of the secret under the same id and increments its version. Resources that reference it read the new values at their next launch, retry or restart; running workloads keep the values they started with. The new keys must include every key a live resource references. The expiry is set from the request: omit expires_at for a version that never expires.
|
|
33
|
+
*
|
|
34
|
+
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
35
|
+
*/
|
|
36
|
+
export function computeSecretsRotateComputeSecret(
|
|
37
|
+
client: SDKCore,
|
|
38
|
+
request: operations.RotateComputeSecretRequest,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<
|
|
41
|
+
Result<
|
|
42
|
+
operations.RotateComputeSecretResponse,
|
|
43
|
+
| SDKError
|
|
44
|
+
| ResponseValidationError
|
|
45
|
+
| ConnectionError
|
|
46
|
+
| RequestAbortedError
|
|
47
|
+
| RequestTimeoutError
|
|
48
|
+
| InvalidRequestError
|
|
49
|
+
| UnexpectedClientError
|
|
50
|
+
| SDKValidationError
|
|
51
|
+
>
|
|
52
|
+
> {
|
|
53
|
+
return new APIPromise($do(
|
|
54
|
+
client,
|
|
55
|
+
request,
|
|
56
|
+
options,
|
|
57
|
+
));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async function $do(
|
|
61
|
+
client: SDKCore,
|
|
62
|
+
request: operations.RotateComputeSecretRequest,
|
|
63
|
+
options?: RequestOptions,
|
|
64
|
+
): Promise<
|
|
65
|
+
[
|
|
66
|
+
Result<
|
|
67
|
+
operations.RotateComputeSecretResponse,
|
|
68
|
+
| SDKError
|
|
69
|
+
| ResponseValidationError
|
|
70
|
+
| ConnectionError
|
|
71
|
+
| RequestAbortedError
|
|
72
|
+
| RequestTimeoutError
|
|
73
|
+
| InvalidRequestError
|
|
74
|
+
| UnexpectedClientError
|
|
75
|
+
| SDKValidationError
|
|
76
|
+
>,
|
|
77
|
+
APICall,
|
|
78
|
+
]
|
|
79
|
+
> {
|
|
80
|
+
const parsed = safeParse(
|
|
81
|
+
request,
|
|
82
|
+
(value) =>
|
|
83
|
+
operations.RotateComputeSecretRequest$outboundSchema.parse(value),
|
|
84
|
+
"Input validation failed",
|
|
85
|
+
);
|
|
86
|
+
if (!parsed.ok) {
|
|
87
|
+
return [parsed, { status: "invalid" }];
|
|
88
|
+
}
|
|
89
|
+
const payload = parsed.value;
|
|
90
|
+
const body = encodeJSON("body", payload.ComputeSecretRotate, {
|
|
91
|
+
explode: true,
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
const pathParams = {
|
|
95
|
+
id: encodeSimple("id", payload.id, {
|
|
96
|
+
explode: false,
|
|
97
|
+
charEncoding: "percent",
|
|
98
|
+
}),
|
|
99
|
+
};
|
|
100
|
+
const path = pathToFunc("/api/v1/compute/secrets/{id}/rotate")(pathParams);
|
|
101
|
+
|
|
102
|
+
const headers = new Headers(compactMap({
|
|
103
|
+
"Content-Type": "application/json",
|
|
104
|
+
Accept: "application/json",
|
|
105
|
+
"X-On-Behalf-Of": encodeSimple(
|
|
106
|
+
"X-On-Behalf-Of",
|
|
107
|
+
payload["X-On-Behalf-Of"],
|
|
108
|
+
{ explode: false, charEncoding: "none" },
|
|
109
|
+
),
|
|
110
|
+
}));
|
|
111
|
+
|
|
112
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
113
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
114
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
115
|
+
|
|
116
|
+
const context = {
|
|
117
|
+
options: client._options,
|
|
118
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
119
|
+
operationID: "rotateComputeSecret",
|
|
120
|
+
oAuth2Scopes: null,
|
|
121
|
+
|
|
122
|
+
resolvedSecurity: requestSecurity,
|
|
123
|
+
|
|
124
|
+
securitySource: client._options.bearerAuth,
|
|
125
|
+
retryConfig: options?.retries
|
|
126
|
+
|| client._options.retryConfig
|
|
127
|
+
|| {
|
|
128
|
+
strategy: "backoff",
|
|
129
|
+
backoff: {
|
|
130
|
+
initialInterval: 500,
|
|
131
|
+
maxInterval: 5000,
|
|
132
|
+
exponent: 1.5,
|
|
133
|
+
maxElapsedTime: 15000,
|
|
134
|
+
},
|
|
135
|
+
retryConnectionErrors: true,
|
|
136
|
+
}
|
|
137
|
+
|| { strategy: "none" },
|
|
138
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
const requestRes = client._createRequest(context, {
|
|
142
|
+
security: requestSecurity,
|
|
143
|
+
method: "POST",
|
|
144
|
+
baseURL: options?.serverURL,
|
|
145
|
+
path: path,
|
|
146
|
+
headers: headers,
|
|
147
|
+
body: body,
|
|
148
|
+
userAgent: client._options.userAgent,
|
|
149
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
150
|
+
}, options);
|
|
151
|
+
if (!requestRes.ok) {
|
|
152
|
+
return [requestRes, { status: "invalid" }];
|
|
153
|
+
}
|
|
154
|
+
const req = requestRes.value;
|
|
155
|
+
|
|
156
|
+
const doResult = await client._do(req, {
|
|
157
|
+
context,
|
|
158
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
159
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
160
|
+
retryConfig: context.retryConfig,
|
|
161
|
+
retryCodes: context.retryCodes,
|
|
162
|
+
});
|
|
163
|
+
if (!doResult.ok) {
|
|
164
|
+
return [doResult, { status: "request-error", request: req }];
|
|
165
|
+
}
|
|
166
|
+
const response = doResult.value;
|
|
167
|
+
|
|
168
|
+
const [result] = await M.match<
|
|
169
|
+
operations.RotateComputeSecretResponse,
|
|
170
|
+
| SDKError
|
|
171
|
+
| ResponseValidationError
|
|
172
|
+
| ConnectionError
|
|
173
|
+
| RequestAbortedError
|
|
174
|
+
| RequestTimeoutError
|
|
175
|
+
| InvalidRequestError
|
|
176
|
+
| UnexpectedClientError
|
|
177
|
+
| SDKValidationError
|
|
178
|
+
>(
|
|
179
|
+
M.json(200, operations.RotateComputeSecretResponse$inboundSchema),
|
|
180
|
+
M.fail("4XX"),
|
|
181
|
+
M.fail("5XX"),
|
|
182
|
+
M.json("default", operations.RotateComputeSecretResponse$inboundSchema),
|
|
183
|
+
)(response, req);
|
|
184
|
+
if (!result.ok) {
|
|
185
|
+
return [result, { status: "complete", request: req, response }];
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
return [result, { status: "complete", request: req, response }];
|
|
189
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.1.0",
|
|
68
|
-
sdkVersion: "0.55.
|
|
68
|
+
sdkVersion: "0.55.22",
|
|
69
69
|
genVersion: "2.950.2",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.55.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.55.22 2.950.2 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -60,6 +60,7 @@ import { tool$analyticsQuery } from "./tools/analyticsQuery.js";
|
|
|
60
60
|
import { tool$analyticsVisitorsSearch } from "./tools/analyticsVisitorsSearch.js";
|
|
61
61
|
import { tool$authApiKeyGetJwtFromKey } from "./tools/authApiKeyGetJwtFromKey.js";
|
|
62
62
|
import { tool$authApiKeysCreate } from "./tools/authApiKeysCreate.js";
|
|
63
|
+
import { tool$authApiKeysDelete } from "./tools/authApiKeysDelete.js";
|
|
63
64
|
import { tool$authApiKeysExchangeToken } from "./tools/authApiKeysExchangeToken.js";
|
|
64
65
|
import { tool$authApiKeysList } from "./tools/authApiKeysList.js";
|
|
65
66
|
import { tool$authApiKeysRegenerate } from "./tools/authApiKeysRegenerate.js";
|
|
@@ -160,6 +161,7 @@ import { tool$computeSecretsCreateComputeSecret } from "./tools/computeSecretsCr
|
|
|
160
161
|
import { tool$computeSecretsDeleteComputeSecret } from "./tools/computeSecretsDeleteComputeSecret.js";
|
|
161
162
|
import { tool$computeSecretsGetComputeSecret } from "./tools/computeSecretsGetComputeSecret.js";
|
|
162
163
|
import { tool$computeSecretsListComputeSecrets } from "./tools/computeSecretsListComputeSecrets.js";
|
|
164
|
+
import { tool$computeSecretsRotateComputeSecret } from "./tools/computeSecretsRotateComputeSecret.js";
|
|
163
165
|
import { tool$computeServicesCreateService } from "./tools/computeServicesCreateService.js";
|
|
164
166
|
import { tool$computeServicesGetService } from "./tools/computeServicesGetService.js";
|
|
165
167
|
import { tool$computeServicesListServiceEvents } from "./tools/computeServicesListServiceEvents.js";
|
|
@@ -513,7 +515,7 @@ export function createMCPServer(deps: {
|
|
|
513
515
|
}) {
|
|
514
516
|
const server = new McpServer({
|
|
515
517
|
name: "SDK",
|
|
516
|
-
version: "0.55.
|
|
518
|
+
version: "0.55.22",
|
|
517
519
|
});
|
|
518
520
|
|
|
519
521
|
const client = new SDKCore({
|
|
@@ -665,6 +667,7 @@ export function createMCPServer(deps: {
|
|
|
665
667
|
tool(tool$computeSecretsCreateComputeSecret);
|
|
666
668
|
tool(tool$computeSecretsDeleteComputeSecret);
|
|
667
669
|
tool(tool$computeSecretsGetComputeSecret);
|
|
670
|
+
tool(tool$computeSecretsRotateComputeSecret);
|
|
668
671
|
tool(tool$computeServicesListServices);
|
|
669
672
|
tool(tool$computeServicesCreateService);
|
|
670
673
|
tool(tool$computeServicesGetService);
|
|
@@ -935,6 +938,7 @@ export function createMCPServer(deps: {
|
|
|
935
938
|
tool(tool$authApiKeysList);
|
|
936
939
|
tool(tool$authApiKeysUpdate);
|
|
937
940
|
tool(tool$authApiKeysRegenerate);
|
|
941
|
+
tool(tool$authApiKeysDelete);
|
|
938
942
|
tool(tool$authApiKeysExchangeToken);
|
|
939
943
|
tool(tool$authServiceAccountsCreate);
|
|
940
944
|
tool(tool$authServiceAccountsList);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { authApiKeysDelete } from "../../funcs/authApiKeysDelete.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.DeleteScopedApiKeyRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$authApiKeysDelete: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "auth-api-keys-delete",
|
|
15
|
+
description: `Delete a scoped API key
|
|
16
|
+
|
|
17
|
+
Delete one of the caller's own keys. A key caller needs \`write:apikeys\` and may delete only keys in its own organization whose scopes it holds, including itself. Takes effect immediately.`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await authApiKeysDelete(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.mcpReq.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|