@claudexor/schema 3.24.0 → 3.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/account-resources.d.ts +5842 -0
  2. package/dist/account-resources.d.ts.map +1 -0
  3. package/dist/account-resources.js +161 -0
  4. package/dist/account-resources.js.map +1 -0
  5. package/dist/account-target.d.ts +39 -0
  6. package/dist/account-target.d.ts.map +1 -0
  7. package/dist/account-target.js +16 -0
  8. package/dist/account-target.js.map +1 -0
  9. package/dist/credential-profile-snapshot.d.ts +5987 -126
  10. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  11. package/dist/credential-profile-snapshot.js +9 -1
  12. package/dist/credential-profile-snapshot.js.map +1 -1
  13. package/dist/harness-quota.d.ts +81 -0
  14. package/dist/harness-quota.d.ts.map +1 -0
  15. package/dist/harness-quota.js +20 -0
  16. package/dist/harness-quota.js.map +1 -0
  17. package/dist/harness.d.ts +116 -99
  18. package/dist/harness.d.ts.map +1 -1
  19. package/dist/harness.js +2 -12
  20. package/dist/harness.js.map +1 -1
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +1 -0
  24. package/dist/index.js.map +1 -1
  25. package/dist/quota.d.ts +1 -8
  26. package/dist/quota.d.ts.map +1 -1
  27. package/dist/quota.js +1 -10
  28. package/dist/quota.js.map +1 -1
  29. package/generated/ControlAccountResetRequest.schema.json +42 -0
  30. package/generated/ControlAccountResetResponse.schema.json +1024 -0
  31. package/generated/ControlAccountResourcesResponse.schema.json +912 -0
  32. package/generated/ControlCredentialProfilesQueryResponse.schema.json +600 -0
  33. package/generated/ControlCredentialProfilesResourcesResponse.schema.json +2324 -0
  34. package/generated/ControlQuotaQueryResponse.schema.json +939 -0
  35. package/generated/ControlQuotaRefreshRequest.schema.json +18 -0
  36. package/generated/HarnessEvent.schema.json +23 -0
  37. package/package.json +2 -2
@@ -1794,6 +1794,606 @@
1794
1794
  ],
1795
1795
  "additionalProperties": false,
1796
1796
  "description": "Atomic Accounts snapshot: profiles, next-up authority, fresh harness readiness, Git capability, and quota from one server-authored epoch."
