@deepraxis/sdk 0.1.1-dev.a60648b → 0.1.1-dev.a67dca4
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/METHODS.md +347 -191
- package/dist/core/deprecation.d.ts +11 -0
- package/dist/core/deprecation.js +20 -0
- package/dist/core/transport.d.ts +4 -0
- package/dist/core/transport.js +3 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +577 -207
- package/dist/generated/sdk.gen.js +1655 -745
- package/dist/generated/types.gen.d.ts +6125 -3360
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -0
- package/dist/operations.generated.js +9795 -7765
- package/dist/resources.generated.d.ts +352 -123
- package/dist/resources.generated.js +370 -137
- package/package.json +1 -1
package/METHODS.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# SDK methods
|
|
2
2
|
|
|
3
|
-
Generated by `bun run generate`.
|
|
3
|
+
Generated by `bun run generate`. 940 HTTP operations, plus product aliases. Version segments and path parameters are omitted from resource names. Inputs use typed `{ path, query, body, headers }` options. Collections form nested resource objects; POST actions retain their verb. Naming rules are documented in `scripts/resources.ts`; semantic exceptions and aliases with reasons are in `scripts/naming-overrides.ts`.
|
|
4
4
|
|
|
5
5
|
`always` returns an AsyncIterable; `optional` streams with `{ stream: true }`; `yes` pagination returns a Page. Only `{ data, next_cursor }` + `cursor` query contracts are automatically paginated.
|
|
6
6
|
|
|
@@ -221,6 +221,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
221
221
|
|---|---|---|---|---|
|
|
222
222
|
| list | GET | `/agent/v1/sessions/{session_id}/compactions` | no | no |
|
|
223
223
|
|
|
224
|
+
### agent.sessions.dictations
|
|
225
|
+
|
|
226
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
227
|
+
|---|---|---|---|---|
|
|
228
|
+
| create | POST | `/agent/v1/sessions/{session_id}/dictations` | no | no |
|
|
229
|
+
|
|
224
230
|
### agent.sessions.events
|
|
225
231
|
|
|
226
232
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -969,12 +975,28 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
969
975
|
| retrieve | GET | `/database/v1/databases/{database_id}` | no | no |
|
|
970
976
|
| update | PATCH | `/database/v1/databases/{database_id}` | no | no |
|
|
971
977
|
|
|
978
|
+
### database.databases.commands
|
|
979
|
+
|
|
980
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
981
|
+
|---|---|---|---|---|
|
|
982
|
+
| execute | POST | `/database/v1/databases/{database_id}/commands` | no | no |
|
|
983
|
+
|
|
972
984
|
### database.databases.events
|
|
973
985
|
|
|
974
986
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
975
987
|
|---|---|---|---|---|
|
|
976
988
|
| list | GET | `/database/v1/databases/{database_id}/events` | no | no |
|
|
977
989
|
|
|
990
|
+
### database.databases.keys
|
|
991
|
+
|
|
992
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
993
|
+
|---|---|---|---|---|
|
|
994
|
+
| delete | DELETE | `/database/v1/databases/{database_id}/keys/{key}` | no | no |
|
|
995
|
+
| list | GET | `/database/v1/databases/{database_id}/keys` | no | yes |
|
|
996
|
+
| retrieve | GET | `/database/v1/databases/{database_id}/keys/{key}` | no | no |
|
|
997
|
+
| set | PUT | `/database/v1/databases/{database_id}/keys/{key}` | no | no |
|
|
998
|
+
| update | PATCH | `/database/v1/databases/{database_id}/keys/{key}` | no | no |
|
|
999
|
+
|
|
978
1000
|
### database.databases.purge
|
|
979
1001
|
|
|
980
1002
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -1009,6 +1031,96 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1009
1031
|
| delete | DELETE | `/database/v1/databases/{database_id}/tables/{table}/fields/{field}` | no | no |
|
|
1010
1032
|
| update | PATCH | `/database/v1/databases/{database_id}/tables/{table}/fields/{field}` | no | no |
|
|
1011
1033
|
|
|
1034
|
+
### database.kv
|
|
1035
|
+
|
|
1036
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1037
|
+
|---|---|---|---|---|
|
|
1038
|
+
| create | POST | `/database/v1/kv` | no | no |
|
|
1039
|
+
| delete | DELETE | `/database/v1/kv/{database_id}` | no | no |
|
|
1040
|
+
| list | GET | `/database/v1/kv` | no | yes |
|
|
1041
|
+
| restore | POST | `/database/v1/kv/{database_id}/restore` | no | no |
|
|
1042
|
+
| retrieve | GET | `/database/v1/kv/{database_id}` | no | no |
|
|
1043
|
+
| update | PATCH | `/database/v1/kv/{database_id}` | no | no |
|
|
1044
|
+
|
|
1045
|
+
### database.kv.commands
|
|
1046
|
+
|
|
1047
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1048
|
+
|---|---|---|---|---|
|
|
1049
|
+
| execute | POST | `/database/v1/kv/{database_id}/commands` | no | no |
|
|
1050
|
+
|
|
1051
|
+
### database.kv.events
|
|
1052
|
+
|
|
1053
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1054
|
+
|---|---|---|---|---|
|
|
1055
|
+
| list | GET | `/database/v1/kv/{database_id}/events` | no | no |
|
|
1056
|
+
|
|
1057
|
+
### database.kv.keys
|
|
1058
|
+
|
|
1059
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1060
|
+
|---|---|---|---|---|
|
|
1061
|
+
| delete | DELETE | `/database/v1/kv/{database_id}/keys/{key}` | no | no |
|
|
1062
|
+
| list | GET | `/database/v1/kv/{database_id}/keys` | no | yes |
|
|
1063
|
+
| retrieve | GET | `/database/v1/kv/{database_id}/keys/{key}` | no | no |
|
|
1064
|
+
| set | PUT | `/database/v1/kv/{database_id}/keys/{key}` | no | no |
|
|
1065
|
+
| update | PATCH | `/database/v1/kv/{database_id}/keys/{key}` | no | no |
|
|
1066
|
+
|
|
1067
|
+
### database.kv.purge
|
|
1068
|
+
|
|
1069
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1070
|
+
|---|---|---|---|---|
|
|
1071
|
+
| create | POST | `/database/v1/kv/{database_id}/purge` | no | no |
|
|
1072
|
+
|
|
1073
|
+
### database.table
|
|
1074
|
+
|
|
1075
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1076
|
+
|---|---|---|---|---|
|
|
1077
|
+
| create | POST | `/database/v1/table` | no | no |
|
|
1078
|
+
| delete | DELETE | `/database/v1/table/{database_id}` | no | no |
|
|
1079
|
+
| list | GET | `/database/v1/table` | no | yes |
|
|
1080
|
+
| restore | POST | `/database/v1/table/{database_id}/restore` | no | no |
|
|
1081
|
+
| retrieve | GET | `/database/v1/table/{database_id}` | no | no |
|
|
1082
|
+
| update | PATCH | `/database/v1/table/{database_id}` | no | no |
|
|
1083
|
+
|
|
1084
|
+
### database.table.events
|
|
1085
|
+
|
|
1086
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1087
|
+
|---|---|---|---|---|
|
|
1088
|
+
| list | GET | `/database/v1/table/{database_id}/events` | no | no |
|
|
1089
|
+
|
|
1090
|
+
### database.table.purge
|
|
1091
|
+
|
|
1092
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1093
|
+
|---|---|---|---|---|
|
|
1094
|
+
| create | POST | `/database/v1/table/{database_id}/purge` | no | no |
|
|
1095
|
+
|
|
1096
|
+
### database.table.rest
|
|
1097
|
+
|
|
1098
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1099
|
+
|---|---|---|---|---|
|
|
1100
|
+
| create | POST | `/database/v1/table/{database_id}/rest/{table}` | no | no |
|
|
1101
|
+
| delete | DELETE | `/database/v1/table/{database_id}/rest/{table}` | no | no |
|
|
1102
|
+
| head | HEAD | `/database/v1/table/{database_id}/rest/{table}` | no | no |
|
|
1103
|
+
| retrieve | GET | `/database/v1/table/{database_id}/rest/{table}` | no | no |
|
|
1104
|
+
| update | PATCH | `/database/v1/table/{database_id}/rest/{table}` | no | no |
|
|
1105
|
+
|
|
1106
|
+
### database.table.tables
|
|
1107
|
+
|
|
1108
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1109
|
+
|---|---|---|---|---|
|
|
1110
|
+
| create | POST | `/database/v1/table/{database_id}/tables` | no | no |
|
|
1111
|
+
| delete | DELETE | `/database/v1/table/{database_id}/tables/{table}` | no | no |
|
|
1112
|
+
| list | GET | `/database/v1/table/{database_id}/tables` | no | no |
|
|
1113
|
+
| retrieve | GET | `/database/v1/table/{database_id}/tables/{table}` | no | no |
|
|
1114
|
+
| update | PATCH | `/database/v1/table/{database_id}/tables/{table}` | no | no |
|
|
1115
|
+
|
|
1116
|
+
### database.table.tables.fields
|
|
1117
|
+
|
|
1118
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1119
|
+
|---|---|---|---|---|
|
|
1120
|
+
| create | POST | `/database/v1/table/{database_id}/tables/{table}/fields` | no | no |
|
|
1121
|
+
| delete | DELETE | `/database/v1/table/{database_id}/tables/{table}/fields/{field}` | no | no |
|
|
1122
|
+
| update | PATCH | `/database/v1/table/{database_id}/tables/{table}/fields/{field}` | no | no |
|
|
1123
|
+
|
|
1012
1124
|
## devops
|
|
1013
1125
|
|
|
1014
1126
|
### devops.changes
|
|
@@ -1847,38 +1959,6 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1847
1959
|
|
|
1848
1960
|
## organization
|
|
1849
1961
|
|
|
1850
|
-
### organization.actors
|
|
1851
|
-
|
|
1852
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
1853
|
-
|---|---|---|---|---|
|
|
1854
|
-
| list | GET | `/organization/v1/actors` | no | no |
|
|
1855
|
-
| retrieve | GET | `/organization/v1/actors/{actor}` | no | no |
|
|
1856
|
-
|
|
1857
|
-
### organization.assignments
|
|
1858
|
-
|
|
1859
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
1860
|
-
|---|---|---|---|---|
|
|
1861
|
-
| list | GET | `/organization/v1/assignments` | no | no |
|
|
1862
|
-
| retrieve | GET | `/organization/v1/assignments/{id}` | no | no |
|
|
1863
|
-
|
|
1864
|
-
### organization.assignments.makePrimary
|
|
1865
|
-
|
|
1866
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
1867
|
-
|---|---|---|---|---|
|
|
1868
|
-
| create | POST | `/organization/v1/assignments/{id}/make_primary` | no | no |
|
|
1869
|
-
|
|
1870
|
-
### organization.assignments.terminate
|
|
1871
|
-
|
|
1872
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
1873
|
-
|---|---|---|---|---|
|
|
1874
|
-
| create | POST | `/organization/v1/assignments/{id}/terminate` | no | no |
|
|
1875
|
-
|
|
1876
|
-
### organization.assignments.transfer
|
|
1877
|
-
|
|
1878
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
1879
|
-
|---|---|---|---|---|
|
|
1880
|
-
| create | POST | `/organization/v1/assignments/{id}/transfer` | no | no |
|
|
1881
|
-
|
|
1882
1962
|
### organization.charges
|
|
1883
1963
|
|
|
1884
1964
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -1891,28 +1971,6 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1891
1971
|
|---|---|---|---|---|
|
|
1892
1972
|
| list | GET | `/organization/v1/costs` | no | no |
|
|
1893
1973
|
|
|
1894
|
-
### organization.departments
|
|
1895
|
-
|
|
1896
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
1897
|
-
|---|---|---|---|---|
|
|
1898
|
-
| create | POST | `/organization/v1/departments` | no | no |
|
|
1899
|
-
| list | GET | `/organization/v1/departments` | no | no |
|
|
1900
|
-
| retrieve | GET | `/organization/v1/departments/{id}` | no | no |
|
|
1901
|
-
| update | PATCH | `/organization/v1/departments/{id}` | no | no |
|
|
1902
|
-
| updateCharter | PUT | `/organization/v1/departments/{id}/charter` | no | no |
|
|
1903
|
-
|
|
1904
|
-
### organization.departments.dissolve
|
|
1905
|
-
|
|
1906
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
1907
|
-
|---|---|---|---|---|
|
|
1908
|
-
| create | POST | `/organization/v1/departments/{id}/dissolve` | no | no |
|
|
1909
|
-
|
|
1910
|
-
### organization.effectiveSpec
|
|
1911
|
-
|
|
1912
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
1913
|
-
|---|---|---|---|---|
|
|
1914
|
-
| retrieve | GET | `/organization/v1/effective_spec` | no | no |
|
|
1915
|
-
|
|
1916
1974
|
### organization.events
|
|
1917
1975
|
|
|
1918
1976
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -1941,167 +1999,46 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1941
1999
|
| create | POST | `/organization/v1/feedback/{id}/messages` | no | no |
|
|
1942
2000
|
| list | GET | `/organization/v1/feedback/{id}/messages` | no | no |
|
|
1943
2001
|
|
|
1944
|
-
### organization.jobs
|
|
1945
|
-
|
|
1946
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
1947
|
-
|---|---|---|---|---|
|
|
1948
|
-
| create | POST | `/organization/v1/jobs` | no | no |
|
|
1949
|
-
| list | GET | `/organization/v1/jobs` | no | no |
|
|
1950
|
-
| retrieve | GET | `/organization/v1/jobs/{id}` | no | no |
|
|
1951
|
-
| update | PATCH | `/organization/v1/jobs/{id}` | no | no |
|
|
1952
|
-
|
|
1953
|
-
### organization.jobs.retire
|
|
1954
|
-
|
|
1955
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
1956
|
-
|---|---|---|---|---|
|
|
1957
|
-
| create | POST | `/organization/v1/jobs/{id}/retire` | no | no |
|
|
1958
|
-
|
|
1959
|
-
### organization.keyResults
|
|
1960
|
-
|
|
1961
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
1962
|
-
|---|---|---|---|---|
|
|
1963
|
-
| create | POST | `/organization/v1/key_results` | no | no |
|
|
1964
|
-
| list | GET | `/organization/v1/key_results` | no | no |
|
|
1965
|
-
| retrieve | GET | `/organization/v1/key_results/{id}` | no | no |
|
|
1966
|
-
| update | PATCH | `/organization/v1/key_results/{id}` | no | no |
|
|
1967
|
-
|
|
1968
|
-
### organization.ladders
|
|
1969
|
-
|
|
1970
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
1971
|
-
|---|---|---|---|---|
|
|
1972
|
-
| create | POST | `/organization/v1/ladders` | no | no |
|
|
1973
|
-
| list | GET | `/organization/v1/ladders` | no | no |
|
|
1974
|
-
| retrieve | GET | `/organization/v1/ladders/{id}` | no | no |
|
|
1975
|
-
| update | PUT | `/organization/v1/ladders/{id}` | no | no |
|
|
1976
|
-
|
|
1977
2002
|
### organization.members
|
|
1978
2003
|
|
|
1979
2004
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
1980
2005
|
|---|---|---|---|---|
|
|
1981
2006
|
| list | GET | `/organization/v1/members` | no | no |
|
|
1982
2007
|
|
|
1983
|
-
### organization.
|
|
2008
|
+
### organization.notifications
|
|
1984
2009
|
|
|
1985
2010
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
1986
2011
|
|---|---|---|---|---|
|
|
1987
|
-
|
|
|
1988
|
-
|
|
|
1989
|
-
| retrieve | GET | `/organization/v1/objectives/{id}` | no | no |
|
|
1990
|
-
| update | PATCH | `/organization/v1/objectives/{id}` | no | no |
|
|
2012
|
+
| retrieveInbox | GET | `/organization/v1/notifications/inbox` | no | no |
|
|
2013
|
+
| retrieveOrganizationDefault | GET | `/organization/v1/notifications/organization_default` | no | no |
|
|
1991
2014
|
|
|
1992
|
-
### organization.
|
|
2015
|
+
### organization.notifications.deliveries
|
|
1993
2016
|
|
|
1994
2017
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
1995
2018
|
|---|---|---|---|---|
|
|
1996
|
-
|
|
|
2019
|
+
| list | GET | `/organization/v1/notifications/deliveries` | no | no |
|
|
1997
2020
|
|
|
1998
|
-
### organization.
|
|
2021
|
+
### organization.notifications.letters
|
|
1999
2022
|
|
|
2000
2023
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
2001
2024
|
|---|---|---|---|---|
|
|
2002
|
-
|
|
|
2025
|
+
| archive | POST | `/organization/v1/notifications/letters/{id}:archive` | no | no |
|
|
2026
|
+
| list | GET | `/organization/v1/notifications/letters` | no | no |
|
|
2027
|
+
| read | POST | `/organization/v1/notifications/letters/{id}:read` | no | no |
|
|
2028
|
+
| readAll | POST | `/organization/v1/notifications/letters:readAll` | no | no |
|
|
2003
2029
|
|
|
2004
|
-
### organization.
|
|
2030
|
+
### organization.notifications.organizationDefault
|
|
2005
2031
|
|
|
2006
2032
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
2007
2033
|
|---|---|---|---|---|
|
|
2008
|
-
| create | POST | `/organization/v1/
|
|
2009
|
-
| list | GET | `/organization/v1/periods` | no | no |
|
|
2010
|
-
| retrieve | GET | `/organization/v1/periods/{id}` | no | no |
|
|
2034
|
+
| create | POST | `/organization/v1/notifications/organization_default` | no | no |
|
|
2011
2035
|
|
|
2012
|
-
### organization.
|
|
2036
|
+
### organization.notifications.preferences
|
|
2013
2037
|
|
|
2014
2038
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
2015
2039
|
|---|---|---|---|---|
|
|
2016
|
-
| create | POST | `/organization/v1/
|
|
2017
|
-
|
|
2018
|
-
### organization.positions
|
|
2019
|
-
|
|
2020
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
2021
|
-
|---|---|---|---|---|
|
|
2022
|
-
| create | POST | `/organization/v1/positions` | no | no |
|
|
2023
|
-
| list | GET | `/organization/v1/positions` | no | no |
|
|
2024
|
-
| retrieve | GET | `/organization/v1/positions/{id}` | no | no |
|
|
2025
|
-
| update | PATCH | `/organization/v1/positions/{id}` | no | no |
|
|
2026
|
-
| updateLevel | PUT | `/organization/v1/positions/{id}/level` | no | no |
|
|
2027
|
-
| updateManager | PUT | `/organization/v1/positions/{id}/manager` | no | no |
|
|
2028
|
-
|
|
2029
|
-
### organization.positions.close
|
|
2030
|
-
|
|
2031
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
2032
|
-
|---|---|---|---|---|
|
|
2033
|
-
| create | POST | `/organization/v1/positions/{id}/close` | no | no |
|
|
2034
|
-
|
|
2035
|
-
### organization.positions.designateHead
|
|
2036
|
-
|
|
2037
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
2038
|
-
|---|---|---|---|---|
|
|
2039
|
-
| create | POST | `/organization/v1/positions/{id}/designate_head` | no | no |
|
|
2040
|
-
|
|
2041
|
-
### organization.positions.freeze
|
|
2042
|
-
|
|
2043
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
2044
|
-
|---|---|---|---|---|
|
|
2045
|
-
| create | POST | `/organization/v1/positions/{id}/freeze` | no | no |
|
|
2046
|
-
|
|
2047
|
-
### organization.positions.hire
|
|
2048
|
-
|
|
2049
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
2050
|
-
|---|---|---|---|---|
|
|
2051
|
-
| create | POST | `/organization/v1/positions/{id}/hire` | no | no |
|
|
2052
|
-
|
|
2053
|
-
### organization.positions.replaceHolder
|
|
2054
|
-
|
|
2055
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
2056
|
-
|---|---|---|---|---|
|
|
2057
|
-
| create | POST | `/organization/v1/positions/{id}/replace_holder` | no | no |
|
|
2058
|
-
|
|
2059
|
-
### organization.positions.unfreeze
|
|
2060
|
-
|
|
2061
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
2062
|
-
|---|---|---|---|---|
|
|
2063
|
-
| create | POST | `/organization/v1/positions/{id}/unfreeze` | no | no |
|
|
2064
|
-
|
|
2065
|
-
### organization.reconcile
|
|
2066
|
-
|
|
2067
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
2068
|
-
|---|---|---|---|---|
|
|
2069
|
-
| pause | POST | `/organization/v1/reconcile/pause` | no | no |
|
|
2070
|
-
| resume | POST | `/organization/v1/reconcile/resume` | no | no |
|
|
2071
|
-
| retrievePlan | GET | `/organization/v1/reconcile/plan` | no | no |
|
|
2072
|
-
|
|
2073
|
-
### organization.reconcile.run
|
|
2074
|
-
|
|
2075
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
2076
|
-
|---|---|---|---|---|
|
|
2077
|
-
| create | POST | `/organization/v1/reconcile/run` | no | no |
|
|
2078
|
-
|
|
2079
|
-
### organization.reconcile.status
|
|
2080
|
-
|
|
2081
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
2082
|
-
|---|---|---|---|---|
|
|
2083
|
-
| list | GET | `/organization/v1/reconcile/status` | no | no |
|
|
2084
|
-
|
|
2085
|
-
### organization.specSchema
|
|
2086
|
-
|
|
2087
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
2088
|
-
|---|---|---|---|---|
|
|
2089
|
-
| retrieve | GET | `/organization/v1/spec_schema` | no | no |
|
|
2090
|
-
|
|
2091
|
-
### organization.specs
|
|
2092
|
-
|
|
2093
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
2094
|
-
|---|---|---|---|---|
|
|
2095
|
-
| list | GET | `/organization/v1/specs` | no | no |
|
|
2096
|
-
| retrieve | GET | `/organization/v1/specs/{kind}/{id}` | no | no |
|
|
2097
|
-
| retrieveDiff | GET | `/organization/v1/specs/{kind}/{id}/diff` | no | no |
|
|
2098
|
-
| update | PUT | `/organization/v1/specs/{kind}/{id}` | no | no |
|
|
2099
|
-
|
|
2100
|
-
### organization.specs.revisions
|
|
2101
|
-
|
|
2102
|
-
| Method | HTTP | Path | Streaming | Pagination |
|
|
2103
|
-
|---|---|---|---|---|
|
|
2104
|
-
| list | GET | `/organization/v1/specs/{kind}/{id}/revisions` | no | no |
|
|
2040
|
+
| create | POST | `/organization/v1/notifications/preferences` | no | no |
|
|
2041
|
+
| list | GET | `/organization/v1/notifications/preferences` | no | no |
|
|
2105
2042
|
|
|
2106
2043
|
### organization.usage
|
|
2107
2044
|
|
|
@@ -2786,6 +2723,218 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
2786
2723
|
|---|---|---|---|---|
|
|
2787
2724
|
| create | POST | `/vault/v1/vaults/{vault_id}/secrets/{secret}/validate` | no | no |
|
|
2788
2725
|
|
|
2726
|
+
## workforce
|
|
2727
|
+
|
|
2728
|
+
### workforce.actors
|
|
2729
|
+
|
|
2730
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2731
|
+
|---|---|---|---|---|
|
|
2732
|
+
| list | GET | `/workforce/v1/actors` | no | no |
|
|
2733
|
+
| retrieve | GET | `/workforce/v1/actors/{actor}` | no | no |
|
|
2734
|
+
|
|
2735
|
+
### workforce.assignments
|
|
2736
|
+
|
|
2737
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2738
|
+
|---|---|---|---|---|
|
|
2739
|
+
| list | GET | `/workforce/v1/assignments` | no | no |
|
|
2740
|
+
| retrieve | GET | `/workforce/v1/assignments/{id}` | no | no |
|
|
2741
|
+
|
|
2742
|
+
### workforce.assignments.makePrimary
|
|
2743
|
+
|
|
2744
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2745
|
+
|---|---|---|---|---|
|
|
2746
|
+
| create | POST | `/workforce/v1/assignments/{id}/make_primary` | no | no |
|
|
2747
|
+
|
|
2748
|
+
### workforce.assignments.terminate
|
|
2749
|
+
|
|
2750
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2751
|
+
|---|---|---|---|---|
|
|
2752
|
+
| create | POST | `/workforce/v1/assignments/{id}/terminate` | no | no |
|
|
2753
|
+
|
|
2754
|
+
### workforce.assignments.transfer
|
|
2755
|
+
|
|
2756
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2757
|
+
|---|---|---|---|---|
|
|
2758
|
+
| create | POST | `/workforce/v1/assignments/{id}/transfer` | no | no |
|
|
2759
|
+
|
|
2760
|
+
### workforce.departments
|
|
2761
|
+
|
|
2762
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2763
|
+
|---|---|---|---|---|
|
|
2764
|
+
| create | POST | `/workforce/v1/departments` | no | no |
|
|
2765
|
+
| list | GET | `/workforce/v1/departments` | no | no |
|
|
2766
|
+
| retrieve | GET | `/workforce/v1/departments/{id}` | no | no |
|
|
2767
|
+
| update | PATCH | `/workforce/v1/departments/{id}` | no | no |
|
|
2768
|
+
| updateCharter | PUT | `/workforce/v1/departments/{id}/charter` | no | no |
|
|
2769
|
+
|
|
2770
|
+
### workforce.departments.dissolve
|
|
2771
|
+
|
|
2772
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2773
|
+
|---|---|---|---|---|
|
|
2774
|
+
| create | POST | `/workforce/v1/departments/{id}/dissolve` | no | no |
|
|
2775
|
+
|
|
2776
|
+
### workforce.effectiveSpec
|
|
2777
|
+
|
|
2778
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2779
|
+
|---|---|---|---|---|
|
|
2780
|
+
| retrieve | GET | `/workforce/v1/effective_spec` | no | no |
|
|
2781
|
+
|
|
2782
|
+
### workforce.jobs
|
|
2783
|
+
|
|
2784
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2785
|
+
|---|---|---|---|---|
|
|
2786
|
+
| create | POST | `/workforce/v1/jobs` | no | no |
|
|
2787
|
+
| list | GET | `/workforce/v1/jobs` | no | no |
|
|
2788
|
+
| retrieve | GET | `/workforce/v1/jobs/{id}` | no | no |
|
|
2789
|
+
| update | PATCH | `/workforce/v1/jobs/{id}` | no | no |
|
|
2790
|
+
|
|
2791
|
+
### workforce.jobs.retire
|
|
2792
|
+
|
|
2793
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2794
|
+
|---|---|---|---|---|
|
|
2795
|
+
| create | POST | `/workforce/v1/jobs/{id}/retire` | no | no |
|
|
2796
|
+
|
|
2797
|
+
### workforce.keyResults
|
|
2798
|
+
|
|
2799
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2800
|
+
|---|---|---|---|---|
|
|
2801
|
+
| create | POST | `/workforce/v1/key_results` | no | no |
|
|
2802
|
+
| list | GET | `/workforce/v1/key_results` | no | no |
|
|
2803
|
+
| retrieve | GET | `/workforce/v1/key_results/{id}` | no | no |
|
|
2804
|
+
| update | PATCH | `/workforce/v1/key_results/{id}` | no | no |
|
|
2805
|
+
|
|
2806
|
+
### workforce.ladders
|
|
2807
|
+
|
|
2808
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2809
|
+
|---|---|---|---|---|
|
|
2810
|
+
| create | POST | `/workforce/v1/ladders` | no | no |
|
|
2811
|
+
| list | GET | `/workforce/v1/ladders` | no | no |
|
|
2812
|
+
| retrieve | GET | `/workforce/v1/ladders/{id}` | no | no |
|
|
2813
|
+
| update | PUT | `/workforce/v1/ladders/{id}` | no | no |
|
|
2814
|
+
|
|
2815
|
+
### workforce.objectives
|
|
2816
|
+
|
|
2817
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2818
|
+
|---|---|---|---|---|
|
|
2819
|
+
| create | POST | `/workforce/v1/objectives` | no | no |
|
|
2820
|
+
| list | GET | `/workforce/v1/objectives` | no | no |
|
|
2821
|
+
| retrieve | GET | `/workforce/v1/objectives/{id}` | no | no |
|
|
2822
|
+
| update | PATCH | `/workforce/v1/objectives/{id}` | no | no |
|
|
2823
|
+
|
|
2824
|
+
### workforce.objectives.grade
|
|
2825
|
+
|
|
2826
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2827
|
+
|---|---|---|---|---|
|
|
2828
|
+
| create | POST | `/workforce/v1/objectives/{id}/grade` | no | no |
|
|
2829
|
+
|
|
2830
|
+
### workforce.objectives.parents
|
|
2831
|
+
|
|
2832
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2833
|
+
|---|---|---|---|---|
|
|
2834
|
+
| update | PUT | `/workforce/v1/objectives/{id}/parents` | no | no |
|
|
2835
|
+
|
|
2836
|
+
### workforce.periods
|
|
2837
|
+
|
|
2838
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2839
|
+
|---|---|---|---|---|
|
|
2840
|
+
| create | POST | `/workforce/v1/periods` | no | no |
|
|
2841
|
+
| list | GET | `/workforce/v1/periods` | no | no |
|
|
2842
|
+
| retrieve | GET | `/workforce/v1/periods/{id}` | no | no |
|
|
2843
|
+
|
|
2844
|
+
### workforce.periods.close
|
|
2845
|
+
|
|
2846
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2847
|
+
|---|---|---|---|---|
|
|
2848
|
+
| create | POST | `/workforce/v1/periods/{id}/close` | no | no |
|
|
2849
|
+
|
|
2850
|
+
### workforce.positions
|
|
2851
|
+
|
|
2852
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2853
|
+
|---|---|---|---|---|
|
|
2854
|
+
| create | POST | `/workforce/v1/positions` | no | no |
|
|
2855
|
+
| list | GET | `/workforce/v1/positions` | no | no |
|
|
2856
|
+
| retrieve | GET | `/workforce/v1/positions/{id}` | no | no |
|
|
2857
|
+
| update | PATCH | `/workforce/v1/positions/{id}` | no | no |
|
|
2858
|
+
| updateLevel | PUT | `/workforce/v1/positions/{id}/level` | no | no |
|
|
2859
|
+
| updateManager | PUT | `/workforce/v1/positions/{id}/manager` | no | no |
|
|
2860
|
+
|
|
2861
|
+
### workforce.positions.close
|
|
2862
|
+
|
|
2863
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2864
|
+
|---|---|---|---|---|
|
|
2865
|
+
| create | POST | `/workforce/v1/positions/{id}/close` | no | no |
|
|
2866
|
+
|
|
2867
|
+
### workforce.positions.designateHead
|
|
2868
|
+
|
|
2869
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2870
|
+
|---|---|---|---|---|
|
|
2871
|
+
| create | POST | `/workforce/v1/positions/{id}/designate_head` | no | no |
|
|
2872
|
+
|
|
2873
|
+
### workforce.positions.freeze
|
|
2874
|
+
|
|
2875
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2876
|
+
|---|---|---|---|---|
|
|
2877
|
+
| create | POST | `/workforce/v1/positions/{id}/freeze` | no | no |
|
|
2878
|
+
|
|
2879
|
+
### workforce.positions.hire
|
|
2880
|
+
|
|
2881
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2882
|
+
|---|---|---|---|---|
|
|
2883
|
+
| create | POST | `/workforce/v1/positions/{id}/hire` | no | no |
|
|
2884
|
+
|
|
2885
|
+
### workforce.positions.replaceHolder
|
|
2886
|
+
|
|
2887
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2888
|
+
|---|---|---|---|---|
|
|
2889
|
+
| create | POST | `/workforce/v1/positions/{id}/replace_holder` | no | no |
|
|
2890
|
+
|
|
2891
|
+
### workforce.positions.unfreeze
|
|
2892
|
+
|
|
2893
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2894
|
+
|---|---|---|---|---|
|
|
2895
|
+
| create | POST | `/workforce/v1/positions/{id}/unfreeze` | no | no |
|
|
2896
|
+
|
|
2897
|
+
### workforce.reconcile
|
|
2898
|
+
|
|
2899
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2900
|
+
|---|---|---|---|---|
|
|
2901
|
+
| pause | POST | `/workforce/v1/reconcile/pause` | no | no |
|
|
2902
|
+
| resume | POST | `/workforce/v1/reconcile/resume` | no | no |
|
|
2903
|
+
| retrievePlan | GET | `/workforce/v1/reconcile/plan` | no | no |
|
|
2904
|
+
|
|
2905
|
+
### workforce.reconcile.run
|
|
2906
|
+
|
|
2907
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2908
|
+
|---|---|---|---|---|
|
|
2909
|
+
| create | POST | `/workforce/v1/reconcile/run` | no | no |
|
|
2910
|
+
|
|
2911
|
+
### workforce.reconcile.status
|
|
2912
|
+
|
|
2913
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2914
|
+
|---|---|---|---|---|
|
|
2915
|
+
| list | GET | `/workforce/v1/reconcile/status` | no | no |
|
|
2916
|
+
|
|
2917
|
+
### workforce.specSchema
|
|
2918
|
+
|
|
2919
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2920
|
+
|---|---|---|---|---|
|
|
2921
|
+
| retrieve | GET | `/workforce/v1/spec_schema` | no | no |
|
|
2922
|
+
|
|
2923
|
+
### workforce.specs
|
|
2924
|
+
|
|
2925
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2926
|
+
|---|---|---|---|---|
|
|
2927
|
+
| list | GET | `/workforce/v1/specs` | no | no |
|
|
2928
|
+
| retrieve | GET | `/workforce/v1/specs/{kind}/{id}` | no | no |
|
|
2929
|
+
| retrieveDiff | GET | `/workforce/v1/specs/{kind}/{id}/diff` | no | no |
|
|
2930
|
+
| update | PUT | `/workforce/v1/specs/{kind}/{id}` | no | no |
|
|
2931
|
+
|
|
2932
|
+
### workforce.specs.revisions
|
|
2933
|
+
|
|
2934
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2935
|
+
|---|---|---|---|---|
|
|
2936
|
+
| list | GET | `/workforce/v1/specs/{kind}/{id}/revisions` | no | no |
|
|
2937
|
+
|
|
2789
2938
|
## Semantic exceptions and aliases
|
|
2790
2939
|
|
|
2791
2940
|
| Operation | Reason |
|
|
@@ -2831,7 +2980,14 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
2831
2980
|
| customer.customers.revokeTokens | Revoking every token of one customer is an act on the customer (services/customer's customer.customers.revokeTokens); the path alone would derive customer.customers.revoke_tokens.create. |
|
|
2832
2981
|
| customer.customers.unblock | unblock lifts the same block fact on the customer (services/customer's customer.customers.unblock); the path alone would derive customer.customers.unblock.create. |
|
|
2833
2982
|
| customer.usage.retrieve | One customer's usage is the usage read (services/customer's customer.usage.get); usage is a projection of the customer read into billing, not a sub-resource of the customer. |
|
|
2983
|
+
| database.databases.commands.execute | POST runs one Redis command and creates nothing; execute names the action, where the collection rule would derive commands.create. |
|
|
2984
|
+
| database.databases.keys.update | PATCH changes one field (ttl_ms) of an existing key; update matches tables.update and fields.update in the same domain, and the path-derived name collides with PUT. |
|
|
2985
|
+
| database.databases.keys.set | PUT writes a whole key value (Redis SET semantics); use the assignment vocabulary set, as dist-tags and vaults do, so update stays the PATCH that changes the TTL. |
|
|
2834
2986
|
| database.databases.rest.create | The final parameter identifies a table collection; POST inserts rows rather than updating the table. |
|
|
2987
|
+
| database.kv.commands.execute | POST runs one Redis command and creates nothing; execute names the action, where the collection rule would derive commands.create. |
|
|
2988
|
+
| database.kv.keys.update | PATCH changes one field (ttl_ms) of an existing key; update matches tables.update and fields.update in the same domain, and the path-derived name collides with PUT. |
|
|
2989
|
+
| database.kv.keys.set | PUT writes a whole key value (Redis SET semantics); use the assignment vocabulary set, as dist-tags and vaults do, so update stays the PATCH that changes the TTL. |
|
|
2990
|
+
| database.table.rest.create | The final parameter identifies a table collection; POST inserts rows rather than updating the table. |
|
|
2835
2991
|
| devops.projects.flags.reportCodeRefs | ADR-125 §4 / #1881: a checkout reports where code names each flag key, so the write is an operation on the project's flags (devops.flags.reportCodeRefs) and returns counts, not a code-refs resource; the path alone would derive a nested codeRefs collection create. |
|
|
2836
2992
|
| file.uploads.createSigned | Signed upload creation returns a one-time local PUT URL; ADR-039 names this operation uploads.createSigned. |
|
|
2837
2993
|
| media.libraries.retrieveDefault | ADR-094 §9 names the default-library read libraries.retrieveDefault; the URL names a reference rather than an id, so the path-derived name would otherwise read as retrieving a library called default. |
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Deprecated SDK methods warn once per process per method (ticket-4078). The table is generated from the
|
|
2
|
+
* OpenAPI `deprecated: true` operations; this is the single call path every deprecated binding goes through. */
|
|
3
|
+
export interface DeprecationNotice {
|
|
4
|
+
readonly replacement: string;
|
|
5
|
+
readonly sunset: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function deprecationMessage(method: string, notice: DeprecationNotice): string;
|
|
8
|
+
/** Test seam: forget which methods already warned. */
|
|
9
|
+
export declare function resetDeprecationWarnings(): void;
|
|
10
|
+
export declare function envSilencesDeprecations(): boolean;
|
|
11
|
+
export declare function deprecate<F extends (...args: any[]) => any>(silenced: () => boolean, method: string, notice: DeprecationNotice, fn: F): F;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const warned = new Set();
|
|
2
|
+
export function deprecationMessage(method, notice) {
|
|
3
|
+
return `${method} is deprecated and stops working on ${notice.sunset}; use ${notice.replacement} instead.`;
|
|
4
|
+
}
|
|
5
|
+
/** Test seam: forget which methods already warned. */
|
|
6
|
+
export function resetDeprecationWarnings() { warned.clear(); }
|
|
7
|
+
export function envSilencesDeprecations() {
|
|
8
|
+
const env = globalThis.process?.env;
|
|
9
|
+
const value = env?.PRAXIS_SDK_SILENCE_DEPRECATIONS;
|
|
10
|
+
return value !== undefined && value !== '' && value !== '0' && value !== 'false';
|
|
11
|
+
}
|
|
12
|
+
export function deprecate(silenced, method, notice, fn) {
|
|
13
|
+
return ((...args) => {
|
|
14
|
+
if (!warned.has(method) && !silenced()) {
|
|
15
|
+
warned.add(method);
|
|
16
|
+
console.warn(deprecationMessage(method, notice));
|
|
17
|
+
}
|
|
18
|
+
return fn(...args);
|
|
19
|
+
});
|
|
20
|
+
}
|
package/dist/core/transport.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export interface PraxisOptions {
|
|
|
6
6
|
timeoutMs?: number;
|
|
7
7
|
maxRetries?: number;
|
|
8
8
|
fetch?: typeof globalThis.fetch;
|
|
9
|
+
/** Silence the once-per-method warning a deprecated method prints. PRAXIS_SDK_SILENCE_DEPRECATIONS=1 does the same. */
|
|
10
|
+
silenceDeprecations?: boolean;
|
|
9
11
|
}
|
|
10
12
|
export interface RequestOptions {
|
|
11
13
|
headers?: Record<string, string>;
|
|
@@ -37,6 +39,8 @@ export declare function serverDeadlineMs(options: {
|
|
|
37
39
|
export declare class Transport {
|
|
38
40
|
private readonly config;
|
|
39
41
|
constructor(options: PraxisOptions);
|
|
42
|
+
/** Whether deprecated-method warnings are off (client option or PRAXIS_SDK_SILENCE_DEPRECATIONS). */
|
|
43
|
+
readonly silenced: () => boolean;
|
|
40
44
|
private validate;
|
|
41
45
|
private scope;
|
|
42
46
|
request<R>(operation: Operation, options?: InternalOptions): Promise<R>;
|