waldur-js-client 8.0.9-dev.43 → 8.0.9-dev.45

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/sdk.gen.js CHANGED
@@ -1,5 +1,11 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
  import { client } from './client.gen';
3
+ /**
4
+ * Matrix Application Service transaction webhook
5
+ *
6
+ * Receives event transactions from the Matrix homeserver. Authenticated via hs_token in the Authorization header.
7
+ */
8
+ export const matrixAppV1TransactionsUpdate = (options) => (options.client ?? client).put({ url: '/_matrix/app/v1/transactions/{txn_id}', ...options });
3
9
  export const apiAuthEduteamsCompleteRetrieve = (options) => (options?.client ?? client).get({ url: '/api-auth/eduteams/complete/', ...options });
4
10
  /**
5
11
  * Redirect user to OIDC authorization endpoint
@@ -1078,6 +1084,66 @@ export const adminArrowVendorOfferingMappingsVendorChoicesCount = (options) => (
1078
1084
  url: '/api/admin/arrow/vendor-offering-mappings/vendor_choices/',
1079
1085
  ...options
1080
1086
  });
1087
+ /**
1088
+ * Setup Matrix appservice registration
1089
+ *
1090
+ * Generates fresh appservice tokens (rotating any existing ones), enables the appservice, and returns registration YAML.
1091
+ */
1092
+ export const adminMatrixAppserviceSetup = (options) => (options?.client ?? client).post({
1093
+ security: [
1094
+ { name: 'Authorization', type: 'apiKey' },
1095
+ { scheme: 'bearer', type: 'http' },
1096
+ { scheme: 'bearer', type: 'http' }
1097
+ ],
1098
+ url: '/api/admin/matrix-appservice/setup/',
1099
+ ...options,
1100
+ headers: {
1101
+ 'Content-Type': 'application/json',
1102
+ ...options?.headers
1103
+ }
1104
+ });
1105
+ /**
1106
+ * Get Matrix appservice status
1107
+ *
1108
+ * Returns the current appservice configuration state.
1109
+ */
1110
+ export const adminMatrixAppserviceStatusRetrieve = (options) => (options?.client ?? client).get({
1111
+ security: [
1112
+ { name: 'Authorization', type: 'apiKey' },
1113
+ { scheme: 'bearer', type: 'http' },
1114
+ { scheme: 'bearer', type: 'http' }
1115
+ ],
1116
+ url: '/api/admin/matrix-appservice/status/',
1117
+ ...options
1118
+ });
1119
+ /**
1120
+ * Run Matrix connectivity diagnostics
1121
+ *
1122
+ * Performs live connectivity checks against the configured Matrix homeserver and returns results for each check.
1123
+ */
1124
+ export const adminMatrixDiagnosticsRetrieve = (options) => (options?.client ?? client).get({
1125
+ security: [
1126
+ { name: 'Authorization', type: 'apiKey' },
1127
+ { scheme: 'bearer', type: 'http' },
1128
+ { scheme: 'bearer', type: 'http' }
1129
+ ],
1130
+ url: '/api/admin/matrix/diagnostics/',
1131
+ ...options
1132
+ });
1133
+ /**
1134
+ * Reprovision all active Matrix rooms on a new homeserver
1135
+ *
1136
+ * Resets all active rooms to 'creating' state and re-queues them for provisioning. Also resets all user profiles. Staff only.
1137
+ */
1138
+ export const adminMatrixReprovision = (options) => (options?.client ?? client).post({
1139
+ security: [
1140
+ { name: 'Authorization', type: 'apiKey' },
1141
+ { scheme: 'bearer', type: 'http' },
1142
+ { scheme: 'bearer', type: 'http' }
1143
+ ],
1144
+ url: '/api/admin/matrix/reprovision/',
1145
+ ...options
1146
+ });
1081
1147
  export const affiliatedOrganizationsList = (options) => (options?.client ?? client).get({
1082
1148
  security: [
1083
1149
  { name: 'Authorization', type: 'apiKey' },
@@ -18877,6 +18943,249 @@ export const marketplaceUserOfferingConsentsRevoke = (options) => (options.clien
18877
18943
  url: '/api/marketplace-user-offering-consents/{uuid}/revoke/',
18878
18944
  ...options
18879
18945
  });
18946
+ /**
18947
+ * Get Matrix login credentials
18948
+ *
18949
+ * Returns Matrix login credentials for the authenticated user based on the configured login method.
18950
+ */
18951
+ export const matrixCredentialsRetrieve = (options) => (options?.client ?? client).get({
18952
+ security: [
18953
+ { name: 'Authorization', type: 'apiKey' },
18954
+ { scheme: 'bearer', type: 'http' },
18955
+ { scheme: 'bearer', type: 'http' }
18956
+ ],
18957
+ url: '/api/matrix/credentials/',
18958
+ ...options
18959
+ });
18960
+ export const matrixExportsList = (options) => (options?.client ?? client).get({
18961
+ security: [
18962
+ { name: 'Authorization', type: 'apiKey' },
18963
+ { scheme: 'bearer', type: 'http' },
18964
+ { scheme: 'bearer', type: 'http' }
18965
+ ],
18966
+ url: '/api/matrix/exports/',
18967
+ ...options
18968
+ });
18969
+ /**
18970
+ * Get number of items in the collection matching the request parameters.
18971
+ */
18972
+ export const matrixExportsCount = (options) => (options?.client ?? client).head({
18973
+ security: [
18974
+ { name: 'Authorization', type: 'apiKey' },
18975
+ { scheme: 'bearer', type: 'http' },
18976
+ { scheme: 'bearer', type: 'http' }
18977
+ ],
18978
+ url: '/api/matrix/exports/',
18979
+ ...options
18980
+ });
18981
+ export const matrixExportsRetrieve = (options) => (options.client ?? client).get({
18982
+ security: [
18983
+ { name: 'Authorization', type: 'apiKey' },
18984
+ { scheme: 'bearer', type: 'http' },
18985
+ { scheme: 'bearer', type: 'http' }
18986
+ ],
18987
+ url: '/api/matrix/exports/{uuid}/',
18988
+ ...options
18989
+ });
18990
+ /**
18991
+ * Download a Matrix history export file
18992
+ */
18993
+ export const matrixExportsDownloadRetrieve = (options) => (options.client ?? client).get({
18994
+ security: [
18995
+ { name: 'Authorization', type: 'apiKey' },
18996
+ { scheme: 'bearer', type: 'http' },
18997
+ { scheme: 'bearer', type: 'http' }
18998
+ ],
18999
+ url: '/api/matrix/exports/{uuid}/download/{kind}/',
19000
+ ...options
19001
+ });
19002
+ export const matrixRoomsList = (options) => (options?.client ?? client).get({
19003
+ security: [
19004
+ { name: 'Authorization', type: 'apiKey' },
19005
+ { scheme: 'bearer', type: 'http' },
19006
+ { scheme: 'bearer', type: 'http' }
19007
+ ],
19008
+ url: '/api/matrix/rooms/',
19009
+ ...options
19010
+ });
19011
+ /**
19012
+ * Get number of items in the collection matching the request parameters.
19013
+ */
19014
+ export const matrixRoomsCount = (options) => (options?.client ?? client).head({
19015
+ security: [
19016
+ { name: 'Authorization', type: 'apiKey' },
19017
+ { scheme: 'bearer', type: 'http' },
19018
+ { scheme: 'bearer', type: 'http' }
19019
+ ],
19020
+ url: '/api/matrix/rooms/',
19021
+ ...options
19022
+ });
19023
+ /**
19024
+ * Create a Matrix room for a project
19025
+ */
19026
+ export const matrixRoomsCreate = (options) => (options.client ?? client).post({
19027
+ security: [
19028
+ { name: 'Authorization', type: 'apiKey' },
19029
+ { scheme: 'bearer', type: 'http' },
19030
+ { scheme: 'bearer', type: 'http' }
19031
+ ],
19032
+ url: '/api/matrix/rooms/',
19033
+ ...options,
19034
+ headers: {
19035
+ 'Content-Type': 'application/json',
19036
+ ...options.headers
19037
+ }
19038
+ });
19039
+ export const matrixRoomsDestroy = (options) => (options.client ?? client).delete({
19040
+ security: [
19041
+ { name: 'Authorization', type: 'apiKey' },
19042
+ { scheme: 'bearer', type: 'http' },
19043
+ { scheme: 'bearer', type: 'http' }
19044
+ ],
19045
+ url: '/api/matrix/rooms/{uuid}/',
19046
+ ...options
19047
+ });
19048
+ export const matrixRoomsRetrieve = (options) => (options.client ?? client).get({
19049
+ security: [
19050
+ { name: 'Authorization', type: 'apiKey' },
19051
+ { scheme: 'bearer', type: 'http' },
19052
+ { scheme: 'bearer', type: 'http' }
19053
+ ],
19054
+ url: '/api/matrix/rooms/{uuid}/',
19055
+ ...options
19056
+ });
19057
+ /**
19058
+ * Disable an active chat room
19059
+ */
19060
+ export const matrixRoomsDisable = (options) => (options.client ?? client).post({
19061
+ security: [
19062
+ { name: 'Authorization', type: 'apiKey' },
19063
+ { scheme: 'bearer', type: 'http' },
19064
+ { scheme: 'bearer', type: 'http' }
19065
+ ],
19066
+ url: '/api/matrix/rooms/{uuid}/disable/',
19067
+ ...options,
19068
+ headers: {
19069
+ 'Content-Type': 'application/json',
19070
+ ...options.headers
19071
+ }
19072
+ });
19073
+ /**
19074
+ * Trigger manual history export
19075
+ */
19076
+ export const matrixRoomsExportHistory = (options) => (options.client ?? client).post({
19077
+ security: [
19078
+ { name: 'Authorization', type: 'apiKey' },
19079
+ { scheme: 'bearer', type: 'http' },
19080
+ { scheme: 'bearer', type: 'http' }
19081
+ ],
19082
+ url: '/api/matrix/rooms/{uuid}/export_history/',
19083
+ ...options
19084
+ });
19085
+ /**
19086
+ * Join a chat room as staff
19087
+ *
19088
+ * Staff self-join: provisions the caller, adds them with a Moderator badge (power level 50), and posts a bot announcement.
19089
+ */
19090
+ export const matrixRoomsJoin = (options) => (options.client ?? client).post({
19091
+ security: [
19092
+ { name: 'Authorization', type: 'apiKey' },
19093
+ { scheme: 'bearer', type: 'http' },
19094
+ { scheme: 'bearer', type: 'http' }
19095
+ ],
19096
+ url: '/api/matrix/rooms/{uuid}/join/',
19097
+ ...options
19098
+ });
19099
+ /**
19100
+ * Leave a chat room as staff
19101
+ *
19102
+ * Staff self-leave: posts a bot announcement and removes the caller from the room.
19103
+ */
19104
+ export const matrixRoomsLeave = (options) => (options.client ?? client).post({
19105
+ security: [
19106
+ { name: 'Authorization', type: 'apiKey' },
19107
+ { scheme: 'bearer', type: 'http' },
19108
+ { scheme: 'bearer', type: 'http' }
19109
+ ],
19110
+ url: '/api/matrix/rooms/{uuid}/leave/',
19111
+ ...options
19112
+ });
19113
+ /**
19114
+ * List room members
19115
+ */
19116
+ export const matrixRoomsMembersList = (options) => (options.client ?? client).get({
19117
+ security: [
19118
+ { name: 'Authorization', type: 'apiKey' },
19119
+ { scheme: 'bearer', type: 'http' },
19120
+ { scheme: 'bearer', type: 'http' }
19121
+ ],
19122
+ url: '/api/matrix/rooms/{uuid}/members/',
19123
+ ...options
19124
+ });
19125
+ /**
19126
+ * Re-enable an archived chat room
19127
+ */
19128
+ export const matrixRoomsReactivate = (options) => (options.client ?? client).post({
19129
+ security: [
19130
+ { name: 'Authorization', type: 'apiKey' },
19131
+ { scheme: 'bearer', type: 'http' },
19132
+ { scheme: 'bearer', type: 'http' }
19133
+ ],
19134
+ url: '/api/matrix/rooms/{uuid}/reactivate/',
19135
+ ...options
19136
+ });
19137
+ /**
19138
+ * Retry a stuck or failed room operation
19139
+ */
19140
+ export const matrixRoomsRetry = (options) => (options.client ?? client).post({
19141
+ security: [
19142
+ { name: 'Authorization', type: 'apiKey' },
19143
+ { scheme: 'bearer', type: 'http' },
19144
+ { scheme: 'bearer', type: 'http' }
19145
+ ],
19146
+ url: '/api/matrix/rooms/{uuid}/retry/',
19147
+ ...options
19148
+ });
19149
+ /**
19150
+ * Force sync room membership with project members
19151
+ */
19152
+ export const matrixRoomsSyncMembers = (options) => (options.client ?? client).post({
19153
+ security: [
19154
+ { name: 'Authorization', type: 'apiKey' },
19155
+ { scheme: 'bearer', type: 'http' },
19156
+ { scheme: 'bearer', type: 'http' }
19157
+ ],
19158
+ url: '/api/matrix/rooms/{uuid}/sync_members/',
19159
+ ...options
19160
+ });
19161
+ /**
19162
+ * List projects the caller can create a Matrix room for
19163
+ *
19164
+ * Returns projects where the caller is customer owner (staff sees all) and no MatrixRoom row exists yet. Existing archived rooms still block creation, so projects with any room are excluded.
19165
+ */
19166
+ export const matrixRoomsEligibleProjectsList = (options) => (options?.client ?? client).get({
19167
+ security: [
19168
+ { name: 'Authorization', type: 'apiKey' },
19169
+ { scheme: 'bearer', type: 'http' },
19170
+ { scheme: 'bearer', type: 'http' }
19171
+ ],
19172
+ url: '/api/matrix/rooms/eligible_projects/',
19173
+ ...options
19174
+ });
19175
+ /**
19176
+ * List projects the caller can create a Matrix room for
19177
+ *
19178
+ * Get number of items in the collection matching the request parameters.
19179
+ */
19180
+ export const matrixRoomsEligibleProjectsCount = (options) => (options?.client ?? client).head({
19181
+ security: [
19182
+ { name: 'Authorization', type: 'apiKey' },
19183
+ { scheme: 'bearer', type: 'http' },
19184
+ { scheme: 'bearer', type: 'http' }
19185
+ ],
19186
+ url: '/api/matrix/rooms/eligible_projects/',
19187
+ ...options
19188
+ });
18880
19189
  /**
18881
19190
  * Get media file
18882
19191
  */