1797
+ },
1798
+ {
1799
+ "type": "object",
1800
+ "properties": {
1801
+ "profiles": {
1802
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/0/properties/profiles"
1803
+ },
1804
+ "harnessAccounts": {
1805
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/0/properties/harnessAccounts"
1806
+ },
1807
+ "accountPools": {
1808
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/0/properties/accountPools"
1809
+ },
1810
+ "harnesses": {
1811
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/1/properties/harnesses"
1812
+ },
1813
+ "git": {
1814
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/1/properties/git"
1815
+ },
1816
+ "quota": {
1817
+ "type": "object",
1818
+ "properties": {
1819
+ "snapshots": {
1820
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/1/properties/quota/properties/snapshots"
1821
+ },
1822
+ "absences": {
1823
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/1/properties/quota/properties/absences"
1824
+ },
1825
+ "refreshed_at": {
1826
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/1/properties/quota/properties/refreshed_at"
1827
+ },
1828
+ "refresh_skipped": {
1829
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/1/properties/quota/properties/refresh_skipped"
1830
+ },
1831
+ "resources": {
1832
+ "type": "array",
1833
+ "items": {
1834
+ "type": "object",
1835
+ "properties": {
1836
+ "target": {
1837
+ "type": "object",
1838
+ "properties": {
1839
+ "harness": {
1840
+ "type": "string",
1841
+ "minLength": 1
1842
+ },
1843
+ "profile_id": {
1844
+ "type": "string",
1845
+ "minLength": 1
1846
+ }
1847
+ },
1848
+ "required": [
1849
+ "harness",
1850
+ "profile_id"
1851
+ ],
1852
+ "additionalProperties": false
1853
+ },
1854
+ "balances": {
1855
+ "type": "object",
1856
+ "properties": {
1857
+ "value": {
1858
+ "anyOf": [
1859
+ {
1860
+ "type": "array",
1861
+ "items": {
1862
+ "type": "object",
1863
+ "properties": {
1864
+ "id": {
1865
+ "type": "string"
1866
+ },
1867
+ "label": {
1868
+ "type": "string"
1869
+ },
1870
+ "amount": {
1871
+ "type": [
1872
+ "string",
1873
+ "null"
1874
+ ]
1875
+ },
1876
+ "unit": {
1877
+ "type": "string"
1878
+ },
1879
+ "currency": {
1880
+ "type": [
1881
+ "string",
1882
+ "null"
1883
+ ]
1884
+ },
1885
+ "decimal_places": {
1886
+ "anyOf": [
1887
+ {
1888
+ "type": "integer",
1889
+ "minimum": 0
1890
+ },
1891
+ {
1892
+ "type": "null"
1893
+ }
1894
+ ]
1895
+ },
1896
+ "has_balance": {
1897
+ "type": [
1898
+ "boolean",
1899
+ "null"
1900
+ ]
1901
+ },
1902
+ "unlimited": {
1903
+ "type": [
1904
+ "boolean",
1905
+ "null"
1906
+ ]
1907
+ }
1908
+ },
1909
+ "required": [
1910
+ "id",
1911
+ "label",
1912
+ "amount",
1913
+ "unit",
1914
+ "currency",
1915
+ "decimal_places",
1916
+ "has_balance",
1917
+ "unlimited"
1918
+ ],
1919
+ "additionalProperties": false
1920
+ }
1921
+ },
1922
+ {
1923
+ "type": "null"
1924
+ }
1925
+ ]
1926
+ },
1927
+ "source": {
1928
+ "type": [
1929
+ "string",
1930
+ "null"
1931
+ ]
1932
+ },
1933
+ "observed_at": {
1934
+ "anyOf": [
1935
+ {
1936
+ "type": "string",
1937
+ "format": "date-time"
1938
+ },
1939
+ {
1940
+ "type": "null"
1941
+ }
1942
+ ]
1943
+ },
1944
+ "freshness": {
1945
+ "type": "string",
1946
+ "enum": [
1947
+ "fresh",
1948
+ "stale",
1949
+ "unknown"
1950
+ ]
1951
+ },
1952
+ "last_attempt_at": {
1953
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/2/properties/quota/properties/resources/items/properties/balances/properties/observed_at"
1954
+ },
1955
+ "last_error": {
1956
+ "type": [
1957
+ "string",
1958
+ "null"
1959
+ ]
1960
+ }
1961
+ },
1962
+ "required": [
1963
+ "value",
1964
+ "source",
1965
+ "observed_at",
1966
+ "freshness",
1967
+ "last_attempt_at",
1968
+ "last_error"
1969
+ ],
1970
+ "additionalProperties": false
1971
+ },
1972
+ "spending": {
1973
+ "type": "object",
1974
+ "properties": {
1975
+ "value": {
1976
+ "anyOf": [
1977
+ {
1978
+ "type": "array",
1979
+ "items": {
1980
+ "type": "object",
1981
+ "properties": {
1982
+ "id": {
1983
+ "type": "string"
1984
+ },
1985
+ "label": {
1986
+ "type": "string"
1987
+ },
1988
+ "enabled": {
1989
+ "type": [
1990
+ "boolean",
1991
+ "null"
1992
+ ]
1993
+ },
1994
+ "used": {
1995
+ "type": [
1996
+ "string",
1997
+ "null"
1998
+ ]
1999
+ },
2000
+ "limit": {
2001
+ "type": [
2002
+ "string",
2003
+ "null"
2004
+ ]
2005
+ },
2006
+ "unit": {
2007
+ "type": "string"
2008
+ },
2009
+ "currency": {
2010
+ "type": [
2011
+ "string",
2012
+ "null"
2013
+ ]
2014
+ },
2015
+ "decimal_places": {
2016
+ "anyOf": [
2017
+ {
2018
+ "type": "integer",
2019
+ "minimum": 0
2020
+ },
2021
+ {
2022
+ "type": "null"
2023
+ }
2024
+ ]
2025
+ },
2026
+ "resets_at": {
2027
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/2/properties/quota/properties/resources/items/properties/balances/properties/observed_at"
2028
+ },
2029
+ "reason": {
2030
+ "type": [
2031
+ "string",
2032
+ "null"
2033
+ ]
2034
+ }
2035
+ },
2036
+ "required": [
2037
+ "id",
2038
+ "label",
2039
+ "enabled",
2040
+ "used",
2041
+ "limit",
2042
+ "unit",
2043
+ "currency",
2044
+ "decimal_places",
2045
+ "resets_at",
2046
+ "reason"
2047
+ ],
2048
+ "additionalProperties": false
2049
+ }
2050
+ },
2051
+ {
2052
+ "type": "null"
2053
+ }
2054
+ ]
2055
+ },
2056
+ "source": {
2057
+ "type": [
2058
+ "string",
2059
+ "null"
2060
+ ]
2061
+ },
2062
+ "observed_at": {
2063
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/2/properties/quota/properties/resources/items/properties/balances/properties/observed_at"
2064
+ },
2065
+ "freshness": {
2066
+ "type": "string",
2067
+ "enum": [
2068
+ "fresh",
2069
+ "stale",
2070
+ "unknown"
2071
+ ]
2072
+ },
2073
+ "last_attempt_at": {
2074
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/2/properties/quota/properties/resources/items/properties/balances/properties/observed_at"
2075
+ },
2076
+ "last_error": {
2077
+ "type": [
2078
+ "string",
2079
+ "null"
2080
+ ]
2081
+ }
2082
+ },
2083
+ "required": [
2084
+ "value",
2085
+ "source",
2086
+ "observed_at",
2087
+ "freshness",
2088
+ "last_attempt_at",
2089
+ "last_error"
2090
+ ],
2091
+ "additionalProperties": false
2092
+ },
2093
+ "resets": {
2094
+ "type": "object",
2095
+ "properties": {
2096
+ "value": {
2097
+ "anyOf": [
2098
+ {
2099
+ "type": "array",
2100
+ "items": {
2101
+ "type": "object",
2102
+ "properties": {
2103
+ "id": {
2104
+ "type": "string"
2105
+ },
2106
+ "kind": {
2107
+ "type": "string",
2108
+ "enum": [
2109
+ "granted_reset",
2110
+ "session_refill"
2111
+ ]
2112
+ },
2113
+ "label": {
2114
+ "type": "string"
2115
+ },
2116
+ "description": {
2117
+ "type": [
2118
+ "string",
2119
+ "null"
2120
+ ]
2121
+ },
2122
+ "available_count": {
2123
+ "anyOf": [
2124
+ {
2125
+ "type": "integer",
2126
+ "minimum": 0
2127
+ },
2128
+ {
2129
+ "type": "null"
2130
+ }
2131
+ ]
2132
+ },
2133
+ "eligible": {
2134
+ "type": [
2135
+ "boolean",
2136
+ "null"
2137
+ ]
2138
+ },
2139
+ "usable_now": {
2140
+ "type": [
2141
+ "boolean",
2142
+ "null"
2143
+ ]
2144
+ },
2145
+ "reason": {
2146
+ "type": [
2147
+ "string",
2148
+ "null"
2149
+ ]
2150
+ },
2151
+ "resets_at": {
2152
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/2/properties/quota/properties/resources/items/properties/balances/properties/observed_at"
2153
+ },
2154
+ "weekly_limit_applies": {
2155
+ "type": "boolean"
2156
+ },
2157
+ "grants": {
2158
+ "anyOf": [
2159
+ {
2160
+ "type": "array",
2161
+ "items": {
2162
+ "type": "object",
2163
+ "properties": {
2164
+ "id": {
2165
+ "type": "string"
2166
+ },
2167
+ "label": {
2168
+ "type": "string"
2169
+ },
2170
+ "description": {
2171
+ "type": [
2172
+ "string",
2173
+ "null"
2174
+ ]
2175
+ },
2176
+ "available_count": {
2177
+ "anyOf": [
2178
+ {
2179
+ "type": "integer",
2180
+ "minimum": 0
2181
+ },
2182
+ {
2183
+ "type": "null"
2184
+ }
2185
+ ]
2186
+ },
2187
+ "total_count": {
2188
+ "anyOf": [
2189
+ {
2190
+ "type": "integer",
2191
+ "minimum": 0
2192
+ },
2193
+ {
2194
+ "type": "null"
2195
+ }
2196
+ ]
2197
+ },
2198
+ "usable_now": {
2199
+ "type": [
2200
+ "boolean",
2201
+ "null"
2202
+ ]
2203
+ },
2204
+ "starts_at": {
2205
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/2/properties/quota/properties/resources/items/properties/balances/properties/observed_at"
2206
+ },
2207
+ "expires_at": {
2208
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/2/properties/quota/properties/resources/items/properties/balances/properties/observed_at"
2209
+ },
2210
+ "clears": {
2211
+ "type": "array",
2212
+ "items": {
2213
+ "type": "string"
2214
+ }
2215
+ }
2216
+ },
2217
+ "required": [
2218
+ "id",
2219
+ "label",
2220
+ "description",
2221
+ "available_count",
2222
+ "total_count",
2223
+ "usable_now",
2224
+ "starts_at",
2225
+ "expires_at",
2226
+ "clears"
2227
+ ],
2228
+ "additionalProperties": false
2229
+ }
2230
+ },
2231
+ {
2232
+ "type": "null"
2233
+ }
2234
+ ]
2235
+ }
2236
+ },
2237
+ "required": [
2238
+ "id",
2239
+ "kind",
2240
+ "label",
2241
+ "description",
2242
+ "available_count",
2243
+ "eligible",
2244
+ "usable_now",
2245
+ "reason",
2246
+ "resets_at",
2247
+ "weekly_limit_applies",
2248
+ "grants"
2249
+ ],
2250
+ "additionalProperties": false
2251
+ }
2252
+ },
2253
+ {
2254
+ "type": "null"
2255
+ }
2256
+ ]
2257
+ },
2258
+ "source": {
2259
+ "type": [
2260
+ "string",
2261
+ "null"
2262
+ ]
2263
+ },
2264
+ "observed_at": {
2265
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/2/properties/quota/properties/resources/items/properties/balances/properties/observed_at"
2266
+ },
2267
+ "freshness": {
2268
+ "type": "string",
2269
+ "enum": [
2270
+ "fresh",
2271
+ "stale",
2272
+ "unknown"
2273
+ ]
2274
+ },
2275
+ "last_attempt_at": {
2276
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/2/properties/quota/properties/resources/items/properties/balances/properties/observed_at"
2277
+ },
2278
+ "last_error": {
2279
+ "type": [
2280
+ "string",
2281
+ "null"
2282
+ ]
2283
+ }
2284
+ },
2285
+ "required": [
2286
+ "value",
2287
+ "source",
2288
+ "observed_at",
2289
+ "freshness",
2290
+ "last_attempt_at",
2291
+ "last_error"
2292
+ ],
2293
+ "additionalProperties": false
2294
+ },
2295
+ "diagnostics": {
2296
+ "type": "object",
2297
+ "properties": {
2298
+ "value": {
2299
+ "anyOf": [
2300
+ {
2301
+ "type": "array",
2302
+ "items": {
2303
+ "type": "object",
2304
+ "properties": {
2305
+ "code": {
2306
+ "type": "string"
2307
+ },
2308
+ "detail": {
2309
+ "type": [
2310
+ "string",
2311
+ "null"
2312
+ ]
2313
+ }
2314
+ },
2315
+ "required": [
2316
+ "code",
2317
+ "detail"
2318
+ ],
2319
+ "additionalProperties": false
2320
+ }
2321
+ },
2322
+ {
2323
+ "type": "null"
2324
+ }
2325
+ ]
2326
+ },
2327
+ "source": {
2328
+ "type": [
2329
+ "string",
2330
+ "null"
2331
+ ]
2332
+ },
2333
+ "observed_at": {
2334
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/2/properties/quota/properties/resources/items/properties/balances/properties/observed_at"
2335
+ },
2336
+ "freshness": {
2337
+ "type": "string",
2338
+ "enum": [
2339
+ "fresh",
2340
+ "stale",
2341
+ "unknown"
2342
+ ]
2343
+ },
2344
+ "last_attempt_at": {
2345
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/2/properties/quota/properties/resources/items/properties/balances/properties/observed_at"
2346
+ },
2347
+ "last_error": {
2348
+ "type": [
2349
+ "string",
2350
+ "null"
2351
+ ]
2352
+ }
2353
+ },
2354
+ "required": [
2355
+ "value",
2356
+ "source",
2357
+ "observed_at",
2358
+ "freshness",
2359
+ "last_attempt_at",
2360
+ "last_error"
2361
+ ],
2362
+ "additionalProperties": false
2363
+ }
2364
+ },
2365
+ "required": [
2366
+ "target",
2367
+ "balances",
2368
+ "spending",
2369
+ "resets",
2370
+ "diagnostics"
2371
+ ],
2372
+ "additionalProperties": false
2373
+ }
2374
+ }
2375
+ },
2376
+ "required": [
2377
+ "snapshots",
2378
+ "refreshed_at",
2379
+ "resources"
2380
+ ],
2381
+ "additionalProperties": false,
2382
+ "description": "Current quota snapshots without a fabricated aggregate."
2383
+ },
2384
+ "quotaEventCursor": {
2385
+ "$ref": "#/definitions/ControlCredentialProfilesQueryResponse/anyOf/1/properties/quotaEventCursor"
2386
+ }
2387
+ },
2388
+ "required": [
2389
+ "profiles",
2390
+ "harnesses",
2391
+ "git",
2392
+ "quota",
2393
+ "quotaEventCursor"
2394
+ ],
2395
+ "additionalProperties": false,
2396
+ "description": "Atomic Accounts snapshot: profiles, next-up authority, fresh harness readiness, Git capability, and quota from one server-authored epoch."
1797
2397
  }
1798
2398
  ],
1799
2399
  "description": "Legacy credential-profile listing or the opt-in atomic Accounts snapshot."