@kosuke-ai/cli 6.3.0 → 6.3.2
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/dist/generated/commands/index.js +50 -44
- package/dist/generated/commands/user/subscriptions-delete.js +1 -1
- package/dist/generated/commands/user/subscriptions-get.js +1 -1
- package/dist/generated/commands/user/subscriptions-login-claude-start.js +12 -1
- package/dist/generated/commands/user/subscriptions-login-codex-start.js +12 -1
- package/dist/generated/commands/user/subscriptions-logins-delete.js +24 -0
- package/dist/generated/commands/user/subscriptions-logins-reorder.js +33 -0
- package/dist/generated/commands/user/subscriptions-set-key.js +8 -1
- package/dist/generated/commands/user/subscriptions-usage.js +8 -1
- package/dist/generated/commands/workspaces/ai-provider-get.js +1 -1
- package/dist/generated/commands/workspaces/ai-provider-logins-reorder.js +54 -0
- package/dist/generated/commands/workspaces/ai-provider-remove.js +8 -1
- package/dist/generated/commands/workspaces/ai-provider-usage-claude.js +10 -2
- package/dist/generated/commands/workspaces/ai-provider-usage-codex.js +10 -2
- package/dist/generated/commands/workspaces/provider-login-claude-start.js +12 -1
- package/dist/generated/commands/workspaces/provider-login-codex-start.js +12 -1
- package/dist/runtime/attachments.js +1 -0
- package/openapi.json +352 -8
- package/package.json +1 -1
|
@@ -125,50 +125,53 @@ import { operation as o123 } from './user/subscriptions-login-claude-complete.js
|
|
|
125
125
|
import { operation as o124 } from './user/subscriptions-login-claude-start.js';
|
|
126
126
|
import { operation as o125 } from './user/subscriptions-login-codex-complete.js';
|
|
127
127
|
import { operation as o126 } from './user/subscriptions-login-codex-start.js';
|
|
128
|
-
import { operation as o127 } from './user/subscriptions-
|
|
129
|
-
import { operation as o128 } from './user/subscriptions-
|
|
130
|
-
import { operation as o129 } from './user/subscriptions-
|
|
131
|
-
import { operation as o130 } from './
|
|
132
|
-
import { operation as o131 } from './
|
|
133
|
-
import { operation as o132 } from './workspaces/
|
|
134
|
-
import { operation as o133 } from './workspaces/ai-provider-
|
|
135
|
-
import { operation as o134 } from './workspaces/ai-provider-
|
|
136
|
-
import { operation as o135 } from './workspaces/ai-provider-
|
|
137
|
-
import { operation as o136 } from './workspaces/ai-provider-
|
|
138
|
-
import { operation as o137 } from './workspaces/ai-provider-usage-
|
|
139
|
-
import { operation as o138 } from './workspaces/
|
|
140
|
-
import { operation as o139 } from './workspaces/
|
|
141
|
-
import { operation as o140 } from './workspaces/
|
|
142
|
-
import { operation as o141 } from './workspaces/
|
|
143
|
-
import { operation as o142 } from './workspaces/
|
|
144
|
-
import { operation as o143 } from './workspaces/
|
|
145
|
-
import { operation as o144 } from './workspaces/
|
|
146
|
-
import { operation as o145 } from './workspaces/
|
|
147
|
-
import { operation as o146 } from './workspaces/integrations-
|
|
148
|
-
import { operation as o147 } from './workspaces/
|
|
149
|
-
import { operation as o148 } from './workspaces/
|
|
150
|
-
import { operation as o149 } from './workspaces/
|
|
151
|
-
import { operation as o150 } from './workspaces/lead-
|
|
152
|
-
import { operation as o151 } from './workspaces/lead-
|
|
153
|
-
import { operation as o152 } from './workspaces/lead-
|
|
154
|
-
import { operation as o153 } from './workspaces/lead-
|
|
155
|
-
import { operation as o154 } from './workspaces/
|
|
156
|
-
import { operation as o155 } from './workspaces/
|
|
157
|
-
import { operation as o156 } from './workspaces/
|
|
158
|
-
import { operation as o157 } from './workspaces/
|
|
159
|
-
import { operation as o158 } from './workspaces/
|
|
160
|
-
import { operation as o159 } from './workspaces/
|
|
161
|
-
import { operation as o160 } from './workspaces/
|
|
162
|
-
import { operation as o161 } from './workspaces/provider-login-
|
|
163
|
-
import { operation as o162 } from './workspaces/
|
|
164
|
-
import { operation as o163 } from './workspaces/
|
|
165
|
-
import { operation as o164 } from './workspaces/
|
|
166
|
-
import { operation as o165 } from './workspaces/
|
|
167
|
-
import { operation as o166 } from './workspaces/skills-
|
|
168
|
-
import { operation as o167 } from './workspaces/skills-
|
|
169
|
-
import { operation as o168 } from './workspaces/
|
|
170
|
-
import { operation as o169 } from './workspaces/
|
|
171
|
-
import { operation as o170 } from './workspaces/
|
|
128
|
+
import { operation as o127 } from './user/subscriptions-logins-delete.js';
|
|
129
|
+
import { operation as o128 } from './user/subscriptions-logins-reorder.js';
|
|
130
|
+
import { operation as o129 } from './user/subscriptions-set-default-model.js';
|
|
131
|
+
import { operation as o130 } from './user/subscriptions-set-key.js';
|
|
132
|
+
import { operation as o131 } from './user/subscriptions-usage.js';
|
|
133
|
+
import { operation as o132 } from './workspaces/access-status.js';
|
|
134
|
+
import { operation as o133 } from './workspaces/ai-provider-get.js';
|
|
135
|
+
import { operation as o134 } from './workspaces/ai-provider-logins-reorder.js';
|
|
136
|
+
import { operation as o135 } from './workspaces/ai-provider-remove.js';
|
|
137
|
+
import { operation as o136 } from './workspaces/ai-provider-set.js';
|
|
138
|
+
import { operation as o137 } from './workspaces/ai-provider-usage-claude.js';
|
|
139
|
+
import { operation as o138 } from './workspaces/ai-provider-usage-codex.js';
|
|
140
|
+
import { operation as o139 } from './workspaces/ai-provider-usage-coding-plan.js';
|
|
141
|
+
import { operation as o140 } from './workspaces/ai-provider-usage-kimi-code.js';
|
|
142
|
+
import { operation as o141 } from './workspaces/artifacts.js';
|
|
143
|
+
import { operation as o142 } from './workspaces/credits.js';
|
|
144
|
+
import { operation as o143 } from './workspaces/get.js';
|
|
145
|
+
import { operation as o144 } from './workspaces/getting-started-get.js';
|
|
146
|
+
import { operation as o145 } from './workspaces/getting-started-update.js';
|
|
147
|
+
import { operation as o146 } from './workspaces/integrations-get.js';
|
|
148
|
+
import { operation as o147 } from './workspaces/integrations-list.js';
|
|
149
|
+
import { operation as o148 } from './workspaces/integrations-remove.js';
|
|
150
|
+
import { operation as o149 } from './workspaces/integrations-slack-get.js';
|
|
151
|
+
import { operation as o150 } from './workspaces/lead-cards.js';
|
|
152
|
+
import { operation as o151 } from './workspaces/lead-merge.js';
|
|
153
|
+
import { operation as o152 } from './workspaces/lead-notifications-open.js';
|
|
154
|
+
import { operation as o153 } from './workspaces/lead-proposals-create.js';
|
|
155
|
+
import { operation as o154 } from './workspaces/lead-review-request.js';
|
|
156
|
+
import { operation as o155 } from './workspaces/lead-session-send.js';
|
|
157
|
+
import { operation as o156 } from './workspaces/lead-triage.js';
|
|
158
|
+
import { operation as o157 } from './workspaces/list.js';
|
|
159
|
+
import { operation as o158 } from './workspaces/members.js';
|
|
160
|
+
import { operation as o159 } from './workspaces/plugins-list.js';
|
|
161
|
+
import { operation as o160 } from './workspaces/plugins-update.js';
|
|
162
|
+
import { operation as o161 } from './workspaces/provider-login-claude-complete.js';
|
|
163
|
+
import { operation as o162 } from './workspaces/provider-login-claude-start.js';
|
|
164
|
+
import { operation as o163 } from './workspaces/provider-login-codex-complete.js';
|
|
165
|
+
import { operation as o164 } from './workspaces/provider-login-codex-start.js';
|
|
166
|
+
import { operation as o165 } from './workspaces/sandbox-limit.js';
|
|
167
|
+
import { operation as o166 } from './workspaces/skills-create.js';
|
|
168
|
+
import { operation as o167 } from './workspaces/skills-delete.js';
|
|
169
|
+
import { operation as o168 } from './workspaces/skills-get.js';
|
|
170
|
+
import { operation as o169 } from './workspaces/skills-list.js';
|
|
171
|
+
import { operation as o170 } from './workspaces/skills-update.js';
|
|
172
|
+
import { operation as o171 } from './workspaces/stop-sandboxes.js';
|
|
173
|
+
import { operation as o172 } from './workspaces/timezone-set.js';
|
|
174
|
+
import { operation as o173 } from './workspaces/usage.js';
|
|
172
175
|
export const operations = [
|
|
173
176
|
o0,
|
|
174
177
|
o1,
|
|
@@ -341,4 +344,7 @@ export const operations = [
|
|
|
341
344
|
o168,
|
|
342
345
|
o169,
|
|
343
346
|
o170,
|
|
347
|
+
o171,
|
|
348
|
+
o172,
|
|
349
|
+
o173,
|
|
344
350
|
];
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"subscriptions",
|
|
7
7
|
"delete"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Disconnect your subscription for one provider, anthropic, openai, zai or moonshot, and release the sandboxes running on it. Answers 204.",
|
|
9
|
+
"summary": "Disconnect every login of your subscription for one provider, anthropic, openai, zai or moonshot, and release the sandboxes running on it. Answers 204.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"provider"
|
|
12
12
|
],
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"subscriptions",
|
|
7
7
|
"get"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Read your Claude, Codex, GLM Coding Plan and Kimi Code subscriptions (connected, needsReauth, accountEmail, and maskedApiKey for a pasted plan key) and
|
|
9
|
+
"summary": "Read your Claude, Codex, GLM Coding Plan and Kimi Code subscriptions and your default model. Per provider: the login in use (connected, needsReauth, accountEmail, and maskedApiKey for a pasted plan key) and every login in the order it is used (logins).",
|
|
10
10
|
"pathParams": [],
|
|
11
11
|
"query": [],
|
|
12
12
|
"body": null,
|
|
@@ -11,7 +11,18 @@ export const operation = {
|
|
|
11
11
|
"summary": "Start connecting your Claude subscription: open the returned url in a browser, then pass the code it shows and loginToken to complete within 15 minutes.",
|
|
12
12
|
"pathParams": [],
|
|
13
13
|
"query": [],
|
|
14
|
-
"body":
|
|
14
|
+
"body": {
|
|
15
|
+
"fields": [
|
|
16
|
+
{
|
|
17
|
+
"name": "replaceLoginId",
|
|
18
|
+
"flag": "replace-login-id",
|
|
19
|
+
"kind": "string",
|
|
20
|
+
"required": false,
|
|
21
|
+
"description": "Reconnect this connected account instead of adding another."
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"required": false
|
|
25
|
+
},
|
|
15
26
|
"multipart": null,
|
|
16
27
|
"attachments": false,
|
|
17
28
|
"anonymous": false,
|
|
@@ -11,7 +11,18 @@ export const operation = {
|
|
|
11
11
|
"summary": "Start connecting your Codex subscription: enter userCode at verificationUrl in a browser, then call complete with loginToken until it answers authenticated.",
|
|
12
12
|
"pathParams": [],
|
|
13
13
|
"query": [],
|
|
14
|
-
"body":
|
|
14
|
+
"body": {
|
|
15
|
+
"fields": [
|
|
16
|
+
{
|
|
17
|
+
"name": "replaceLoginId",
|
|
18
|
+
"flag": "replace-login-id",
|
|
19
|
+
"kind": "string",
|
|
20
|
+
"required": false,
|
|
21
|
+
"description": "Reconnect this connected account instead of adding another."
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"required": false
|
|
25
|
+
},
|
|
15
26
|
"multipart": null,
|
|
16
27
|
"attachments": false,
|
|
17
28
|
"anonymous": false,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "delete",
|
|
3
|
+
"path": "/api/user/subscriptions/{provider}/logins/{loginId}",
|
|
4
|
+
"command": [
|
|
5
|
+
"user",
|
|
6
|
+
"subscriptions",
|
|
7
|
+
"logins",
|
|
8
|
+
"delete"
|
|
9
|
+
],
|
|
10
|
+
"summary": "Disconnect one login of your subscription for a provider, by its id under logins. Sessions move to your next login of that provider on their next message, or off the subscription when it was the last. Answers 204.",
|
|
11
|
+
"pathParams": [
|
|
12
|
+
"provider",
|
|
13
|
+
"loginId"
|
|
14
|
+
],
|
|
15
|
+
"query": [],
|
|
16
|
+
"body": null,
|
|
17
|
+
"multipart": null,
|
|
18
|
+
"attachments": false,
|
|
19
|
+
"anonymous": false,
|
|
20
|
+
"sandboxToken": false,
|
|
21
|
+
"orchestratorToken": false,
|
|
22
|
+
"cronToken": false,
|
|
23
|
+
"leadToken": false
|
|
24
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "put",
|
|
3
|
+
"path": "/api/user/subscriptions/{provider}/logins/order",
|
|
4
|
+
"command": [
|
|
5
|
+
"user",
|
|
6
|
+
"subscriptions",
|
|
7
|
+
"logins",
|
|
8
|
+
"reorder"
|
|
9
|
+
],
|
|
10
|
+
"summary": "Set the order your logins of one provider are used in: the first that is neither at its limit nor needs reconnecting runs your sessions. ids must be every login of that provider, once each; 409 when they are not. Answers 204.",
|
|
11
|
+
"pathParams": [
|
|
12
|
+
"provider"
|
|
13
|
+
],
|
|
14
|
+
"query": [],
|
|
15
|
+
"body": {
|
|
16
|
+
"fields": [
|
|
17
|
+
{
|
|
18
|
+
"name": "ids",
|
|
19
|
+
"flag": "ids",
|
|
20
|
+
"kind": "json",
|
|
21
|
+
"required": true
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"required": true
|
|
25
|
+
},
|
|
26
|
+
"multipart": null,
|
|
27
|
+
"attachments": false,
|
|
28
|
+
"anonymous": false,
|
|
29
|
+
"sandboxToken": false,
|
|
30
|
+
"orchestratorToken": false,
|
|
31
|
+
"cronToken": false,
|
|
32
|
+
"leadToken": false
|
|
33
|
+
};
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"subscriptions",
|
|
7
7
|
"set-key"
|
|
8
8
|
],
|
|
9
|
-
"summary": "
|
|
9
|
+
"summary": "Add a GLM Coding Plan (zai) or Kimi Code (moonshot) key to your subscriptions: Claude and Codex connect by signing in. With loginId it replaces that key instead. The key is tested with one call before it is kept; 409 when it is already connected or you hold five.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"provider"
|
|
12
12
|
],
|
|
@@ -18,6 +18,13 @@ export const operation = {
|
|
|
18
18
|
"flag": "field-api-key",
|
|
19
19
|
"kind": "string",
|
|
20
20
|
"required": true
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "loginId",
|
|
24
|
+
"flag": "login-id",
|
|
25
|
+
"kind": "string",
|
|
26
|
+
"required": false,
|
|
27
|
+
"description": "The connected key to replace, as listed under logins. Without it the key is added."
|
|
21
28
|
}
|
|
22
29
|
],
|
|
23
30
|
"required": true
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"subscriptions",
|
|
7
7
|
"usage"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Read the session and weekly utilization of your Claude (claude_code, the default), Codex, GLM Coding Plan (coding_plan) or Kimi Code (kimi_code) subscription
|
|
9
|
+
"summary": "Read the session and weekly utilization of your Claude (claude_code, the default), Codex, GLM Coding Plan (coding_plan) or Kimi Code (kimi_code) subscription: of the login in use, or of the one loginId names. Kimi Code reports a monthly window instead of a weekly one. 400 when it is not connected or needs reconnecting.",
|
|
10
10
|
"pathParams": [],
|
|
11
11
|
"query": [
|
|
12
12
|
{
|
|
@@ -20,6 +20,13 @@ export const operation = {
|
|
|
20
20
|
"coding_plan",
|
|
21
21
|
"kimi_code"
|
|
22
22
|
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "loginId",
|
|
26
|
+
"flag": "login-id",
|
|
27
|
+
"kind": "string",
|
|
28
|
+
"required": false,
|
|
29
|
+
"description": "One of your logins of that subscription, as listed under logins. Default: the one in use."
|
|
23
30
|
}
|
|
24
31
|
],
|
|
25
32
|
"body": null,
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"ai-provider",
|
|
7
7
|
"get"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Read the workspace credentials and active auth method per provider. Secrets are masked.",
|
|
9
|
+
"summary": "Read the workspace credentials and active auth method per provider, with every login of claude_code and codex in the order it is used. Secrets are masked.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"workspaceId"
|
|
12
12
|
],
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "put",
|
|
3
|
+
"path": "/api/organizations/{workspaceId}/ai-provider/logins/order",
|
|
4
|
+
"command": [
|
|
5
|
+
"workspaces",
|
|
6
|
+
"ai-provider",
|
|
7
|
+
"logins",
|
|
8
|
+
"reorder"
|
|
9
|
+
],
|
|
10
|
+
"summary": "Set the order the workspace's logins of claude_code or codex are used in: the first that is neither at its limit nor needs reconnecting runs. ids must be every login of that method, once each; 409 when they are not. Admins only. Answers 204.",
|
|
11
|
+
"pathParams": [
|
|
12
|
+
"workspaceId"
|
|
13
|
+
],
|
|
14
|
+
"query": [],
|
|
15
|
+
"body": {
|
|
16
|
+
"fields": [
|
|
17
|
+
{
|
|
18
|
+
"name": "ids",
|
|
19
|
+
"flag": "ids",
|
|
20
|
+
"kind": "json",
|
|
21
|
+
"required": true
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "provider",
|
|
25
|
+
"flag": "provider",
|
|
26
|
+
"kind": "string",
|
|
27
|
+
"required": true,
|
|
28
|
+
"choices": [
|
|
29
|
+
"anthropic",
|
|
30
|
+
"openai"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "authMethod",
|
|
35
|
+
"flag": "auth-method",
|
|
36
|
+
"kind": "string",
|
|
37
|
+
"required": true,
|
|
38
|
+
"description": "Must belong to the provider: anthropic takes claude_code, openai codex.",
|
|
39
|
+
"choices": [
|
|
40
|
+
"claude_code",
|
|
41
|
+
"codex"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"required": true
|
|
46
|
+
},
|
|
47
|
+
"multipart": null,
|
|
48
|
+
"attachments": false,
|
|
49
|
+
"anonymous": false,
|
|
50
|
+
"sandboxToken": false,
|
|
51
|
+
"orchestratorToken": false,
|
|
52
|
+
"cronToken": false,
|
|
53
|
+
"leadToken": false
|
|
54
|
+
};
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"ai-provider",
|
|
7
7
|
"remove"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Remove the credentials of one auth method. Which methods a provider takes is not in the schema. Admins only.",
|
|
9
|
+
"summary": "Remove the credentials of one auth method, or with loginId one login of claude_code or codex. Which methods a provider takes is not in the schema. Admins only.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"workspaceId"
|
|
12
12
|
],
|
|
@@ -37,6 +37,13 @@ export const operation = {
|
|
|
37
37
|
"coding_plan",
|
|
38
38
|
"kimi_code"
|
|
39
39
|
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "loginId",
|
|
43
|
+
"flag": "login-id",
|
|
44
|
+
"kind": "string",
|
|
45
|
+
"required": false,
|
|
46
|
+
"description": "One login of claude_code or codex to disconnect, as listed under logins. Without it the whole method is removed."
|
|
40
47
|
}
|
|
41
48
|
],
|
|
42
49
|
"body": null,
|
|
@@ -7,11 +7,19 @@ export const operation = {
|
|
|
7
7
|
"usage",
|
|
8
8
|
"claude"
|
|
9
9
|
],
|
|
10
|
-
"summary": "Read the session and weekly utilization of the workspace's Claude login. 400 when the workspace holds no Claude login or it needs reconnecting.",
|
|
10
|
+
"summary": "Read the session and weekly utilization of the workspace's Claude login: the one in use, or the one loginId names. 400 when the workspace holds no such Claude login or it needs reconnecting.",
|
|
11
11
|
"pathParams": [
|
|
12
12
|
"workspaceId"
|
|
13
13
|
],
|
|
14
|
-
"query": [
|
|
14
|
+
"query": [
|
|
15
|
+
{
|
|
16
|
+
"name": "loginId",
|
|
17
|
+
"flag": "login-id",
|
|
18
|
+
"kind": "string",
|
|
19
|
+
"required": false,
|
|
20
|
+
"description": "One of the workspace's Claude logins, as listed under logins. Default: the one in use."
|
|
21
|
+
}
|
|
22
|
+
],
|
|
15
23
|
"body": null,
|
|
16
24
|
"multipart": null,
|
|
17
25
|
"attachments": false,
|
|
@@ -7,11 +7,19 @@ export const operation = {
|
|
|
7
7
|
"usage",
|
|
8
8
|
"codex"
|
|
9
9
|
],
|
|
10
|
-
"summary": "Read the session and weekly utilization of the workspace's Codex login. 400 when the workspace holds no Codex login or it needs reconnecting.",
|
|
10
|
+
"summary": "Read the session and weekly utilization of the workspace's Codex login: the one in use, or the one loginId names. 400 when the workspace holds no such Codex login or it needs reconnecting.",
|
|
11
11
|
"pathParams": [
|
|
12
12
|
"workspaceId"
|
|
13
13
|
],
|
|
14
|
-
"query": [
|
|
14
|
+
"query": [
|
|
15
|
+
{
|
|
16
|
+
"name": "loginId",
|
|
17
|
+
"flag": "login-id",
|
|
18
|
+
"kind": "string",
|
|
19
|
+
"required": false,
|
|
20
|
+
"description": "One of the workspace's Codex logins, as listed under logins. Default: the one in use."
|
|
21
|
+
}
|
|
22
|
+
],
|
|
15
23
|
"body": null,
|
|
16
24
|
"multipart": null,
|
|
17
25
|
"attachments": false,
|
|
@@ -12,7 +12,18 @@ export const operation = {
|
|
|
12
12
|
"workspaceId"
|
|
13
13
|
],
|
|
14
14
|
"query": [],
|
|
15
|
-
"body":
|
|
15
|
+
"body": {
|
|
16
|
+
"fields": [
|
|
17
|
+
{
|
|
18
|
+
"name": "replaceLoginId",
|
|
19
|
+
"flag": "replace-login-id",
|
|
20
|
+
"kind": "string",
|
|
21
|
+
"required": false,
|
|
22
|
+
"description": "Reconnect this connected account instead of adding another."
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"required": false
|
|
26
|
+
},
|
|
16
27
|
"multipart": null,
|
|
17
28
|
"attachments": false,
|
|
18
29
|
"anonymous": false,
|
|
@@ -12,7 +12,18 @@ export const operation = {
|
|
|
12
12
|
"workspaceId"
|
|
13
13
|
],
|
|
14
14
|
"query": [],
|
|
15
|
-
"body":
|
|
15
|
+
"body": {
|
|
16
|
+
"fields": [
|
|
17
|
+
{
|
|
18
|
+
"name": "replaceLoginId",
|
|
19
|
+
"flag": "replace-login-id",
|
|
20
|
+
"kind": "string",
|
|
21
|
+
"required": false,
|
|
22
|
+
"description": "Reconnect this connected account instead of adding another."
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"required": false
|
|
26
|
+
},
|
|
16
27
|
"multipart": null,
|
|
17
28
|
"attachments": false,
|
|
18
29
|
"anonymous": false,
|
|
@@ -32,6 +32,7 @@ const MEDIA_TYPES = {
|
|
|
32
32
|
'.tsv': 'text/tab-separated-values',
|
|
33
33
|
'.json': 'application/json',
|
|
34
34
|
'.xml': 'application/xml',
|
|
35
|
+
'.svg': 'image/svg+xml',
|
|
35
36
|
'.yaml': 'application/x-yaml',
|
|
36
37
|
'.yml': 'application/x-yaml',
|
|
37
38
|
'.xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
package/openapi.json
CHANGED
|
@@ -723,7 +723,7 @@
|
|
|
723
723
|
"/api/organizations/{workspaceId}/ai-provider": {
|
|
724
724
|
"get": {
|
|
725
725
|
"operationId": "workspacesAiProviderGet",
|
|
726
|
-
"summary": "Read the workspace credentials and active auth method per provider. Secrets are masked.",
|
|
726
|
+
"summary": "Read the workspace credentials and active auth method per provider, with every login of claude_code and codex in the order it is used. Secrets are masked.",
|
|
727
727
|
"tags": ["workspaces"],
|
|
728
728
|
"x-kosuke-command": ["workspaces", "ai-provider", "get"],
|
|
729
729
|
"x-kosuke-sandbox-token": true,
|
|
@@ -946,7 +946,7 @@
|
|
|
946
946
|
},
|
|
947
947
|
"delete": {
|
|
948
948
|
"operationId": "workspacesAiProviderRemove",
|
|
949
|
-
"summary": "Remove the credentials of one auth method. Which methods a provider takes is not in the schema. Admins only.",
|
|
949
|
+
"summary": "Remove the credentials of one auth method, or with loginId one login of claude_code or codex. Which methods a provider takes is not in the schema. Admins only.",
|
|
950
950
|
"tags": ["workspaces"],
|
|
951
951
|
"x-kosuke-command": ["workspaces", "ai-provider", "remove"],
|
|
952
952
|
"parameters": [
|
|
@@ -985,6 +985,18 @@
|
|
|
985
985
|
],
|
|
986
986
|
"description": "Must belong to the provider: anthropic takes api_key, aws_bedrock or claude_code, openai api_key or codex, zai coding_plan, moonshot kimi_code."
|
|
987
987
|
}
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"name": "loginId",
|
|
991
|
+
"in": "query",
|
|
992
|
+
"required": false,
|
|
993
|
+
"description": "One login of claude_code or codex to disconnect, as listed under logins. Without it the whole method is removed.",
|
|
994
|
+
"schema": {
|
|
995
|
+
"description": "One login of claude_code or codex to disconnect, as listed under logins. Without it the whole method is removed.",
|
|
996
|
+
"type": "string",
|
|
997
|
+
"format": "uuid",
|
|
998
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
999
|
+
}
|
|
988
1000
|
}
|
|
989
1001
|
],
|
|
990
1002
|
"responses": {
|
|
@@ -1024,7 +1036,7 @@
|
|
|
1024
1036
|
"/api/organizations/{workspaceId}/ai-provider/claude-usage": {
|
|
1025
1037
|
"get": {
|
|
1026
1038
|
"operationId": "workspacesAiProviderUsageClaude",
|
|
1027
|
-
"summary": "Read the session and weekly utilization of the workspace's Claude login. 400 when the workspace holds no Claude login or it needs reconnecting.",
|
|
1039
|
+
"summary": "Read the session and weekly utilization of the workspace's Claude login: the one in use, or the one loginId names. 400 when the workspace holds no such Claude login or it needs reconnecting.",
|
|
1028
1040
|
"tags": ["workspaces"],
|
|
1029
1041
|
"x-kosuke-command": ["workspaces", "ai-provider", "usage", "claude"],
|
|
1030
1042
|
"x-kosuke-sandbox-token": true,
|
|
@@ -1040,6 +1052,18 @@
|
|
|
1040
1052
|
"type": "string",
|
|
1041
1053
|
"minLength": 1
|
|
1042
1054
|
}
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
"name": "loginId",
|
|
1058
|
+
"in": "query",
|
|
1059
|
+
"required": false,
|
|
1060
|
+
"description": "One of the workspace's Claude logins, as listed under logins. Default: the one in use.",
|
|
1061
|
+
"schema": {
|
|
1062
|
+
"description": "One of the workspace's Claude logins, as listed under logins. Default: the one in use.",
|
|
1063
|
+
"type": "string",
|
|
1064
|
+
"format": "uuid",
|
|
1065
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
1066
|
+
}
|
|
1043
1067
|
}
|
|
1044
1068
|
],
|
|
1045
1069
|
"responses": {
|
|
@@ -1079,7 +1103,7 @@
|
|
|
1079
1103
|
"/api/organizations/{workspaceId}/ai-provider/codex-usage": {
|
|
1080
1104
|
"get": {
|
|
1081
1105
|
"operationId": "workspacesAiProviderUsageCodex",
|
|
1082
|
-
"summary": "Read the session and weekly utilization of the workspace's Codex login. 400 when the workspace holds no Codex login or it needs reconnecting.",
|
|
1106
|
+
"summary": "Read the session and weekly utilization of the workspace's Codex login: the one in use, or the one loginId names. 400 when the workspace holds no such Codex login or it needs reconnecting.",
|
|
1083
1107
|
"tags": ["workspaces"],
|
|
1084
1108
|
"x-kosuke-command": ["workspaces", "ai-provider", "usage", "codex"],
|
|
1085
1109
|
"x-kosuke-sandbox-token": true,
|
|
@@ -1095,6 +1119,18 @@
|
|
|
1095
1119
|
"type": "string",
|
|
1096
1120
|
"minLength": 1
|
|
1097
1121
|
}
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"name": "loginId",
|
|
1125
|
+
"in": "query",
|
|
1126
|
+
"required": false,
|
|
1127
|
+
"description": "One of the workspace's Codex logins, as listed under logins. Default: the one in use.",
|
|
1128
|
+
"schema": {
|
|
1129
|
+
"description": "One of the workspace's Codex logins, as listed under logins. Default: the one in use.",
|
|
1130
|
+
"type": "string",
|
|
1131
|
+
"format": "uuid",
|
|
1132
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
1133
|
+
}
|
|
1098
1134
|
}
|
|
1099
1135
|
],
|
|
1100
1136
|
"responses": {
|
|
@@ -1241,6 +1277,89 @@
|
|
|
1241
1277
|
}
|
|
1242
1278
|
}
|
|
1243
1279
|
},
|
|
1280
|
+
"/api/organizations/{workspaceId}/ai-provider/logins/order": {
|
|
1281
|
+
"put": {
|
|
1282
|
+
"operationId": "workspacesAiProviderLoginsReorder",
|
|
1283
|
+
"summary": "Set the order the workspace's logins of claude_code or codex are used in: the first that is neither at its limit nor needs reconnecting runs. ids must be every login of that method, once each; 409 when they are not. Admins only. Answers 204.",
|
|
1284
|
+
"tags": ["workspaces"],
|
|
1285
|
+
"x-kosuke-command": ["workspaces", "ai-provider", "logins", "reorder"],
|
|
1286
|
+
"parameters": [
|
|
1287
|
+
{
|
|
1288
|
+
"name": "workspaceId",
|
|
1289
|
+
"in": "path",
|
|
1290
|
+
"required": true,
|
|
1291
|
+
"schema": {
|
|
1292
|
+
"type": "string",
|
|
1293
|
+
"minLength": 1
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
],
|
|
1297
|
+
"requestBody": {
|
|
1298
|
+
"required": true,
|
|
1299
|
+
"content": {
|
|
1300
|
+
"application/json": {
|
|
1301
|
+
"schema": {
|
|
1302
|
+
"type": "object",
|
|
1303
|
+
"properties": {
|
|
1304
|
+
"ids": {
|
|
1305
|
+
"minItems": 1,
|
|
1306
|
+
"maxItems": 5,
|
|
1307
|
+
"type": "array",
|
|
1308
|
+
"items": {
|
|
1309
|
+
"type": "string",
|
|
1310
|
+
"format": "uuid",
|
|
1311
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
1312
|
+
}
|
|
1313
|
+
},
|
|
1314
|
+
"provider": {
|
|
1315
|
+
"type": "string",
|
|
1316
|
+
"enum": ["anthropic", "openai"]
|
|
1317
|
+
},
|
|
1318
|
+
"authMethod": {
|
|
1319
|
+
"type": "string",
|
|
1320
|
+
"enum": ["claude_code", "codex"],
|
|
1321
|
+
"description": "Must belong to the provider: anthropic takes claude_code, openai codex."
|
|
1322
|
+
}
|
|
1323
|
+
},
|
|
1324
|
+
"required": ["ids", "provider", "authMethod"]
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
},
|
|
1329
|
+
"responses": {
|
|
1330
|
+
"2XX": {
|
|
1331
|
+
"description": "Success envelope",
|
|
1332
|
+
"content": {
|
|
1333
|
+
"application/json": {
|
|
1334
|
+
"schema": {
|
|
1335
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
},
|
|
1340
|
+
"4XX": {
|
|
1341
|
+
"description": "Error envelope",
|
|
1342
|
+
"content": {
|
|
1343
|
+
"application/json": {
|
|
1344
|
+
"schema": {
|
|
1345
|
+
"$ref": "#/components/schemas/ApiError"
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
},
|
|
1350
|
+
"5XX": {
|
|
1351
|
+
"description": "Error envelope",
|
|
1352
|
+
"content": {
|
|
1353
|
+
"application/json": {
|
|
1354
|
+
"schema": {
|
|
1355
|
+
"$ref": "#/components/schemas/ApiError"
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
},
|
|
1244
1363
|
"/api/organizations/{workspaceId}/artifacts/search": {
|
|
1245
1364
|
"get": {
|
|
1246
1365
|
"operationId": "workspacesArtifacts",
|
|
@@ -4354,6 +4473,24 @@
|
|
|
4354
4473
|
}
|
|
4355
4474
|
}
|
|
4356
4475
|
],
|
|
4476
|
+
"requestBody": {
|
|
4477
|
+
"required": false,
|
|
4478
|
+
"content": {
|
|
4479
|
+
"application/json": {
|
|
4480
|
+
"schema": {
|
|
4481
|
+
"type": "object",
|
|
4482
|
+
"properties": {
|
|
4483
|
+
"replaceLoginId": {
|
|
4484
|
+
"description": "Reconnect this connected account instead of adding another.",
|
|
4485
|
+
"type": "string",
|
|
4486
|
+
"format": "uuid",
|
|
4487
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
4488
|
+
}
|
|
4489
|
+
}
|
|
4490
|
+
}
|
|
4491
|
+
}
|
|
4492
|
+
}
|
|
4493
|
+
},
|
|
4357
4494
|
"responses": {
|
|
4358
4495
|
"2XX": {
|
|
4359
4496
|
"description": "Success envelope",
|
|
@@ -4477,6 +4614,24 @@
|
|
|
4477
4614
|
}
|
|
4478
4615
|
}
|
|
4479
4616
|
],
|
|
4617
|
+
"requestBody": {
|
|
4618
|
+
"required": false,
|
|
4619
|
+
"content": {
|
|
4620
|
+
"application/json": {
|
|
4621
|
+
"schema": {
|
|
4622
|
+
"type": "object",
|
|
4623
|
+
"properties": {
|
|
4624
|
+
"replaceLoginId": {
|
|
4625
|
+
"description": "Reconnect this connected account instead of adding another.",
|
|
4626
|
+
"type": "string",
|
|
4627
|
+
"format": "uuid",
|
|
4628
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
4629
|
+
}
|
|
4630
|
+
}
|
|
4631
|
+
}
|
|
4632
|
+
}
|
|
4633
|
+
}
|
|
4634
|
+
},
|
|
4480
4635
|
"responses": {
|
|
4481
4636
|
"2XX": {
|
|
4482
4637
|
"description": "Success envelope",
|
|
@@ -13347,7 +13502,7 @@
|
|
|
13347
13502
|
"/api/user/subscriptions": {
|
|
13348
13503
|
"get": {
|
|
13349
13504
|
"operationId": "userSubscriptionsGet",
|
|
13350
|
-
"summary": "Read your Claude, Codex, GLM Coding Plan and Kimi Code subscriptions (connected, needsReauth, accountEmail, and maskedApiKey for a pasted plan key) and
|
|
13505
|
+
"summary": "Read your Claude, Codex, GLM Coding Plan and Kimi Code subscriptions and your default model. Per provider: the login in use (connected, needsReauth, accountEmail, and maskedApiKey for a pasted plan key) and every login in the order it is used (logins).",
|
|
13351
13506
|
"tags": ["user"],
|
|
13352
13507
|
"x-kosuke-command": ["user", "subscriptions", "get"],
|
|
13353
13508
|
"x-kosuke-sandbox-token": true,
|
|
@@ -13445,7 +13600,7 @@
|
|
|
13445
13600
|
"/api/user/subscriptions/{provider}": {
|
|
13446
13601
|
"put": {
|
|
13447
13602
|
"operationId": "userSubscriptionsSetKey",
|
|
13448
|
-
"summary": "
|
|
13603
|
+
"summary": "Add a GLM Coding Plan (zai) or Kimi Code (moonshot) key to your subscriptions: Claude and Codex connect by signing in. With loginId it replaces that key instead. The key is tested with one call before it is kept; 409 when it is already connected or you hold five.",
|
|
13449
13604
|
"tags": ["user"],
|
|
13450
13605
|
"x-kosuke-command": ["user", "subscriptions", "set-key"],
|
|
13451
13606
|
"parameters": [
|
|
@@ -13469,6 +13624,12 @@
|
|
|
13469
13624
|
"apiKey": {
|
|
13470
13625
|
"type": "string",
|
|
13471
13626
|
"minLength": 1
|
|
13627
|
+
},
|
|
13628
|
+
"loginId": {
|
|
13629
|
+
"description": "The connected key to replace, as listed under logins. Without it the key is added.",
|
|
13630
|
+
"type": "string",
|
|
13631
|
+
"format": "uuid",
|
|
13632
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
13472
13633
|
}
|
|
13473
13634
|
},
|
|
13474
13635
|
"required": ["apiKey"]
|
|
@@ -13511,7 +13672,7 @@
|
|
|
13511
13672
|
},
|
|
13512
13673
|
"delete": {
|
|
13513
13674
|
"operationId": "userSubscriptionsDelete",
|
|
13514
|
-
"summary": "Disconnect your subscription for one provider, anthropic, openai, zai or moonshot, and release the sandboxes running on it. Answers 204.",
|
|
13675
|
+
"summary": "Disconnect every login of your subscription for one provider, anthropic, openai, zai or moonshot, and release the sandboxes running on it. Answers 204.",
|
|
13515
13676
|
"tags": ["user"],
|
|
13516
13677
|
"x-kosuke-command": ["user", "subscriptions", "delete"],
|
|
13517
13678
|
"parameters": [
|
|
@@ -13559,12 +13720,165 @@
|
|
|
13559
13720
|
}
|
|
13560
13721
|
}
|
|
13561
13722
|
},
|
|
13723
|
+
"/api/user/subscriptions/{provider}/logins/{loginId}": {
|
|
13724
|
+
"delete": {
|
|
13725
|
+
"operationId": "userSubscriptionsLoginsDelete",
|
|
13726
|
+
"summary": "Disconnect one login of your subscription for a provider, by its id under logins. Sessions move to your next login of that provider on their next message, or off the subscription when it was the last. Answers 204.",
|
|
13727
|
+
"tags": ["user"],
|
|
13728
|
+
"x-kosuke-command": ["user", "subscriptions", "logins", "delete"],
|
|
13729
|
+
"parameters": [
|
|
13730
|
+
{
|
|
13731
|
+
"name": "provider",
|
|
13732
|
+
"in": "path",
|
|
13733
|
+
"required": true,
|
|
13734
|
+
"schema": {
|
|
13735
|
+
"type": "string",
|
|
13736
|
+
"enum": ["anthropic", "openai", "zai", "moonshot"]
|
|
13737
|
+
}
|
|
13738
|
+
},
|
|
13739
|
+
{
|
|
13740
|
+
"name": "loginId",
|
|
13741
|
+
"in": "path",
|
|
13742
|
+
"required": true,
|
|
13743
|
+
"schema": {
|
|
13744
|
+
"type": "string",
|
|
13745
|
+
"format": "uuid",
|
|
13746
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
13747
|
+
}
|
|
13748
|
+
}
|
|
13749
|
+
],
|
|
13750
|
+
"responses": {
|
|
13751
|
+
"2XX": {
|
|
13752
|
+
"description": "Success envelope",
|
|
13753
|
+
"content": {
|
|
13754
|
+
"application/json": {
|
|
13755
|
+
"schema": {
|
|
13756
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
13757
|
+
}
|
|
13758
|
+
}
|
|
13759
|
+
}
|
|
13760
|
+
},
|
|
13761
|
+
"4XX": {
|
|
13762
|
+
"description": "Error envelope",
|
|
13763
|
+
"content": {
|
|
13764
|
+
"application/json": {
|
|
13765
|
+
"schema": {
|
|
13766
|
+
"$ref": "#/components/schemas/ApiError"
|
|
13767
|
+
}
|
|
13768
|
+
}
|
|
13769
|
+
}
|
|
13770
|
+
},
|
|
13771
|
+
"5XX": {
|
|
13772
|
+
"description": "Error envelope",
|
|
13773
|
+
"content": {
|
|
13774
|
+
"application/json": {
|
|
13775
|
+
"schema": {
|
|
13776
|
+
"$ref": "#/components/schemas/ApiError"
|
|
13777
|
+
}
|
|
13778
|
+
}
|
|
13779
|
+
}
|
|
13780
|
+
}
|
|
13781
|
+
}
|
|
13782
|
+
}
|
|
13783
|
+
},
|
|
13784
|
+
"/api/user/subscriptions/{provider}/logins/order": {
|
|
13785
|
+
"put": {
|
|
13786
|
+
"operationId": "userSubscriptionsLoginsReorder",
|
|
13787
|
+
"summary": "Set the order your logins of one provider are used in: the first that is neither at its limit nor needs reconnecting runs your sessions. ids must be every login of that provider, once each; 409 when they are not. Answers 204.",
|
|
13788
|
+
"tags": ["user"],
|
|
13789
|
+
"x-kosuke-command": ["user", "subscriptions", "logins", "reorder"],
|
|
13790
|
+
"parameters": [
|
|
13791
|
+
{
|
|
13792
|
+
"name": "provider",
|
|
13793
|
+
"in": "path",
|
|
13794
|
+
"required": true,
|
|
13795
|
+
"schema": {
|
|
13796
|
+
"type": "string",
|
|
13797
|
+
"enum": ["anthropic", "openai", "zai", "moonshot"]
|
|
13798
|
+
}
|
|
13799
|
+
}
|
|
13800
|
+
],
|
|
13801
|
+
"requestBody": {
|
|
13802
|
+
"required": true,
|
|
13803
|
+
"content": {
|
|
13804
|
+
"application/json": {
|
|
13805
|
+
"schema": {
|
|
13806
|
+
"type": "object",
|
|
13807
|
+
"properties": {
|
|
13808
|
+
"ids": {
|
|
13809
|
+
"minItems": 1,
|
|
13810
|
+
"maxItems": 5,
|
|
13811
|
+
"type": "array",
|
|
13812
|
+
"items": {
|
|
13813
|
+
"type": "string",
|
|
13814
|
+
"format": "uuid",
|
|
13815
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
13816
|
+
}
|
|
13817
|
+
}
|
|
13818
|
+
},
|
|
13819
|
+
"required": ["ids"]
|
|
13820
|
+
}
|
|
13821
|
+
}
|
|
13822
|
+
}
|
|
13823
|
+
},
|
|
13824
|
+
"responses": {
|
|
13825
|
+
"2XX": {
|
|
13826
|
+
"description": "Success envelope",
|
|
13827
|
+
"content": {
|
|
13828
|
+
"application/json": {
|
|
13829
|
+
"schema": {
|
|
13830
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
13831
|
+
}
|
|
13832
|
+
}
|
|
13833
|
+
}
|
|
13834
|
+
},
|
|
13835
|
+
"4XX": {
|
|
13836
|
+
"description": "Error envelope",
|
|
13837
|
+
"content": {
|
|
13838
|
+
"application/json": {
|
|
13839
|
+
"schema": {
|
|
13840
|
+
"$ref": "#/components/schemas/ApiError"
|
|
13841
|
+
}
|
|
13842
|
+
}
|
|
13843
|
+
}
|
|
13844
|
+
},
|
|
13845
|
+
"5XX": {
|
|
13846
|
+
"description": "Error envelope",
|
|
13847
|
+
"content": {
|
|
13848
|
+
"application/json": {
|
|
13849
|
+
"schema": {
|
|
13850
|
+
"$ref": "#/components/schemas/ApiError"
|
|
13851
|
+
}
|
|
13852
|
+
}
|
|
13853
|
+
}
|
|
13854
|
+
}
|
|
13855
|
+
}
|
|
13856
|
+
}
|
|
13857
|
+
},
|
|
13562
13858
|
"/api/user/subscriptions/login/claude": {
|
|
13563
13859
|
"post": {
|
|
13564
13860
|
"operationId": "userSubscriptionsLoginClaudeStart",
|
|
13565
13861
|
"summary": "Start connecting your Claude subscription: open the returned url in a browser, then pass the code it shows and loginToken to complete within 15 minutes.",
|
|
13566
13862
|
"tags": ["user"],
|
|
13567
13863
|
"x-kosuke-command": ["user", "subscriptions", "login", "claude", "start"],
|
|
13864
|
+
"requestBody": {
|
|
13865
|
+
"required": false,
|
|
13866
|
+
"content": {
|
|
13867
|
+
"application/json": {
|
|
13868
|
+
"schema": {
|
|
13869
|
+
"type": "object",
|
|
13870
|
+
"properties": {
|
|
13871
|
+
"replaceLoginId": {
|
|
13872
|
+
"description": "Reconnect this connected account instead of adding another.",
|
|
13873
|
+
"type": "string",
|
|
13874
|
+
"format": "uuid",
|
|
13875
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
13876
|
+
}
|
|
13877
|
+
}
|
|
13878
|
+
}
|
|
13879
|
+
}
|
|
13880
|
+
}
|
|
13881
|
+
},
|
|
13568
13882
|
"responses": {
|
|
13569
13883
|
"2XX": {
|
|
13570
13884
|
"description": "Success envelope",
|
|
@@ -13666,6 +13980,24 @@
|
|
|
13666
13980
|
"summary": "Start connecting your Codex subscription: enter userCode at verificationUrl in a browser, then call complete with loginToken until it answers authenticated.",
|
|
13667
13981
|
"tags": ["user"],
|
|
13668
13982
|
"x-kosuke-command": ["user", "subscriptions", "login", "codex", "start"],
|
|
13983
|
+
"requestBody": {
|
|
13984
|
+
"required": false,
|
|
13985
|
+
"content": {
|
|
13986
|
+
"application/json": {
|
|
13987
|
+
"schema": {
|
|
13988
|
+
"type": "object",
|
|
13989
|
+
"properties": {
|
|
13990
|
+
"replaceLoginId": {
|
|
13991
|
+
"description": "Reconnect this connected account instead of adding another.",
|
|
13992
|
+
"type": "string",
|
|
13993
|
+
"format": "uuid",
|
|
13994
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
13995
|
+
}
|
|
13996
|
+
}
|
|
13997
|
+
}
|
|
13998
|
+
}
|
|
13999
|
+
}
|
|
14000
|
+
},
|
|
13669
14001
|
"responses": {
|
|
13670
14002
|
"2XX": {
|
|
13671
14003
|
"description": "Success envelope",
|
|
@@ -13760,7 +14092,7 @@
|
|
|
13760
14092
|
"/api/user/subscriptions/usage": {
|
|
13761
14093
|
"get": {
|
|
13762
14094
|
"operationId": "userSubscriptionsUsage",
|
|
13763
|
-
"summary": "Read the session and weekly utilization of your Claude (claude_code, the default), Codex, GLM Coding Plan (coding_plan) or Kimi Code (kimi_code) subscription
|
|
14095
|
+
"summary": "Read the session and weekly utilization of your Claude (claude_code, the default), Codex, GLM Coding Plan (coding_plan) or Kimi Code (kimi_code) subscription: of the login in use, or of the one loginId names. Kimi Code reports a monthly window instead of a weekly one. 400 when it is not connected or needs reconnecting.",
|
|
13764
14096
|
"tags": ["user"],
|
|
13765
14097
|
"x-kosuke-command": ["user", "subscriptions", "usage"],
|
|
13766
14098
|
"x-kosuke-sandbox-token": true,
|
|
@@ -13777,6 +14109,18 @@
|
|
|
13777
14109
|
"type": "string",
|
|
13778
14110
|
"enum": ["claude_code", "codex", "coding_plan", "kimi_code"]
|
|
13779
14111
|
}
|
|
14112
|
+
},
|
|
14113
|
+
{
|
|
14114
|
+
"name": "loginId",
|
|
14115
|
+
"in": "query",
|
|
14116
|
+
"required": false,
|
|
14117
|
+
"description": "One of your logins of that subscription, as listed under logins. Default: the one in use.",
|
|
14118
|
+
"schema": {
|
|
14119
|
+
"description": "One of your logins of that subscription, as listed under logins. Default: the one in use.",
|
|
14120
|
+
"type": "string",
|
|
14121
|
+
"format": "uuid",
|
|
14122
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
14123
|
+
}
|
|
13780
14124
|
}
|
|
13781
14125
|
],
|
|
13782
14126
|
"responses": {
|