@halo-dev/api-client 2.10.0 → 2.11.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/index.cjs CHANGED
@@ -903,6 +903,49 @@ class ApiConsoleHaloRunV1alpha1NotifierApi extends BaseAPI {
903
903
 
904
904
  const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configuration) {
905
905
  return {
906
+ changePluginRunningState: async (name, pluginRunningStateRequest, options = {}) => {
907
+ assertParamExists("changePluginRunningState", "name", name);
908
+ assertParamExists(
909
+ "changePluginRunningState",
910
+ "pluginRunningStateRequest",
911
+ pluginRunningStateRequest
912
+ );
913
+ const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/{name}/plugin-state`.replace(
914
+ `{${"name"}}`,
915
+ encodeURIComponent(String(name))
916
+ );
917
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
918
+ let baseOptions;
919
+ if (configuration) {
920
+ baseOptions = configuration.baseOptions;
921
+ }
922
+ const localVarRequestOptions = {
923
+ method: "PUT",
924
+ ...baseOptions,
925
+ ...options
926
+ };
927
+ const localVarHeaderParameter = {};
928
+ const localVarQueryParameter = {};
929
+ setBasicAuthToObject(localVarRequestOptions, configuration);
930
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
931
+ localVarHeaderParameter["Content-Type"] = "application/json";
932
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
933
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
934
+ localVarRequestOptions.headers = {
935
+ ...localVarHeaderParameter,
936
+ ...headersFromBaseOptions,
937
+ ...options.headers
938
+ };
939
+ localVarRequestOptions.data = serializeDataIfNeeded(
940
+ pluginRunningStateRequest,
941
+ localVarRequestOptions,
942
+ configuration
943
+ );
944
+ return {
945
+ url: toPathString(localVarUrlObj),
946
+ options: localVarRequestOptions
947
+ };
948
+ },
906
949
  fetchCssBundle: async (options = {}) => {
907
950
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/-/bundle.css`;
908
951
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1374,6 +1417,19 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
1374
1417
  const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
1375
1418
  const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator(configuration);
1376
1419
  return {
1420
+ async changePluginRunningState(name, pluginRunningStateRequest, options) {
1421
+ const localVarAxiosArgs = await localVarAxiosParamCreator.changePluginRunningState(
1422
+ name,
1423
+ pluginRunningStateRequest,
1424
+ options
1425
+ );
1426
+ return createRequestFunction(
1427
+ localVarAxiosArgs,
1428
+ globalAxios__default,
1429
+ BASE_PATH,
1430
+ configuration
1431
+ );
1432
+ },
1377
1433
  async fetchCssBundle(options) {
1378
1434
  const localVarAxiosArgs = await localVarAxiosParamCreator.fetchCssBundle(
1379
1435
  options
@@ -1534,6 +1590,13 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
1534
1590
  const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePath, axios) {
1535
1591
  const localVarFp = ApiConsoleHaloRunV1alpha1PluginApiFp(configuration);
1536
1592
  return {
1593
+ changePluginRunningState(requestParameters, options) {
1594
+ return localVarFp.changePluginRunningState(
1595
+ requestParameters.name,
1596
+ requestParameters.pluginRunningStateRequest,
1597
+ options
1598
+ ).then((request) => request(axios, basePath));
1599
+ },
1537
1600
  fetchCssBundle(options) {
1538
1601
  return localVarFp.fetchCssBundle(options).then((request) => request(axios, basePath));
1539
1602
  },
@@ -1604,6 +1667,13 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
1604
1667
  };
1605
1668
  };
1606
1669
  class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
1670
+ changePluginRunningState(requestParameters, options) {
1671
+ return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).changePluginRunningState(
1672
+ requestParameters.name,
1673
+ requestParameters.pluginRunningStateRequest,
1674
+ options
1675
+ ).then((request) => request(this.axios, this.basePath));
1676
+ }
1607
1677
  fetchCssBundle(options) {
1608
1678
  return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).fetchCssBundle(options).then((request) => request(this.axios, this.basePath));
1609
1679
  }
@@ -3902,6 +3972,45 @@ const ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration
3902
3972
  options: localVarRequestOptions
3903
3973
  };
3904
3974
  },
3975
+ sendEmailVerificationCode: async (emailVerifyRequest, options = {}) => {
3976
+ assertParamExists(
3977
+ "sendEmailVerificationCode",
3978
+ "emailVerifyRequest",
3979
+ emailVerifyRequest
3980
+ );
3981
+ const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/-/send-email-verification-code`;
3982
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3983
+ let baseOptions;
3984
+ if (configuration) {
3985
+ baseOptions = configuration.baseOptions;
3986
+ }
3987
+ const localVarRequestOptions = {
3988
+ method: "POST",
3989
+ ...baseOptions,
3990
+ ...options
3991
+ };
3992
+ const localVarHeaderParameter = {};
3993
+ const localVarQueryParameter = {};
3994
+ setBasicAuthToObject(localVarRequestOptions, configuration);
3995
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3996
+ localVarHeaderParameter["Content-Type"] = "application/json";
3997
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3998
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3999
+ localVarRequestOptions.headers = {
4000
+ ...localVarHeaderParameter,
4001
+ ...headersFromBaseOptions,
4002
+ ...options.headers
4003
+ };
4004
+ localVarRequestOptions.data = serializeDataIfNeeded(
4005
+ emailVerifyRequest,
4006
+ localVarRequestOptions,
4007
+ configuration
4008
+ );
4009
+ return {
4010
+ url: toPathString(localVarUrlObj),
4011
+ options: localVarRequestOptions
4012
+ };
4013
+ },
3905
4014
  updateCurrentUser: async (user, options = {}) => {
3906
4015
  assertParamExists("updateCurrentUser", "user", user);
3907
4016
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/-`;
@@ -3975,6 +4084,41 @@ const ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration
3975
4084
  url: toPathString(localVarUrlObj),
3976
4085
  options: localVarRequestOptions
3977
4086
  };
4087
+ },
4088
+ verifyEmail: async (verifyCodeRequest, options = {}) => {
4089
+ assertParamExists("verifyEmail", "verifyCodeRequest", verifyCodeRequest);
4090
+ const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/-/verify-email`;
4091
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4092
+ let baseOptions;
4093
+ if (configuration) {
4094
+ baseOptions = configuration.baseOptions;
4095
+ }
4096
+ const localVarRequestOptions = {
4097
+ method: "POST",
4098
+ ...baseOptions,
4099
+ ...options
4100
+ };
4101
+ const localVarHeaderParameter = {};
4102
+ const localVarQueryParameter = {};
4103
+ setBasicAuthToObject(localVarRequestOptions, configuration);
4104
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
4105
+ localVarHeaderParameter["Content-Type"] = "application/json";
4106
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4107
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4108
+ localVarRequestOptions.headers = {
4109
+ ...localVarHeaderParameter,
4110
+ ...headersFromBaseOptions,
4111
+ ...options.headers
4112
+ };
4113
+ localVarRequestOptions.data = serializeDataIfNeeded(
4114
+ verifyCodeRequest,
4115
+ localVarRequestOptions,
4116
+ configuration
4117
+ );
4118
+ return {
4119
+ url: toPathString(localVarUrlObj),
4120
+ options: localVarRequestOptions
4121
+ };
3978
4122
  }
3979
4123
  };
3980
4124
  };
@@ -4079,6 +4223,18 @@ const ApiConsoleHaloRunV1alpha1UserApiFp = function(configuration) {
4079
4223
  configuration
4080
4224
  );
4081
4225
  },
4226
+ async sendEmailVerificationCode(emailVerifyRequest, options) {
4227
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendEmailVerificationCode(
4228
+ emailVerifyRequest,
4229
+ options
4230
+ );
4231
+ return createRequestFunction(
4232
+ localVarAxiosArgs,
4233
+ globalAxios__default,
4234
+ BASE_PATH,
4235
+ configuration
4236
+ );
4237
+ },
4082
4238
  async updateCurrentUser(user, options) {
4083
4239
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateCurrentUser(user, options);
4084
4240
  return createRequestFunction(
@@ -4096,6 +4252,18 @@ const ApiConsoleHaloRunV1alpha1UserApiFp = function(configuration) {
4096
4252
  BASE_PATH,
4097
4253
  configuration
4098
4254
  );
4255
+ },
4256
+ async verifyEmail(verifyCodeRequest, options) {
4257
+ const localVarAxiosArgs = await localVarAxiosParamCreator.verifyEmail(
4258
+ verifyCodeRequest,
4259
+ options
4260
+ );
4261
+ return createRequestFunction(
4262
+ localVarAxiosArgs,
4263
+ globalAxios__default,
4264
+ BASE_PATH,
4265
+ configuration
4266
+ );
4099
4267
  }
4100
4268
  };
4101
4269
  };
@@ -4143,6 +4311,12 @@ const ApiConsoleHaloRunV1alpha1UserApiFactory = function(configuration, basePath
4143
4311
  options
4144
4312
  ).then((request) => request(axios, basePath));
4145
4313
  },
4314
+ sendEmailVerificationCode(requestParameters, options) {
4315
+ return localVarFp.sendEmailVerificationCode(
4316
+ requestParameters.emailVerifyRequest,
4317
+ options
4318
+ ).then((request) => request(axios, basePath));
4319
+ },
4146
4320
  updateCurrentUser(requestParameters, options) {
4147
4321
  return localVarFp.updateCurrentUser(requestParameters.user, options).then((request) => request(axios, basePath));
4148
4322
  },
@@ -4152,6 +4326,9 @@ const ApiConsoleHaloRunV1alpha1UserApiFactory = function(configuration, basePath
4152
4326
  requestParameters.file,
4153
4327
  options
4154
4328
  ).then((request) => request(axios, basePath));
4329
+ },
4330
+ verifyEmail(requestParameters, options) {
4331
+ return localVarFp.verifyEmail(requestParameters.verifyCodeRequest, options).then((request) => request(axios, basePath));
4155
4332
  }
4156
4333
  };
4157
4334
  };
@@ -4197,12 +4374,18 @@ class ApiConsoleHaloRunV1alpha1UserApi extends BaseAPI {
4197
4374
  options
4198
4375
  ).then((request) => request(this.axios, this.basePath));
4199
4376
  }
4377
+ sendEmailVerificationCode(requestParameters, options) {
4378
+ return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).sendEmailVerificationCode(requestParameters.emailVerifyRequest, options).then((request) => request(this.axios, this.basePath));
4379
+ }
4200
4380
  updateCurrentUser(requestParameters, options) {
4201
4381
  return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).updateCurrentUser(requestParameters.user, options).then((request) => request(this.axios, this.basePath));
4202
4382
  }
4203
4383
  uploadUserAvatar(requestParameters, options) {
4204
4384
  return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).uploadUserAvatar(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
4205
4385
  }
4386
+ verifyEmail(requestParameters, options) {
4387
+ return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).verifyEmail(requestParameters.verifyCodeRequest, options).then((request) => request(this.axios, this.basePath));
4388
+ }
4206
4389
  }
4207
4390
 
4208
4391
  const ApiConsoleMigrationHaloRunV1alpha1MigrationApiAxiosParamCreator = function(configuration) {
@@ -5940,6 +6123,88 @@ class ApiHaloRunV1alpha1TrackerApi extends BaseAPI {
5940
6123
 
5941
6124
  const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
5942
6125
  return {
6126
+ resetPasswordByToken: async (name, resetPasswordRequest, options = {}) => {
6127
+ assertParamExists("resetPasswordByToken", "name", name);
6128
+ assertParamExists(
6129
+ "resetPasswordByToken",
6130
+ "resetPasswordRequest",
6131
+ resetPasswordRequest
6132
+ );
6133
+ const localVarPath = `/apis/api.halo.run/v1alpha1/users/{name}/reset-password`.replace(
6134
+ `{${"name"}}`,
6135
+ encodeURIComponent(String(name))
6136
+ );
6137
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6138
+ let baseOptions;
6139
+ if (configuration) {
6140
+ baseOptions = configuration.baseOptions;
6141
+ }
6142
+ const localVarRequestOptions = {
6143
+ method: "PUT",
6144
+ ...baseOptions,
6145
+ ...options
6146
+ };
6147
+ const localVarHeaderParameter = {};
6148
+ const localVarQueryParameter = {};
6149
+ setBasicAuthToObject(localVarRequestOptions, configuration);
6150
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
6151
+ localVarHeaderParameter["Content-Type"] = "application/json";
6152
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6153
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6154
+ localVarRequestOptions.headers = {
6155
+ ...localVarHeaderParameter,
6156
+ ...headersFromBaseOptions,
6157
+ ...options.headers
6158
+ };
6159
+ localVarRequestOptions.data = serializeDataIfNeeded(
6160
+ resetPasswordRequest,
6161
+ localVarRequestOptions,
6162
+ configuration
6163
+ );
6164
+ return {
6165
+ url: toPathString(localVarUrlObj),
6166
+ options: localVarRequestOptions
6167
+ };
6168
+ },
6169
+ sendPasswordResetEmail: async (passwordResetEmailRequest, options = {}) => {
6170
+ assertParamExists(
6171
+ "sendPasswordResetEmail",
6172
+ "passwordResetEmailRequest",
6173
+ passwordResetEmailRequest
6174
+ );
6175
+ const localVarPath = `/apis/api.halo.run/v1alpha1/users/-/send-password-reset-email`;
6176
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6177
+ let baseOptions;
6178
+ if (configuration) {
6179
+ baseOptions = configuration.baseOptions;
6180
+ }
6181
+ const localVarRequestOptions = {
6182
+ method: "POST",
6183
+ ...baseOptions,
6184
+ ...options
6185
+ };
6186
+ const localVarHeaderParameter = {};
6187
+ const localVarQueryParameter = {};
6188
+ setBasicAuthToObject(localVarRequestOptions, configuration);
6189
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
6190
+ localVarHeaderParameter["Content-Type"] = "application/json";
6191
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6192
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6193
+ localVarRequestOptions.headers = {
6194
+ ...localVarHeaderParameter,
6195
+ ...headersFromBaseOptions,
6196
+ ...options.headers
6197
+ };
6198
+ localVarRequestOptions.data = serializeDataIfNeeded(
6199
+ passwordResetEmailRequest,
6200
+ localVarRequestOptions,
6201
+ configuration
6202
+ );
6203
+ return {
6204
+ url: toPathString(localVarUrlObj),
6205
+ options: localVarRequestOptions
6206
+ };
6207
+ },
5943
6208
  signUp: async (signUpRequest, options = {}) => {
5944
6209
  assertParamExists("signUp", "signUpRequest", signUpRequest);
5945
6210
  const localVarPath = `/apis/api.halo.run/v1alpha1/users/-/signup`;
@@ -5980,6 +6245,31 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
5980
6245
  const ApiHaloRunV1alpha1UserApiFp = function(configuration) {
5981
6246
  const localVarAxiosParamCreator = ApiHaloRunV1alpha1UserApiAxiosParamCreator(configuration);
5982
6247
  return {
6248
+ async resetPasswordByToken(name, resetPasswordRequest, options) {
6249
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resetPasswordByToken(
6250
+ name,
6251
+ resetPasswordRequest,
6252
+ options
6253
+ );
6254
+ return createRequestFunction(
6255
+ localVarAxiosArgs,
6256
+ globalAxios__default,
6257
+ BASE_PATH,
6258
+ configuration
6259
+ );
6260
+ },
6261
+ async sendPasswordResetEmail(passwordResetEmailRequest, options) {
6262
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendPasswordResetEmail(
6263
+ passwordResetEmailRequest,
6264
+ options
6265
+ );
6266
+ return createRequestFunction(
6267
+ localVarAxiosArgs,
6268
+ globalAxios__default,
6269
+ BASE_PATH,
6270
+ configuration
6271
+ );
6272
+ },
5983
6273
  async signUp(signUpRequest, options) {
5984
6274
  const localVarAxiosArgs = await localVarAxiosParamCreator.signUp(
5985
6275
  signUpRequest,
@@ -5997,12 +6287,38 @@ const ApiHaloRunV1alpha1UserApiFp = function(configuration) {
5997
6287
  const ApiHaloRunV1alpha1UserApiFactory = function(configuration, basePath, axios) {
5998
6288
  const localVarFp = ApiHaloRunV1alpha1UserApiFp(configuration);
5999
6289
  return {
6290
+ resetPasswordByToken(requestParameters, options) {
6291
+ return localVarFp.resetPasswordByToken(
6292
+ requestParameters.name,
6293
+ requestParameters.resetPasswordRequest,
6294
+ options
6295
+ ).then((request) => request(axios, basePath));
6296
+ },
6297
+ sendPasswordResetEmail(requestParameters, options) {
6298
+ return localVarFp.sendPasswordResetEmail(
6299
+ requestParameters.passwordResetEmailRequest,
6300
+ options
6301
+ ).then((request) => request(axios, basePath));
6302
+ },
6000
6303
  signUp(requestParameters, options) {
6001
6304
  return localVarFp.signUp(requestParameters.signUpRequest, options).then((request) => request(axios, basePath));
6002
6305
  }
6003
6306
  };
6004
6307
  };
6005
6308
  class ApiHaloRunV1alpha1UserApi extends BaseAPI {
6309
+ resetPasswordByToken(requestParameters, options) {
6310
+ return ApiHaloRunV1alpha1UserApiFp(this.configuration).resetPasswordByToken(
6311
+ requestParameters.name,
6312
+ requestParameters.resetPasswordRequest,
6313
+ options
6314
+ ).then((request) => request(this.axios, this.basePath));
6315
+ }
6316
+ sendPasswordResetEmail(requestParameters, options) {
6317
+ return ApiHaloRunV1alpha1UserApiFp(this.configuration).sendPasswordResetEmail(
6318
+ requestParameters.passwordResetEmailRequest,
6319
+ options
6320
+ ).then((request) => request(this.axios, this.basePath));
6321
+ }
6006
6322
  signUp(requestParameters, options) {
6007
6323
  return ApiHaloRunV1alpha1UserApiFp(this.configuration).signUp(requestParameters.signUpRequest, options).then((request) => request(this.axios, this.basePath));
6008
6324
  }
@@ -6010,23 +6326,53 @@ class ApiHaloRunV1alpha1UserApi extends BaseAPI {
6010
6326
 
6011
6327
  const ApiNotificationHaloRunV1alpha1NotificationApiAxiosParamCreator = function(configuration) {
6012
6328
  return {
6013
- listUserNotificationPreferences: async (username, options = {}) => {
6014
- assertParamExists(
6015
- "listUserNotificationPreferences",
6016
- "username",
6017
- username
6018
- );
6019
- const localVarPath = `/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences`.replace(
6020
- `{${"username"}}`,
6021
- encodeURIComponent(String(username))
6022
- );
6329
+ deleteSpecifiedNotification: async (username, name, options = {}) => {
6330
+ assertParamExists("deleteSpecifiedNotification", "username", username);
6331
+ assertParamExists("deleteSpecifiedNotification", "name", name);
6332
+ const localVarPath = `/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/{name}`.replace(`{${"username"}}`, encodeURIComponent(String(username))).replace(`{${"name"}}`, encodeURIComponent(String(name)));
6023
6333
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6024
6334
  let baseOptions;
6025
6335
  if (configuration) {
6026
6336
  baseOptions = configuration.baseOptions;
6027
6337
  }
6028
6338
  const localVarRequestOptions = {
6029
- method: "GET",
6339
+ method: "DELETE",
6340
+ ...baseOptions,
6341
+ ...options
6342
+ };
6343
+ const localVarHeaderParameter = {};
6344
+ const localVarQueryParameter = {};
6345
+ setBasicAuthToObject(localVarRequestOptions, configuration);
6346
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
6347
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6348
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6349
+ localVarRequestOptions.headers = {
6350
+ ...localVarHeaderParameter,
6351
+ ...headersFromBaseOptions,
6352
+ ...options.headers
6353
+ };
6354
+ return {
6355
+ url: toPathString(localVarUrlObj),
6356
+ options: localVarRequestOptions
6357
+ };
6358
+ },
6359
+ listUserNotificationPreferences: async (username, options = {}) => {
6360
+ assertParamExists(
6361
+ "listUserNotificationPreferences",
6362
+ "username",
6363
+ username
6364
+ );
6365
+ const localVarPath = `/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences`.replace(
6366
+ `{${"username"}}`,
6367
+ encodeURIComponent(String(username))
6368
+ );
6369
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6370
+ let baseOptions;
6371
+ if (configuration) {
6372
+ baseOptions = configuration.baseOptions;
6373
+ }
6374
+ const localVarRequestOptions = {
6375
+ method: "GET",
6030
6376
  ...baseOptions,
6031
6377
  ...options
6032
6378
  };
@@ -6224,6 +6570,19 @@ const ApiNotificationHaloRunV1alpha1NotificationApiFp = function(configuration)
6224
6570
  configuration
6225
6571
  );
6226
6572
  return {
6573
+ async deleteSpecifiedNotification(username, name, options) {
6574
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSpecifiedNotification(
6575
+ username,
6576
+ name,
6577
+ options
6578
+ );
6579
+ return createRequestFunction(
6580
+ localVarAxiosArgs,
6581
+ globalAxios__default,
6582
+ BASE_PATH,
6583
+ configuration
6584
+ );
6585
+ },
6227
6586
  async listUserNotificationPreferences(username, options) {
6228
6587
  const localVarAxiosArgs = await localVarAxiosParamCreator.listUserNotificationPreferences(
6229
6588
  username,
@@ -6300,6 +6659,13 @@ const ApiNotificationHaloRunV1alpha1NotificationApiFp = function(configuration)
6300
6659
  const ApiNotificationHaloRunV1alpha1NotificationApiFactory = function(configuration, basePath, axios) {
6301
6660
  const localVarFp = ApiNotificationHaloRunV1alpha1NotificationApiFp(configuration);
6302
6661
  return {
6662
+ deleteSpecifiedNotification(requestParameters, options) {
6663
+ return localVarFp.deleteSpecifiedNotification(
6664
+ requestParameters.username,
6665
+ requestParameters.name,
6666
+ options
6667
+ ).then((request) => request(axios, basePath));
6668
+ },
6303
6669
  listUserNotificationPreferences(requestParameters, options) {
6304
6670
  return localVarFp.listUserNotificationPreferences(requestParameters.username, options).then((request) => request(axios, basePath));
6305
6671
  },
@@ -6341,6 +6707,13 @@ const ApiNotificationHaloRunV1alpha1NotificationApiFactory = function(configurat
6341
6707
  };
6342
6708
  };
6343
6709
  class ApiNotificationHaloRunV1alpha1NotificationApi extends BaseAPI {
6710
+ deleteSpecifiedNotification(requestParameters, options) {
6711
+ return ApiNotificationHaloRunV1alpha1NotificationApiFp(this.configuration).deleteSpecifiedNotification(
6712
+ requestParameters.username,
6713
+ requestParameters.name,
6714
+ options
6715
+ ).then((request) => request(this.axios, this.basePath));
6716
+ }
6344
6717
  listUserNotificationPreferences(requestParameters, options) {
6345
6718
  return ApiNotificationHaloRunV1alpha1NotificationApiFp(this.configuration).listUserNotificationPreferences(requestParameters.username, options).then((request) => request(this.axios, this.basePath));
6346
6719
  }
@@ -16196,6 +16569,704 @@ class ThemeHaloRunV1alpha1ThemeApi extends BaseAPI {
16196
16569
  }
16197
16570
  }
16198
16571
 
16572
+ const UcApiContentHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
16573
+ return {
16574
+ createAttachmentForPost: async (file, waitForPermalink, postName, singlePageName, options = {}) => {
16575
+ assertParamExists("createAttachmentForPost", "file", file);
16576
+ const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/attachments`;
16577
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16578
+ let baseOptions;
16579
+ if (configuration) {
16580
+ baseOptions = configuration.baseOptions;
16581
+ }
16582
+ const localVarRequestOptions = {
16583
+ method: "POST",
16584
+ ...baseOptions,
16585
+ ...options
16586
+ };
16587
+ const localVarHeaderParameter = {};
16588
+ const localVarQueryParameter = {};
16589
+ const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)();
16590
+ setBasicAuthToObject(localVarRequestOptions, configuration);
16591
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
16592
+ if (waitForPermalink !== void 0) {
16593
+ localVarQueryParameter["waitForPermalink"] = waitForPermalink;
16594
+ }
16595
+ if (file !== void 0) {
16596
+ localVarFormParams.append("file", file);
16597
+ }
16598
+ if (postName !== void 0) {
16599
+ localVarFormParams.append("postName", postName);
16600
+ }
16601
+ if (singlePageName !== void 0) {
16602
+ localVarFormParams.append("singlePageName", singlePageName);
16603
+ }
16604
+ localVarHeaderParameter["Content-Type"] = "multipart/form-data";
16605
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16606
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16607
+ localVarRequestOptions.headers = {
16608
+ ...localVarHeaderParameter,
16609
+ ...headersFromBaseOptions,
16610
+ ...options.headers
16611
+ };
16612
+ localVarRequestOptions.data = localVarFormParams;
16613
+ return {
16614
+ url: toPathString(localVarUrlObj),
16615
+ options: localVarRequestOptions
16616
+ };
16617
+ }
16618
+ };
16619
+ };
16620
+ const UcApiContentHaloRunV1alpha1AttachmentApiFp = function(configuration) {
16621
+ const localVarAxiosParamCreator = UcApiContentHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
16622
+ return {
16623
+ async createAttachmentForPost(file, waitForPermalink, postName, singlePageName, options) {
16624
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAttachmentForPost(
16625
+ file,
16626
+ waitForPermalink,
16627
+ postName,
16628
+ singlePageName,
16629
+ options
16630
+ );
16631
+ return createRequestFunction(
16632
+ localVarAxiosArgs,
16633
+ globalAxios__default,
16634
+ BASE_PATH,
16635
+ configuration
16636
+ );
16637
+ }
16638
+ };
16639
+ };
16640
+ const UcApiContentHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
16641
+ const localVarFp = UcApiContentHaloRunV1alpha1AttachmentApiFp(configuration);
16642
+ return {
16643
+ createAttachmentForPost(requestParameters, options) {
16644
+ return localVarFp.createAttachmentForPost(
16645
+ requestParameters.file,
16646
+ requestParameters.waitForPermalink,
16647
+ requestParameters.postName,
16648
+ requestParameters.singlePageName,
16649
+ options
16650
+ ).then((request) => request(axios, basePath));
16651
+ }
16652
+ };
16653
+ };
16654
+ class UcApiContentHaloRunV1alpha1AttachmentApi extends BaseAPI {
16655
+ createAttachmentForPost(requestParameters, options) {
16656
+ return UcApiContentHaloRunV1alpha1AttachmentApiFp(this.configuration).createAttachmentForPost(
16657
+ requestParameters.file,
16658
+ requestParameters.waitForPermalink,
16659
+ requestParameters.postName,
16660
+ requestParameters.singlePageName,
16661
+ options
16662
+ ).then((request) => request(this.axios, this.basePath));
16663
+ }
16664
+ }
16665
+
16666
+ const UcApiContentHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
16667
+ return {
16668
+ createMyPost: async (post, options = {}) => {
16669
+ const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/posts`;
16670
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16671
+ let baseOptions;
16672
+ if (configuration) {
16673
+ baseOptions = configuration.baseOptions;
16674
+ }
16675
+ const localVarRequestOptions = {
16676
+ method: "POST",
16677
+ ...baseOptions,
16678
+ ...options
16679
+ };
16680
+ const localVarHeaderParameter = {};
16681
+ const localVarQueryParameter = {};
16682
+ setBasicAuthToObject(localVarRequestOptions, configuration);
16683
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
16684
+ localVarHeaderParameter["Content-Type"] = "application/json";
16685
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16686
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16687
+ localVarRequestOptions.headers = {
16688
+ ...localVarHeaderParameter,
16689
+ ...headersFromBaseOptions,
16690
+ ...options.headers
16691
+ };
16692
+ localVarRequestOptions.data = serializeDataIfNeeded(
16693
+ post,
16694
+ localVarRequestOptions,
16695
+ configuration
16696
+ );
16697
+ return {
16698
+ url: toPathString(localVarUrlObj),
16699
+ options: localVarRequestOptions
16700
+ };
16701
+ },
16702
+ getMyPost: async (name, options = {}) => {
16703
+ assertParamExists("getMyPost", "name", name);
16704
+ const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/posts/{name}`.replace(
16705
+ `{${"name"}}`,
16706
+ encodeURIComponent(String(name))
16707
+ );
16708
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16709
+ let baseOptions;
16710
+ if (configuration) {
16711
+ baseOptions = configuration.baseOptions;
16712
+ }
16713
+ const localVarRequestOptions = {
16714
+ method: "GET",
16715
+ ...baseOptions,
16716
+ ...options
16717
+ };
16718
+ const localVarHeaderParameter = {};
16719
+ const localVarQueryParameter = {};
16720
+ setBasicAuthToObject(localVarRequestOptions, configuration);
16721
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
16722
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16723
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16724
+ localVarRequestOptions.headers = {
16725
+ ...localVarHeaderParameter,
16726
+ ...headersFromBaseOptions,
16727
+ ...options.headers
16728
+ };
16729
+ return {
16730
+ url: toPathString(localVarUrlObj),
16731
+ options: localVarRequestOptions
16732
+ };
16733
+ },
16734
+ getMyPostDraft: async (name, patched, options = {}) => {
16735
+ assertParamExists("getMyPostDraft", "name", name);
16736
+ const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/draft`.replace(
16737
+ `{${"name"}}`,
16738
+ encodeURIComponent(String(name))
16739
+ );
16740
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16741
+ let baseOptions;
16742
+ if (configuration) {
16743
+ baseOptions = configuration.baseOptions;
16744
+ }
16745
+ const localVarRequestOptions = {
16746
+ method: "GET",
16747
+ ...baseOptions,
16748
+ ...options
16749
+ };
16750
+ const localVarHeaderParameter = {};
16751
+ const localVarQueryParameter = {};
16752
+ setBasicAuthToObject(localVarRequestOptions, configuration);
16753
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
16754
+ if (patched !== void 0) {
16755
+ localVarQueryParameter["patched"] = patched;
16756
+ }
16757
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16758
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16759
+ localVarRequestOptions.headers = {
16760
+ ...localVarHeaderParameter,
16761
+ ...headersFromBaseOptions,
16762
+ ...options.headers
16763
+ };
16764
+ return {
16765
+ url: toPathString(localVarUrlObj),
16766
+ options: localVarRequestOptions
16767
+ };
16768
+ },
16769
+ listMyPosts: async (category, contributor, fieldSelector, keyword, labelSelector, page, publishPhase, size, sort, tag, visible, options = {}) => {
16770
+ const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/posts`;
16771
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16772
+ let baseOptions;
16773
+ if (configuration) {
16774
+ baseOptions = configuration.baseOptions;
16775
+ }
16776
+ const localVarRequestOptions = {
16777
+ method: "GET",
16778
+ ...baseOptions,
16779
+ ...options
16780
+ };
16781
+ const localVarHeaderParameter = {};
16782
+ const localVarQueryParameter = {};
16783
+ setBasicAuthToObject(localVarRequestOptions, configuration);
16784
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
16785
+ if (category) {
16786
+ localVarQueryParameter["category"] = Array.from(category);
16787
+ }
16788
+ if (contributor) {
16789
+ localVarQueryParameter["contributor"] = Array.from(contributor);
16790
+ }
16791
+ if (fieldSelector) {
16792
+ localVarQueryParameter["fieldSelector"] = fieldSelector;
16793
+ }
16794
+ if (keyword !== void 0) {
16795
+ localVarQueryParameter["keyword"] = keyword;
16796
+ }
16797
+ if (labelSelector) {
16798
+ localVarQueryParameter["labelSelector"] = labelSelector;
16799
+ }
16800
+ if (page !== void 0) {
16801
+ localVarQueryParameter["page"] = page;
16802
+ }
16803
+ if (publishPhase !== void 0) {
16804
+ localVarQueryParameter["publishPhase"] = publishPhase;
16805
+ }
16806
+ if (size !== void 0) {
16807
+ localVarQueryParameter["size"] = size;
16808
+ }
16809
+ if (sort) {
16810
+ localVarQueryParameter["sort"] = Array.from(sort);
16811
+ }
16812
+ if (tag) {
16813
+ localVarQueryParameter["tag"] = Array.from(tag);
16814
+ }
16815
+ if (visible !== void 0) {
16816
+ localVarQueryParameter["visible"] = visible;
16817
+ }
16818
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16819
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16820
+ localVarRequestOptions.headers = {
16821
+ ...localVarHeaderParameter,
16822
+ ...headersFromBaseOptions,
16823
+ ...options.headers
16824
+ };
16825
+ return {
16826
+ url: toPathString(localVarUrlObj),
16827
+ options: localVarRequestOptions
16828
+ };
16829
+ },
16830
+ publishMyPost: async (name, options = {}) => {
16831
+ assertParamExists("publishMyPost", "name", name);
16832
+ const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/publish`.replace(
16833
+ `{${"name"}}`,
16834
+ encodeURIComponent(String(name))
16835
+ );
16836
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16837
+ let baseOptions;
16838
+ if (configuration) {
16839
+ baseOptions = configuration.baseOptions;
16840
+ }
16841
+ const localVarRequestOptions = {
16842
+ method: "PUT",
16843
+ ...baseOptions,
16844
+ ...options
16845
+ };
16846
+ const localVarHeaderParameter = {};
16847
+ const localVarQueryParameter = {};
16848
+ setBasicAuthToObject(localVarRequestOptions, configuration);
16849
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
16850
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16851
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16852
+ localVarRequestOptions.headers = {
16853
+ ...localVarHeaderParameter,
16854
+ ...headersFromBaseOptions,
16855
+ ...options.headers
16856
+ };
16857
+ return {
16858
+ url: toPathString(localVarUrlObj),
16859
+ options: localVarRequestOptions
16860
+ };
16861
+ },
16862
+ unpublishMyPost: async (name, options = {}) => {
16863
+ assertParamExists("unpublishMyPost", "name", name);
16864
+ const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/unpublish`.replace(
16865
+ `{${"name"}}`,
16866
+ encodeURIComponent(String(name))
16867
+ );
16868
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16869
+ let baseOptions;
16870
+ if (configuration) {
16871
+ baseOptions = configuration.baseOptions;
16872
+ }
16873
+ const localVarRequestOptions = {
16874
+ method: "PUT",
16875
+ ...baseOptions,
16876
+ ...options
16877
+ };
16878
+ const localVarHeaderParameter = {};
16879
+ const localVarQueryParameter = {};
16880
+ setBasicAuthToObject(localVarRequestOptions, configuration);
16881
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
16882
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16883
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16884
+ localVarRequestOptions.headers = {
16885
+ ...localVarHeaderParameter,
16886
+ ...headersFromBaseOptions,
16887
+ ...options.headers
16888
+ };
16889
+ return {
16890
+ url: toPathString(localVarUrlObj),
16891
+ options: localVarRequestOptions
16892
+ };
16893
+ },
16894
+ updateMyPost: async (name, post, options = {}) => {
16895
+ assertParamExists("updateMyPost", "name", name);
16896
+ const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/posts/{name}`.replace(
16897
+ `{${"name"}}`,
16898
+ encodeURIComponent(String(name))
16899
+ );
16900
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16901
+ let baseOptions;
16902
+ if (configuration) {
16903
+ baseOptions = configuration.baseOptions;
16904
+ }
16905
+ const localVarRequestOptions = {
16906
+ method: "PUT",
16907
+ ...baseOptions,
16908
+ ...options
16909
+ };
16910
+ const localVarHeaderParameter = {};
16911
+ const localVarQueryParameter = {};
16912
+ setBasicAuthToObject(localVarRequestOptions, configuration);
16913
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
16914
+ localVarHeaderParameter["Content-Type"] = "application/json";
16915
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16916
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16917
+ localVarRequestOptions.headers = {
16918
+ ...localVarHeaderParameter,
16919
+ ...headersFromBaseOptions,
16920
+ ...options.headers
16921
+ };
16922
+ localVarRequestOptions.data = serializeDataIfNeeded(
16923
+ post,
16924
+ localVarRequestOptions,
16925
+ configuration
16926
+ );
16927
+ return {
16928
+ url: toPathString(localVarUrlObj),
16929
+ options: localVarRequestOptions
16930
+ };
16931
+ },
16932
+ updateMyPostDraft: async (name, snapshot, options = {}) => {
16933
+ assertParamExists("updateMyPostDraft", "name", name);
16934
+ const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/draft`.replace(
16935
+ `{${"name"}}`,
16936
+ encodeURIComponent(String(name))
16937
+ );
16938
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16939
+ let baseOptions;
16940
+ if (configuration) {
16941
+ baseOptions = configuration.baseOptions;
16942
+ }
16943
+ const localVarRequestOptions = {
16944
+ method: "PUT",
16945
+ ...baseOptions,
16946
+ ...options
16947
+ };
16948
+ const localVarHeaderParameter = {};
16949
+ const localVarQueryParameter = {};
16950
+ setBasicAuthToObject(localVarRequestOptions, configuration);
16951
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
16952
+ localVarHeaderParameter["Content-Type"] = "application/json";
16953
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16954
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16955
+ localVarRequestOptions.headers = {
16956
+ ...localVarHeaderParameter,
16957
+ ...headersFromBaseOptions,
16958
+ ...options.headers
16959
+ };
16960
+ localVarRequestOptions.data = serializeDataIfNeeded(
16961
+ snapshot,
16962
+ localVarRequestOptions,
16963
+ configuration
16964
+ );
16965
+ return {
16966
+ url: toPathString(localVarUrlObj),
16967
+ options: localVarRequestOptions
16968
+ };
16969
+ }
16970
+ };
16971
+ };
16972
+ const UcApiContentHaloRunV1alpha1PostApiFp = function(configuration) {
16973
+ const localVarAxiosParamCreator = UcApiContentHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
16974
+ return {
16975
+ async createMyPost(post, options) {
16976
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createMyPost(
16977
+ post,
16978
+ options
16979
+ );
16980
+ return createRequestFunction(
16981
+ localVarAxiosArgs,
16982
+ globalAxios__default,
16983
+ BASE_PATH,
16984
+ configuration
16985
+ );
16986
+ },
16987
+ async getMyPost(name, options) {
16988
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyPost(
16989
+ name,
16990
+ options
16991
+ );
16992
+ return createRequestFunction(
16993
+ localVarAxiosArgs,
16994
+ globalAxios__default,
16995
+ BASE_PATH,
16996
+ configuration
16997
+ );
16998
+ },
16999
+ async getMyPostDraft(name, patched, options) {
17000
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyPostDraft(
17001
+ name,
17002
+ patched,
17003
+ options
17004
+ );
17005
+ return createRequestFunction(
17006
+ localVarAxiosArgs,
17007
+ globalAxios__default,
17008
+ BASE_PATH,
17009
+ configuration
17010
+ );
17011
+ },
17012
+ async listMyPosts(category, contributor, fieldSelector, keyword, labelSelector, page, publishPhase, size, sort, tag, visible, options) {
17013
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listMyPosts(
17014
+ category,
17015
+ contributor,
17016
+ fieldSelector,
17017
+ keyword,
17018
+ labelSelector,
17019
+ page,
17020
+ publishPhase,
17021
+ size,
17022
+ sort,
17023
+ tag,
17024
+ visible,
17025
+ options
17026
+ );
17027
+ return createRequestFunction(
17028
+ localVarAxiosArgs,
17029
+ globalAxios__default,
17030
+ BASE_PATH,
17031
+ configuration
17032
+ );
17033
+ },
17034
+ async publishMyPost(name, options) {
17035
+ const localVarAxiosArgs = await localVarAxiosParamCreator.publishMyPost(
17036
+ name,
17037
+ options
17038
+ );
17039
+ return createRequestFunction(
17040
+ localVarAxiosArgs,
17041
+ globalAxios__default,
17042
+ BASE_PATH,
17043
+ configuration
17044
+ );
17045
+ },
17046
+ async unpublishMyPost(name, options) {
17047
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unpublishMyPost(
17048
+ name,
17049
+ options
17050
+ );
17051
+ return createRequestFunction(
17052
+ localVarAxiosArgs,
17053
+ globalAxios__default,
17054
+ BASE_PATH,
17055
+ configuration
17056
+ );
17057
+ },
17058
+ async updateMyPost(name, post, options) {
17059
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateMyPost(
17060
+ name,
17061
+ post,
17062
+ options
17063
+ );
17064
+ return createRequestFunction(
17065
+ localVarAxiosArgs,
17066
+ globalAxios__default,
17067
+ BASE_PATH,
17068
+ configuration
17069
+ );
17070
+ },
17071
+ async updateMyPostDraft(name, snapshot, options) {
17072
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateMyPostDraft(
17073
+ name,
17074
+ snapshot,
17075
+ options
17076
+ );
17077
+ return createRequestFunction(
17078
+ localVarAxiosArgs,
17079
+ globalAxios__default,
17080
+ BASE_PATH,
17081
+ configuration
17082
+ );
17083
+ }
17084
+ };
17085
+ };
17086
+ const UcApiContentHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
17087
+ const localVarFp = UcApiContentHaloRunV1alpha1PostApiFp(configuration);
17088
+ return {
17089
+ createMyPost(requestParameters = {}, options) {
17090
+ return localVarFp.createMyPost(requestParameters.post, options).then((request) => request(axios, basePath));
17091
+ },
17092
+ getMyPost(requestParameters, options) {
17093
+ return localVarFp.getMyPost(requestParameters.name, options).then((request) => request(axios, basePath));
17094
+ },
17095
+ getMyPostDraft(requestParameters, options) {
17096
+ return localVarFp.getMyPostDraft(
17097
+ requestParameters.name,
17098
+ requestParameters.patched,
17099
+ options
17100
+ ).then((request) => request(axios, basePath));
17101
+ },
17102
+ listMyPosts(requestParameters = {}, options) {
17103
+ return localVarFp.listMyPosts(
17104
+ requestParameters.category,
17105
+ requestParameters.contributor,
17106
+ requestParameters.fieldSelector,
17107
+ requestParameters.keyword,
17108
+ requestParameters.labelSelector,
17109
+ requestParameters.page,
17110
+ requestParameters.publishPhase,
17111
+ requestParameters.size,
17112
+ requestParameters.sort,
17113
+ requestParameters.tag,
17114
+ requestParameters.visible,
17115
+ options
17116
+ ).then((request) => request(axios, basePath));
17117
+ },
17118
+ publishMyPost(requestParameters, options) {
17119
+ return localVarFp.publishMyPost(requestParameters.name, options).then((request) => request(axios, basePath));
17120
+ },
17121
+ unpublishMyPost(requestParameters, options) {
17122
+ return localVarFp.unpublishMyPost(requestParameters.name, options).then((request) => request(axios, basePath));
17123
+ },
17124
+ updateMyPost(requestParameters, options) {
17125
+ return localVarFp.updateMyPost(requestParameters.name, requestParameters.post, options).then((request) => request(axios, basePath));
17126
+ },
17127
+ updateMyPostDraft(requestParameters, options) {
17128
+ return localVarFp.updateMyPostDraft(
17129
+ requestParameters.name,
17130
+ requestParameters.snapshot,
17131
+ options
17132
+ ).then((request) => request(axios, basePath));
17133
+ }
17134
+ };
17135
+ };
17136
+ class UcApiContentHaloRunV1alpha1PostApi extends BaseAPI {
17137
+ createMyPost(requestParameters = {}, options) {
17138
+ return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration).createMyPost(requestParameters.post, options).then((request) => request(this.axios, this.basePath));
17139
+ }
17140
+ getMyPost(requestParameters, options) {
17141
+ return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration).getMyPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
17142
+ }
17143
+ getMyPostDraft(requestParameters, options) {
17144
+ return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration).getMyPostDraft(
17145
+ requestParameters.name,
17146
+ requestParameters.patched,
17147
+ options
17148
+ ).then((request) => request(this.axios, this.basePath));
17149
+ }
17150
+ listMyPosts(requestParameters = {}, options) {
17151
+ return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration).listMyPosts(
17152
+ requestParameters.category,
17153
+ requestParameters.contributor,
17154
+ requestParameters.fieldSelector,
17155
+ requestParameters.keyword,
17156
+ requestParameters.labelSelector,
17157
+ requestParameters.page,
17158
+ requestParameters.publishPhase,
17159
+ requestParameters.size,
17160
+ requestParameters.sort,
17161
+ requestParameters.tag,
17162
+ requestParameters.visible,
17163
+ options
17164
+ ).then((request) => request(this.axios, this.basePath));
17165
+ }
17166
+ publishMyPost(requestParameters, options) {
17167
+ return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration).publishMyPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
17168
+ }
17169
+ unpublishMyPost(requestParameters, options) {
17170
+ return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration).unpublishMyPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
17171
+ }
17172
+ updateMyPost(requestParameters, options) {
17173
+ return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration).updateMyPost(requestParameters.name, requestParameters.post, options).then((request) => request(this.axios, this.basePath));
17174
+ }
17175
+ updateMyPostDraft(requestParameters, options) {
17176
+ return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration).updateMyPostDraft(
17177
+ requestParameters.name,
17178
+ requestParameters.snapshot,
17179
+ options
17180
+ ).then((request) => request(this.axios, this.basePath));
17181
+ }
17182
+ }
17183
+
17184
+ const UcApiContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = function(configuration) {
17185
+ return {
17186
+ getSnapshotForPost: async (name, postName, patched, options = {}) => {
17187
+ assertParamExists("getSnapshotForPost", "name", name);
17188
+ assertParamExists("getSnapshotForPost", "postName", postName);
17189
+ const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/snapshots/{name}`.replace(
17190
+ `{${"name"}}`,
17191
+ encodeURIComponent(String(name))
17192
+ );
17193
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17194
+ let baseOptions;
17195
+ if (configuration) {
17196
+ baseOptions = configuration.baseOptions;
17197
+ }
17198
+ const localVarRequestOptions = {
17199
+ method: "GET",
17200
+ ...baseOptions,
17201
+ ...options
17202
+ };
17203
+ const localVarHeaderParameter = {};
17204
+ const localVarQueryParameter = {};
17205
+ setBasicAuthToObject(localVarRequestOptions, configuration);
17206
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
17207
+ if (postName !== void 0) {
17208
+ localVarQueryParameter["postName"] = postName;
17209
+ }
17210
+ if (patched !== void 0) {
17211
+ localVarQueryParameter["patched"] = patched;
17212
+ }
17213
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17214
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17215
+ localVarRequestOptions.headers = {
17216
+ ...localVarHeaderParameter,
17217
+ ...headersFromBaseOptions,
17218
+ ...options.headers
17219
+ };
17220
+ return {
17221
+ url: toPathString(localVarUrlObj),
17222
+ options: localVarRequestOptions
17223
+ };
17224
+ }
17225
+ };
17226
+ };
17227
+ const UcApiContentHaloRunV1alpha1SnapshotApiFp = function(configuration) {
17228
+ const localVarAxiosParamCreator = UcApiContentHaloRunV1alpha1SnapshotApiAxiosParamCreator(configuration);
17229
+ return {
17230
+ async getSnapshotForPost(name, postName, patched, options) {
17231
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSnapshotForPost(
17232
+ name,
17233
+ postName,
17234
+ patched,
17235
+ options
17236
+ );
17237
+ return createRequestFunction(
17238
+ localVarAxiosArgs,
17239
+ globalAxios__default,
17240
+ BASE_PATH,
17241
+ configuration
17242
+ );
17243
+ }
17244
+ };
17245
+ };
17246
+ const UcApiContentHaloRunV1alpha1SnapshotApiFactory = function(configuration, basePath, axios) {
17247
+ const localVarFp = UcApiContentHaloRunV1alpha1SnapshotApiFp(configuration);
17248
+ return {
17249
+ getSnapshotForPost(requestParameters, options) {
17250
+ return localVarFp.getSnapshotForPost(
17251
+ requestParameters.name,
17252
+ requestParameters.postName,
17253
+ requestParameters.patched,
17254
+ options
17255
+ ).then((request) => request(axios, basePath));
17256
+ }
17257
+ };
17258
+ };
17259
+ class UcApiContentHaloRunV1alpha1SnapshotApi extends BaseAPI {
17260
+ getSnapshotForPost(requestParameters, options) {
17261
+ return UcApiContentHaloRunV1alpha1SnapshotApiFp(this.configuration).getSnapshotForPost(
17262
+ requestParameters.name,
17263
+ requestParameters.postName,
17264
+ requestParameters.patched,
17265
+ options
17266
+ ).then((request) => request(this.axios, this.basePath));
17267
+ }
17268
+ }
17269
+
16199
17270
  const V1alpha1AnnotationSettingApiAxiosParamCreator = function(configuration) {
16200
17271
  return {
16201
17272
  createv1alpha1AnnotationSetting: async (annotationSetting, options = {}) => {
@@ -19335,6 +20406,18 @@ exports.ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator = ThemeHaloRunV1alpha1Them
19335
20406
  exports.ThemeHaloRunV1alpha1ThemeApiFactory = ThemeHaloRunV1alpha1ThemeApiFactory;
19336
20407
  exports.ThemeHaloRunV1alpha1ThemeApiFp = ThemeHaloRunV1alpha1ThemeApiFp;
19337
20408
  exports.ThemeStatusPhaseEnum = ThemeStatusPhaseEnum;
20409
+ exports.UcApiContentHaloRunV1alpha1AttachmentApi = UcApiContentHaloRunV1alpha1AttachmentApi;
20410
+ exports.UcApiContentHaloRunV1alpha1AttachmentApiAxiosParamCreator = UcApiContentHaloRunV1alpha1AttachmentApiAxiosParamCreator;
20411
+ exports.UcApiContentHaloRunV1alpha1AttachmentApiFactory = UcApiContentHaloRunV1alpha1AttachmentApiFactory;
20412
+ exports.UcApiContentHaloRunV1alpha1AttachmentApiFp = UcApiContentHaloRunV1alpha1AttachmentApiFp;
20413
+ exports.UcApiContentHaloRunV1alpha1PostApi = UcApiContentHaloRunV1alpha1PostApi;
20414
+ exports.UcApiContentHaloRunV1alpha1PostApiAxiosParamCreator = UcApiContentHaloRunV1alpha1PostApiAxiosParamCreator;
20415
+ exports.UcApiContentHaloRunV1alpha1PostApiFactory = UcApiContentHaloRunV1alpha1PostApiFactory;
20416
+ exports.UcApiContentHaloRunV1alpha1PostApiFp = UcApiContentHaloRunV1alpha1PostApiFp;
20417
+ exports.UcApiContentHaloRunV1alpha1SnapshotApi = UcApiContentHaloRunV1alpha1SnapshotApi;
20418
+ exports.UcApiContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = UcApiContentHaloRunV1alpha1SnapshotApiAxiosParamCreator;
20419
+ exports.UcApiContentHaloRunV1alpha1SnapshotApiFactory = UcApiContentHaloRunV1alpha1SnapshotApiFactory;
20420
+ exports.UcApiContentHaloRunV1alpha1SnapshotApiFp = UcApiContentHaloRunV1alpha1SnapshotApiFp;
19338
20421
  exports.V1alpha1AnnotationSettingApi = V1alpha1AnnotationSettingApi;
19339
20422
  exports.V1alpha1AnnotationSettingApiAxiosParamCreator = V1alpha1AnnotationSettingApiAxiosParamCreator;
19340
20423
  exports.V1alpha1AnnotationSettingApiFactory = V1alpha1AnnotationSettingApiFactory;