@claudexor/schema 3.4.2 → 3.6.0
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/accounts-migration.d.ts +112 -0
- package/dist/accounts-migration.d.ts.map +1 -0
- package/dist/accounts-migration.js +74 -0
- package/dist/accounts-migration.js.map +1 -0
- package/dist/budget.d.ts +3 -0
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +4 -0
- package/dist/budget.js.map +1 -1
- package/dist/config.d.ts +38 -22
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +26 -6
- package/dist/config.js.map +1 -1
- package/dist/control-operation-responses.d.ts +7 -7
- package/dist/control-run-detail.d.ts +19 -19
- package/dist/control-run-failure.d.ts +4 -4
- package/dist/control-run-failure.d.ts.map +1 -1
- package/dist/control-run-failure.js +7 -1
- package/dist/control-run-failure.js.map +1 -1
- package/dist/control.d.ts +23 -23
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +8 -8
- package/dist/control.js.map +1 -1
- package/dist/credential-profile-snapshot.d.ts +254 -14
- package/dist/credential-profile-snapshot.d.ts.map +1 -1
- package/dist/credential-profile.d.ts +307 -7
- package/dist/credential-profile.d.ts.map +1 -1
- package/dist/credential-profile.js +104 -9
- package/dist/credential-profile.js.map +1 -1
- package/dist/credential-store.d.ts +26 -0
- package/dist/credential-store.d.ts.map +1 -0
- package/dist/credential-store.js +30 -0
- package/dist/credential-store.js.map +1 -0
- package/dist/events.d.ts +44 -4
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +34 -0
- package/dist/events.js.map +1 -1
- package/dist/harness.d.ts +12 -5
- package/dist/harness.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-run-result.d.ts +10 -10
- package/dist/quota.d.ts +96 -14
- package/dist/quota.d.ts.map +1 -1
- package/dist/quota.js +60 -2
- package/dist/quota.js.map +1 -1
- package/dist/rate-limit.d.ts +9 -0
- package/dist/rate-limit.d.ts.map +1 -1
- package/dist/rate-limit.js +21 -0
- package/dist/rate-limit.js.map +1 -1
- package/dist/setup-login-input.js +1 -1
- package/dist/setup-login-input.js.map +1 -1
- package/dist/setup-login.d.ts +446 -0
- package/dist/setup-login.d.ts.map +1 -0
- package/dist/setup-login.js +161 -0
- package/dist/setup-login.js.map +1 -0
- package/dist/setup.d.ts +130 -491
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +8 -138
- package/dist/setup.js.map +1 -1
- package/generated/AccountsUnifiedMigrationFile.schema.json +61 -0
- package/generated/BudgetObservation.schema.json +4 -0
- package/generated/ControlAccountPoolsResponse.schema.json +93 -0
- package/generated/ControlAccountsMigrationRollbackRequest.schema.json +18 -0
- package/generated/ControlAccountsMigrationRollbackResponse.schema.json +63 -0
- package/generated/ControlCredentialProfileDeleteResponse.schema.json +1 -1
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +87 -3
- package/generated/ControlCredentialProfilesResponse.schema.json +77 -1
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +84 -3
- package/generated/ControlHarnessAccountPool.schema.json +79 -0
- package/generated/ControlHarnessSettingsPatch.schema.json +2 -1
- package/generated/ControlPoolNextUp.schema.json +63 -0
- package/generated/ControlQuotaResponse.schema.json +7 -2
- package/generated/ControlRunDetail.schema.json +2 -1
- package/generated/ControlRunListResponse.schema.json +2 -1
- package/generated/ControlRunSummary.schema.json +2 -1
- package/generated/ControlSettingsSnapshot.schema.json +3 -2
- package/generated/ControlSettingsUpdateRequest.schema.json +2 -1
- package/generated/ControlSetupJob.schema.json +6 -1
- package/generated/ControlSetupJobCreateRequest.schema.json +2 -1
- package/generated/ControlSetupJobEvent.schema.json +6 -1
- package/generated/ControlSetupJobListFilter.schema.json +2 -1
- package/generated/ControlSetupJobListResponse.schema.json +6 -1
- package/generated/ControlSetupJobSnapshot.schema.json +6 -1
- package/generated/GlobalConfig.schema.json +3 -2
- package/generated/HarnessEvent.schema.json +6 -1
- package/generated/McpRunHandleResult.schema.json +2 -1
- package/generated/McpRunToolResult.schema.json +2 -1
- package/generated/RunEvent.schema.json +4 -0
- package/generated/RunFailure.schema.json +2 -1
- package/package.json +2 -2
|
@@ -212,6 +212,56 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
|
|
|
212
212
|
reason: string;
|
|
213
213
|
};
|
|
214
214
|
}>, "many">>;
|
|
215
|
+
accountPools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
216
|
+
harness_id: z.ZodString;
|
|
217
|
+
next_up: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
218
|
+
kind: z.ZodLiteral<"profile">;
|
|
219
|
+
profileId: z.ZodString;
|
|
220
|
+
}, "strict", z.ZodTypeAny, {
|
|
221
|
+
kind: "profile";
|
|
222
|
+
profileId: string;
|
|
223
|
+
}, {
|
|
224
|
+
kind: "profile";
|
|
225
|
+
profileId: string;
|
|
226
|
+
}>, z.ZodObject<{
|
|
227
|
+
kind: z.ZodLiteral<"api_key_route">;
|
|
228
|
+
}, "strict", z.ZodTypeAny, {
|
|
229
|
+
kind: "api_key_route";
|
|
230
|
+
}, {
|
|
231
|
+
kind: "api_key_route";
|
|
232
|
+
}>, z.ZodObject<{
|
|
233
|
+
kind: z.ZodLiteral<"none">;
|
|
234
|
+
reason: z.ZodString;
|
|
235
|
+
}, "strict", z.ZodTypeAny, {
|
|
236
|
+
kind: "none";
|
|
237
|
+
reason: string;
|
|
238
|
+
}, {
|
|
239
|
+
kind: "none";
|
|
240
|
+
reason: string;
|
|
241
|
+
}>]>;
|
|
242
|
+
}, "strict", z.ZodTypeAny, {
|
|
243
|
+
harness_id: string;
|
|
244
|
+
next_up: {
|
|
245
|
+
kind: "profile";
|
|
246
|
+
profileId: string;
|
|
247
|
+
} | {
|
|
248
|
+
kind: "api_key_route";
|
|
249
|
+
} | {
|
|
250
|
+
kind: "none";
|
|
251
|
+
reason: string;
|
|
252
|
+
};
|
|
253
|
+
}, {
|
|
254
|
+
harness_id: string;
|
|
255
|
+
next_up: {
|
|
256
|
+
kind: "profile";
|
|
257
|
+
profileId: string;
|
|
258
|
+
} | {
|
|
259
|
+
kind: "api_key_route";
|
|
260
|
+
} | {
|
|
261
|
+
kind: "none";
|
|
262
|
+
reason: string;
|
|
263
|
+
};
|
|
264
|
+
}>, "many">>;
|
|
215
265
|
} & {
|
|
216
266
|
harnesses: z.ZodArray<z.ZodObject<{
|
|
217
267
|
id: z.ZodString;
|
|
@@ -906,6 +956,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
|
|
|
906
956
|
id: z.ZodString;
|
|
907
957
|
label: z.ZodString;
|
|
908
958
|
applies_to_models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
959
|
+
applies_to_unspecified_model: z.ZodOptional<z.ZodBoolean>;
|
|
909
960
|
used_ratio: z.ZodNullable<z.ZodNumber>;
|
|
910
961
|
window_seconds: z.ZodNullable<z.ZodNumber>;
|
|
911
962
|
resets_at: z.ZodNullable<z.ZodString>;
|
|
@@ -914,6 +965,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
|
|
|
914
965
|
id: string;
|
|
915
966
|
label: string;
|
|
916
967
|
applies_to_models?: string[] | null | undefined;
|
|
968
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
917
969
|
used_ratio: number | null;
|
|
918
970
|
window_seconds: number | null;
|
|
919
971
|
resets_at: string | null;
|
|
@@ -922,12 +974,13 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
|
|
|
922
974
|
id: string;
|
|
923
975
|
label: string;
|
|
924
976
|
applies_to_models?: string[] | null | undefined;
|
|
977
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
925
978
|
used_ratio: number | null;
|
|
926
979
|
window_seconds: number | null;
|
|
927
980
|
resets_at: string | null;
|
|
928
981
|
cooldown_until?: string | null | undefined;
|
|
929
982
|
}>, "many">;
|
|
930
|
-
source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage"]>;
|
|
983
|
+
source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage", "cursor_rate_limit"]>;
|
|
931
984
|
observed_at: z.ZodString;
|
|
932
985
|
freshness: z.ZodEnum<["fresh", "stale", "unknown"]>;
|
|
933
986
|
} & {
|
|
@@ -978,12 +1031,13 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
|
|
|
978
1031
|
id: string;
|
|
979
1032
|
label: string;
|
|
980
1033
|
applies_to_models?: string[] | null | undefined;
|
|
1034
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
981
1035
|
used_ratio: number | null;
|
|
982
1036
|
window_seconds: number | null;
|
|
983
1037
|
resets_at: string | null;
|
|
984
1038
|
cooldown_until: string | null;
|
|
985
1039
|
}[];
|
|
986
|
-
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
1040
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
987
1041
|
observed_at: string;
|
|
988
1042
|
freshness: "fresh" | "stale" | "unknown";
|
|
989
1043
|
availability?: {
|
|
@@ -1007,12 +1061,13 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
|
|
|
1007
1061
|
id: string;
|
|
1008
1062
|
label: string;
|
|
1009
1063
|
applies_to_models?: string[] | null | undefined;
|
|
1064
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
1010
1065
|
used_ratio: number | null;
|
|
1011
1066
|
window_seconds: number | null;
|
|
1012
1067
|
resets_at: string | null;
|
|
1013
1068
|
cooldown_until?: string | null | undefined;
|
|
1014
1069
|
}[];
|
|
1015
|
-
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
1070
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
1016
1071
|
observed_at: string;
|
|
1017
1072
|
freshness: "fresh" | "stale" | "unknown";
|
|
1018
1073
|
availability?: {
|
|
@@ -1080,12 +1135,13 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
|
|
|
1080
1135
|
id: string;
|
|
1081
1136
|
label: string;
|
|
1082
1137
|
applies_to_models?: string[] | null | undefined;
|
|
1138
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
1083
1139
|
used_ratio: number | null;
|
|
1084
1140
|
window_seconds: number | null;
|
|
1085
1141
|
resets_at: string | null;
|
|
1086
1142
|
cooldown_until: string | null;
|
|
1087
1143
|
}[];
|
|
1088
|
-
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
1144
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
1089
1145
|
observed_at: string;
|
|
1090
1146
|
freshness: "fresh" | "stale" | "unknown";
|
|
1091
1147
|
availability?: {
|
|
@@ -1123,12 +1179,13 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
|
|
|
1123
1179
|
id: string;
|
|
1124
1180
|
label: string;
|
|
1125
1181
|
applies_to_models?: string[] | null | undefined;
|
|
1182
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
1126
1183
|
used_ratio: number | null;
|
|
1127
1184
|
window_seconds: number | null;
|
|
1128
1185
|
resets_at: string | null;
|
|
1129
1186
|
cooldown_until?: string | null | undefined;
|
|
1130
1187
|
}[];
|
|
1131
|
-
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
1188
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
1132
1189
|
observed_at: string;
|
|
1133
1190
|
freshness: "fresh" | "stale" | "unknown";
|
|
1134
1191
|
availability?: {
|
|
@@ -1201,6 +1258,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
|
|
|
1201
1258
|
reason: string;
|
|
1202
1259
|
};
|
|
1203
1260
|
}[];
|
|
1261
|
+
accountPools: {
|
|
1262
|
+
harness_id: string;
|
|
1263
|
+
next_up: {
|
|
1264
|
+
kind: "profile";
|
|
1265
|
+
profileId: string;
|
|
1266
|
+
} | {
|
|
1267
|
+
kind: "api_key_route";
|
|
1268
|
+
} | {
|
|
1269
|
+
kind: "none";
|
|
1270
|
+
reason: string;
|
|
1271
|
+
};
|
|
1272
|
+
}[];
|
|
1204
1273
|
harnesses: {
|
|
1205
1274
|
id: string;
|
|
1206
1275
|
status: "degraded" | "ok" | "unavailable";
|
|
@@ -1322,12 +1391,13 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
|
|
|
1322
1391
|
id: string;
|
|
1323
1392
|
label: string;
|
|
1324
1393
|
applies_to_models?: string[] | null | undefined;
|
|
1394
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
1325
1395
|
used_ratio: number | null;
|
|
1326
1396
|
window_seconds: number | null;
|
|
1327
1397
|
resets_at: string | null;
|
|
1328
1398
|
cooldown_until: string | null;
|
|
1329
1399
|
}[];
|
|
1330
|
-
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
1400
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
1331
1401
|
observed_at: string;
|
|
1332
1402
|
freshness: "fresh" | "stale" | "unknown";
|
|
1333
1403
|
availability?: {
|
|
@@ -1400,6 +1470,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
|
|
|
1400
1470
|
reason: string;
|
|
1401
1471
|
};
|
|
1402
1472
|
}[] | undefined;
|
|
1473
|
+
accountPools?: {
|
|
1474
|
+
harness_id: string;
|
|
1475
|
+
next_up: {
|
|
1476
|
+
kind: "profile";
|
|
1477
|
+
profileId: string;
|
|
1478
|
+
} | {
|
|
1479
|
+
kind: "api_key_route";
|
|
1480
|
+
} | {
|
|
1481
|
+
kind: "none";
|
|
1482
|
+
reason: string;
|
|
1483
|
+
};
|
|
1484
|
+
}[] | undefined;
|
|
1403
1485
|
harnesses: {
|
|
1404
1486
|
id: string;
|
|
1405
1487
|
status: "degraded" | "ok" | "unavailable";
|
|
@@ -1521,12 +1603,13 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
|
|
|
1521
1603
|
id: string;
|
|
1522
1604
|
label: string;
|
|
1523
1605
|
applies_to_models?: string[] | null | undefined;
|
|
1606
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
1524
1607
|
used_ratio: number | null;
|
|
1525
1608
|
window_seconds: number | null;
|
|
1526
1609
|
resets_at: string | null;
|
|
1527
1610
|
cooldown_until?: string | null | undefined;
|
|
1528
1611
|
}[];
|
|
1529
|
-
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
1612
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
1530
1613
|
observed_at: string;
|
|
1531
1614
|
freshness: "fresh" | "stale" | "unknown";
|
|
1532
1615
|
availability?: {
|
|
@@ -1770,6 +1853,56 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
|
|
|
1770
1853
|
reason: string;
|
|
1771
1854
|
};
|
|
1772
1855
|
}>, "many">>;
|
|
1856
|
+
accountPools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1857
|
+
harness_id: z.ZodString;
|
|
1858
|
+
next_up: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1859
|
+
kind: z.ZodLiteral<"profile">;
|
|
1860
|
+
profileId: z.ZodString;
|
|
1861
|
+
}, "strict", z.ZodTypeAny, {
|
|
1862
|
+
kind: "profile";
|
|
1863
|
+
profileId: string;
|
|
1864
|
+
}, {
|
|
1865
|
+
kind: "profile";
|
|
1866
|
+
profileId: string;
|
|
1867
|
+
}>, z.ZodObject<{
|
|
1868
|
+
kind: z.ZodLiteral<"api_key_route">;
|
|
1869
|
+
}, "strict", z.ZodTypeAny, {
|
|
1870
|
+
kind: "api_key_route";
|
|
1871
|
+
}, {
|
|
1872
|
+
kind: "api_key_route";
|
|
1873
|
+
}>, z.ZodObject<{
|
|
1874
|
+
kind: z.ZodLiteral<"none">;
|
|
1875
|
+
reason: z.ZodString;
|
|
1876
|
+
}, "strict", z.ZodTypeAny, {
|
|
1877
|
+
kind: "none";
|
|
1878
|
+
reason: string;
|
|
1879
|
+
}, {
|
|
1880
|
+
kind: "none";
|
|
1881
|
+
reason: string;
|
|
1882
|
+
}>]>;
|
|
1883
|
+
}, "strict", z.ZodTypeAny, {
|
|
1884
|
+
harness_id: string;
|
|
1885
|
+
next_up: {
|
|
1886
|
+
kind: "profile";
|
|
1887
|
+
profileId: string;
|
|
1888
|
+
} | {
|
|
1889
|
+
kind: "api_key_route";
|
|
1890
|
+
} | {
|
|
1891
|
+
kind: "none";
|
|
1892
|
+
reason: string;
|
|
1893
|
+
};
|
|
1894
|
+
}, {
|
|
1895
|
+
harness_id: string;
|
|
1896
|
+
next_up: {
|
|
1897
|
+
kind: "profile";
|
|
1898
|
+
profileId: string;
|
|
1899
|
+
} | {
|
|
1900
|
+
kind: "api_key_route";
|
|
1901
|
+
} | {
|
|
1902
|
+
kind: "none";
|
|
1903
|
+
reason: string;
|
|
1904
|
+
};
|
|
1905
|
+
}>, "many">>;
|
|
1773
1906
|
}, "strict", z.ZodTypeAny, {
|
|
1774
1907
|
profiles: {
|
|
1775
1908
|
profile: {
|
|
@@ -1815,6 +1948,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
|
|
|
1815
1948
|
reason: string;
|
|
1816
1949
|
};
|
|
1817
1950
|
}[];
|
|
1951
|
+
accountPools: {
|
|
1952
|
+
harness_id: string;
|
|
1953
|
+
next_up: {
|
|
1954
|
+
kind: "profile";
|
|
1955
|
+
profileId: string;
|
|
1956
|
+
} | {
|
|
1957
|
+
kind: "api_key_route";
|
|
1958
|
+
} | {
|
|
1959
|
+
kind: "none";
|
|
1960
|
+
reason: string;
|
|
1961
|
+
};
|
|
1962
|
+
}[];
|
|
1818
1963
|
}, {
|
|
1819
1964
|
profiles: {
|
|
1820
1965
|
profile: {
|
|
@@ -1860,6 +2005,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
|
|
|
1860
2005
|
reason: string;
|
|
1861
2006
|
};
|
|
1862
2007
|
}[] | undefined;
|
|
2008
|
+
accountPools?: {
|
|
2009
|
+
harness_id: string;
|
|
2010
|
+
next_up: {
|
|
2011
|
+
kind: "profile";
|
|
2012
|
+
profileId: string;
|
|
2013
|
+
} | {
|
|
2014
|
+
kind: "api_key_route";
|
|
2015
|
+
} | {
|
|
2016
|
+
kind: "none";
|
|
2017
|
+
reason: string;
|
|
2018
|
+
};
|
|
2019
|
+
}[] | undefined;
|
|
1863
2020
|
}>, z.ZodObject<{
|
|
1864
2021
|
profiles: z.ZodArray<z.ZodObject<{
|
|
1865
2022
|
profile: z.ZodEffects<z.ZodObject<{
|
|
@@ -2071,6 +2228,56 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
|
|
|
2071
2228
|
reason: string;
|
|
2072
2229
|
};
|
|
2073
2230
|
}>, "many">>;
|
|
2231
|
+
accountPools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2232
|
+
harness_id: z.ZodString;
|
|
2233
|
+
next_up: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2234
|
+
kind: z.ZodLiteral<"profile">;
|
|
2235
|
+
profileId: z.ZodString;
|
|
2236
|
+
}, "strict", z.ZodTypeAny, {
|
|
2237
|
+
kind: "profile";
|
|
2238
|
+
profileId: string;
|
|
2239
|
+
}, {
|
|
2240
|
+
kind: "profile";
|
|
2241
|
+
profileId: string;
|
|
2242
|
+
}>, z.ZodObject<{
|
|
2243
|
+
kind: z.ZodLiteral<"api_key_route">;
|
|
2244
|
+
}, "strict", z.ZodTypeAny, {
|
|
2245
|
+
kind: "api_key_route";
|
|
2246
|
+
}, {
|
|
2247
|
+
kind: "api_key_route";
|
|
2248
|
+
}>, z.ZodObject<{
|
|
2249
|
+
kind: z.ZodLiteral<"none">;
|
|
2250
|
+
reason: z.ZodString;
|
|
2251
|
+
}, "strict", z.ZodTypeAny, {
|
|
2252
|
+
kind: "none";
|
|
2253
|
+
reason: string;
|
|
2254
|
+
}, {
|
|
2255
|
+
kind: "none";
|
|
2256
|
+
reason: string;
|
|
2257
|
+
}>]>;
|
|
2258
|
+
}, "strict", z.ZodTypeAny, {
|
|
2259
|
+
harness_id: string;
|
|
2260
|
+
next_up: {
|
|
2261
|
+
kind: "profile";
|
|
2262
|
+
profileId: string;
|
|
2263
|
+
} | {
|
|
2264
|
+
kind: "api_key_route";
|
|
2265
|
+
} | {
|
|
2266
|
+
kind: "none";
|
|
2267
|
+
reason: string;
|
|
2268
|
+
};
|
|
2269
|
+
}, {
|
|
2270
|
+
harness_id: string;
|
|
2271
|
+
next_up: {
|
|
2272
|
+
kind: "profile";
|
|
2273
|
+
profileId: string;
|
|
2274
|
+
} | {
|
|
2275
|
+
kind: "api_key_route";
|
|
2276
|
+
} | {
|
|
2277
|
+
kind: "none";
|
|
2278
|
+
reason: string;
|
|
2279
|
+
};
|
|
2280
|
+
}>, "many">>;
|
|
2074
2281
|
} & {
|
|
2075
2282
|
harnesses: z.ZodArray<z.ZodObject<{
|
|
2076
2283
|
id: z.ZodString;
|
|
@@ -2765,6 +2972,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
|
|
|
2765
2972
|
id: z.ZodString;
|
|
2766
2973
|
label: z.ZodString;
|
|
2767
2974
|
applies_to_models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2975
|
+
applies_to_unspecified_model: z.ZodOptional<z.ZodBoolean>;
|
|
2768
2976
|
used_ratio: z.ZodNullable<z.ZodNumber>;
|
|
2769
2977
|
window_seconds: z.ZodNullable<z.ZodNumber>;
|
|
2770
2978
|
resets_at: z.ZodNullable<z.ZodString>;
|
|
@@ -2773,6 +2981,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
|
|
|
2773
2981
|
id: string;
|
|
2774
2982
|
label: string;
|
|
2775
2983
|
applies_to_models?: string[] | null | undefined;
|
|
2984
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
2776
2985
|
used_ratio: number | null;
|
|
2777
2986
|
window_seconds: number | null;
|
|
2778
2987
|
resets_at: string | null;
|
|
@@ -2781,12 +2990,13 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
|
|
|
2781
2990
|
id: string;
|
|
2782
2991
|
label: string;
|
|
2783
2992
|
applies_to_models?: string[] | null | undefined;
|
|
2993
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
2784
2994
|
used_ratio: number | null;
|
|
2785
2995
|
window_seconds: number | null;
|
|
2786
2996
|
resets_at: string | null;
|
|
2787
2997
|
cooldown_until?: string | null | undefined;
|
|
2788
2998
|
}>, "many">;
|
|
2789
|
-
source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage"]>;
|
|
2999
|
+
source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage", "cursor_rate_limit"]>;
|
|
2790
3000
|
observed_at: z.ZodString;
|
|
2791
3001
|
freshness: z.ZodEnum<["fresh", "stale", "unknown"]>;
|
|
2792
3002
|
} & {
|
|
@@ -2837,12 +3047,13 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
|
|
|
2837
3047
|
id: string;
|
|
2838
3048
|
label: string;
|
|
2839
3049
|
applies_to_models?: string[] | null | undefined;
|
|
3050
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
2840
3051
|
used_ratio: number | null;
|
|
2841
3052
|
window_seconds: number | null;
|
|
2842
3053
|
resets_at: string | null;
|
|
2843
3054
|
cooldown_until: string | null;
|
|
2844
3055
|
}[];
|
|
2845
|
-
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
3056
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
2846
3057
|
observed_at: string;
|
|
2847
3058
|
freshness: "fresh" | "stale" | "unknown";
|
|
2848
3059
|
availability?: {
|
|
@@ -2866,12 +3077,13 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
|
|
|
2866
3077
|
id: string;
|
|
2867
3078
|
label: string;
|
|
2868
3079
|
applies_to_models?: string[] | null | undefined;
|
|
3080
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
2869
3081
|
used_ratio: number | null;
|
|
2870
3082
|
window_seconds: number | null;
|
|
2871
3083
|
resets_at: string | null;
|
|
2872
3084
|
cooldown_until?: string | null | undefined;
|
|
2873
3085
|
}[];
|
|
2874
|
-
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
3086
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
2875
3087
|
observed_at: string;
|
|
2876
3088
|
freshness: "fresh" | "stale" | "unknown";
|
|
2877
3089
|
availability?: {
|
|
@@ -2939,12 +3151,13 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
|
|
|
2939
3151
|
id: string;
|
|
2940
3152
|
label: string;
|
|
2941
3153
|
applies_to_models?: string[] | null | undefined;
|
|
3154
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
2942
3155
|
used_ratio: number | null;
|
|
2943
3156
|
window_seconds: number | null;
|
|
2944
3157
|
resets_at: string | null;
|
|
2945
3158
|
cooldown_until: string | null;
|
|
2946
3159
|
}[];
|
|
2947
|
-
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
3160
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
2948
3161
|
observed_at: string;
|
|
2949
3162
|
freshness: "fresh" | "stale" | "unknown";
|
|
2950
3163
|
availability?: {
|
|
@@ -2982,12 +3195,13 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
|
|
|
2982
3195
|
id: string;
|
|
2983
3196
|
label: string;
|
|
2984
3197
|
applies_to_models?: string[] | null | undefined;
|
|
3198
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
2985
3199
|
used_ratio: number | null;
|
|
2986
3200
|
window_seconds: number | null;
|
|
2987
3201
|
resets_at: string | null;
|
|
2988
3202
|
cooldown_until?: string | null | undefined;
|
|
2989
3203
|
}[];
|
|
2990
|
-
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
3204
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
2991
3205
|
observed_at: string;
|
|
2992
3206
|
freshness: "fresh" | "stale" | "unknown";
|
|
2993
3207
|
availability?: {
|
|
@@ -3060,6 +3274,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
|
|
|
3060
3274
|
reason: string;
|
|
3061
3275
|
};
|
|
3062
3276
|
}[];
|
|
3277
|
+
accountPools: {
|
|
3278
|
+
harness_id: string;
|
|
3279
|
+
next_up: {
|
|
3280
|
+
kind: "profile";
|
|
3281
|
+
profileId: string;
|
|
3282
|
+
} | {
|
|
3283
|
+
kind: "api_key_route";
|
|
3284
|
+
} | {
|
|
3285
|
+
kind: "none";
|
|
3286
|
+
reason: string;
|
|
3287
|
+
};
|
|
3288
|
+
}[];
|
|
3063
3289
|
harnesses: {
|
|
3064
3290
|
id: string;
|
|
3065
3291
|
status: "degraded" | "ok" | "unavailable";
|
|
@@ -3181,12 +3407,13 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
|
|
|
3181
3407
|
id: string;
|
|
3182
3408
|
label: string;
|
|
3183
3409
|
applies_to_models?: string[] | null | undefined;
|
|
3410
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
3184
3411
|
used_ratio: number | null;
|
|
3185
3412
|
window_seconds: number | null;
|
|
3186
3413
|
resets_at: string | null;
|
|
3187
3414
|
cooldown_until: string | null;
|
|
3188
3415
|
}[];
|
|
3189
|
-
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
3416
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
3190
3417
|
observed_at: string;
|
|
3191
3418
|
freshness: "fresh" | "stale" | "unknown";
|
|
3192
3419
|
availability?: {
|
|
@@ -3259,6 +3486,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
|
|
|
3259
3486
|
reason: string;
|
|
3260
3487
|
};
|
|
3261
3488
|
}[] | undefined;
|
|
3489
|
+
accountPools?: {
|
|
3490
|
+
harness_id: string;
|
|
3491
|
+
next_up: {
|
|
3492
|
+
kind: "profile";
|
|
3493
|
+
profileId: string;
|
|
3494
|
+
} | {
|
|
3495
|
+
kind: "api_key_route";
|
|
3496
|
+
} | {
|
|
3497
|
+
kind: "none";
|
|
3498
|
+
reason: string;
|
|
3499
|
+
};
|
|
3500
|
+
}[] | undefined;
|
|
3262
3501
|
harnesses: {
|
|
3263
3502
|
id: string;
|
|
3264
3503
|
status: "degraded" | "ok" | "unavailable";
|
|
@@ -3380,12 +3619,13 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
|
|
|
3380
3619
|
id: string;
|
|
3381
3620
|
label: string;
|
|
3382
3621
|
applies_to_models?: string[] | null | undefined;
|
|
3622
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
3383
3623
|
used_ratio: number | null;
|
|
3384
3624
|
window_seconds: number | null;
|
|
3385
3625
|
resets_at: string | null;
|
|
3386
3626
|
cooldown_until?: string | null | undefined;
|
|
3387
3627
|
}[];
|
|
3388
|
-
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
3628
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
3389
3629
|
observed_at: string;
|
|
3390
3630
|
freshness: "fresh" | "stale" | "unknown";
|
|
3391
3631
|
availability?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-profile-snapshot.d.ts","sourceRoot":"","sources":["../src/credential-profile-snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAM3B;+EAC+E;AAC/E,eAAO,MAAM,yCAAyC
|
|
1
|
+
{"version":3,"file":"credential-profile-snapshot.d.ts","sourceRoot":"","sources":["../src/credential-profile-snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAM3B;+EAC+E;AAC/E,eAA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