@ember-home/unbound-ts-client 0.0.26 → 0.0.28

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.mjs CHANGED
@@ -99,7 +99,9 @@ var MessageStatus = {
99
99
  Sent: "SENT",
100
100
  Delivered: "DELIVERED",
101
101
  Read: "READ",
102
- Failed: "FAILED"
102
+ Failed: "FAILED",
103
+ Scheduled: "SCHEDULED",
104
+ Canceled: "CANCELED"
103
105
  };
104
106
  var PaginationDirection = {
105
107
  Forward: "forward",
@@ -115,16 +117,16 @@ var SortOrder = {
115
117
  var SrcResourceModelsConversationsModelConversationsModelConversationSortBy = {
116
118
  UpdatedAt: "updated_at"
117
119
  };
118
- var SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum = {
120
+ var SrcResourceModelsHelperModelsCustomBaseModelCreateApi4ConversationTypeEnum = {
119
121
  Twilio: "TWILIO"
120
122
  };
121
- var SrcResourceModelsHelperModelsCustomBaseModelCreateApi2ConversationTypeEnum = {
123
+ var SrcResourceModelsHelperModelsCustomBaseModelCreateApi5ConversationTypeEnum = {
122
124
  Email: "EMAIL"
123
125
  };
124
- var SrcResourceModelsHelperModelsCustomBaseModelCreateApi3ConversationTypeEnum = {
126
+ var SrcResourceModelsHelperModelsCustomBaseModelCreateApi6ConversationTypeEnum = {
125
127
  Twilio: "TWILIO"
126
128
  };
127
- var SrcResourceModelsHelperModelsCustomBaseModelCreateApi4ConversationTypeEnum = {
129
+ var SrcResourceModelsHelperModelsCustomBaseModelCreateApi7ConversationTypeEnum = {
128
130
  Email: "EMAIL"
129
131
  };
130
132
  var SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum = {
@@ -3218,8 +3220,294 @@ var PhoneNumbersApi = class extends BaseAPI {
3218
3220
  return PhoneNumbersApiFp(this.configuration).phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(this.axios, this.basePath));
3219
3221
  }
3220
3222
  };
3223
+ var ProvidersApiAxiosParamCreator = function(configuration) {
3224
+ return {
3225
+ /**
3226
+ *
3227
+ * @summary Providers Create
3228
+ * @param {ProviderCreate} providerCreate
3229
+ * @param {*} [options] Override http request option.
3230
+ * @throws {RequiredError}
3231
+ */
3232
+ providersCreate: async (providerCreate, options = {}) => {
3233
+ assertParamExists("providersCreate", "providerCreate", providerCreate);
3234
+ const localVarPath = `/providers`;
3235
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3236
+ let baseOptions;
3237
+ if (configuration) {
3238
+ baseOptions = configuration.baseOptions;
3239
+ }
3240
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
3241
+ const localVarHeaderParameter = {};
3242
+ const localVarQueryParameter = {};
3243
+ localVarHeaderParameter["Content-Type"] = "application/json";
3244
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3245
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3246
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3247
+ localVarRequestOptions.data = serializeDataIfNeeded(providerCreate, localVarRequestOptions, configuration);
3248
+ return {
3249
+ url: toPathString(localVarUrlObj),
3250
+ options: localVarRequestOptions
3251
+ };
3252
+ },
3253
+ /**
3254
+ *
3255
+ * @summary Providers Get
3256
+ * @param {string} providerId
3257
+ * @param {*} [options] Override http request option.
3258
+ * @throws {RequiredError}
3259
+ */
3260
+ providersGet: async (providerId, options = {}) => {
3261
+ assertParamExists("providersGet", "providerId", providerId);
3262
+ const localVarPath = `/providers/{providerId}`.replace(`{${"providerId"}}`, encodeURIComponent(String(providerId)));
3263
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3264
+ let baseOptions;
3265
+ if (configuration) {
3266
+ baseOptions = configuration.baseOptions;
3267
+ }
3268
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
3269
+ const localVarHeaderParameter = {};
3270
+ const localVarQueryParameter = {};
3271
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3272
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3273
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3274
+ return {
3275
+ url: toPathString(localVarUrlObj),
3276
+ options: localVarRequestOptions
3277
+ };
3278
+ },
3279
+ /**
3280
+ *
3281
+ * @summary Providers List
3282
+ * @param {*} [options] Override http request option.
3283
+ * @throws {RequiredError}
3284
+ */
3285
+ providersList: async (options = {}) => {
3286
+ const localVarPath = `/providers`;
3287
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3288
+ let baseOptions;
3289
+ if (configuration) {
3290
+ baseOptions = configuration.baseOptions;
3291
+ }
3292
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
3293
+ const localVarHeaderParameter = {};
3294
+ const localVarQueryParameter = {};
3295
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3296
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3297
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3298
+ return {
3299
+ url: toPathString(localVarUrlObj),
3300
+ options: localVarRequestOptions
3301
+ };
3302
+ },
3303
+ /**
3304
+ *
3305
+ * @summary Providers Update
3306
+ * @param {string} providerId
3307
+ * @param {ProviderUpdate} providerUpdate
3308
+ * @param {*} [options] Override http request option.
3309
+ * @throws {RequiredError}
3310
+ */
3311
+ providersUpdate: async (providerId, providerUpdate, options = {}) => {
3312
+ assertParamExists("providersUpdate", "providerId", providerId);
3313
+ assertParamExists("providersUpdate", "providerUpdate", providerUpdate);
3314
+ const localVarPath = `/providers/{providerId}`.replace(`{${"providerId"}}`, encodeURIComponent(String(providerId)));
3315
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3316
+ let baseOptions;
3317
+ if (configuration) {
3318
+ baseOptions = configuration.baseOptions;
3319
+ }
3320
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
3321
+ const localVarHeaderParameter = {};
3322
+ const localVarQueryParameter = {};
3323
+ localVarHeaderParameter["Content-Type"] = "application/json";
3324
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3325
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3326
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3327
+ localVarRequestOptions.data = serializeDataIfNeeded(providerUpdate, localVarRequestOptions, configuration);
3328
+ return {
3329
+ url: toPathString(localVarUrlObj),
3330
+ options: localVarRequestOptions
3331
+ };
3332
+ }
3333
+ };
3334
+ };
3335
+ var ProvidersApiFp = function(configuration) {
3336
+ const localVarAxiosParamCreator = ProvidersApiAxiosParamCreator(configuration);
3337
+ return {
3338
+ /**
3339
+ *
3340
+ * @summary Providers Create
3341
+ * @param {ProviderCreate} providerCreate
3342
+ * @param {*} [options] Override http request option.
3343
+ * @throws {RequiredError}
3344
+ */
3345
+ async providersCreate(providerCreate, options) {
3346
+ const localVarAxiosArgs = await localVarAxiosParamCreator.providersCreate(providerCreate, options);
3347
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3348
+ const localVarOperationServerBasePath = operationServerMap["ProvidersApi.providersCreate"]?.[localVarOperationServerIndex]?.url;
3349
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3350
+ },
3351
+ /**
3352
+ *
3353
+ * @summary Providers Get
3354
+ * @param {string} providerId
3355
+ * @param {*} [options] Override http request option.
3356
+ * @throws {RequiredError}
3357
+ */
3358
+ async providersGet(providerId, options) {
3359
+ const localVarAxiosArgs = await localVarAxiosParamCreator.providersGet(providerId, options);
3360
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3361
+ const localVarOperationServerBasePath = operationServerMap["ProvidersApi.providersGet"]?.[localVarOperationServerIndex]?.url;
3362
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3363
+ },
3364
+ /**
3365
+ *
3366
+ * @summary Providers List
3367
+ * @param {*} [options] Override http request option.
3368
+ * @throws {RequiredError}
3369
+ */
3370
+ async providersList(options) {
3371
+ const localVarAxiosArgs = await localVarAxiosParamCreator.providersList(options);
3372
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3373
+ const localVarOperationServerBasePath = operationServerMap["ProvidersApi.providersList"]?.[localVarOperationServerIndex]?.url;
3374
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3375
+ },
3376
+ /**
3377
+ *
3378
+ * @summary Providers Update
3379
+ * @param {string} providerId
3380
+ * @param {ProviderUpdate} providerUpdate
3381
+ * @param {*} [options] Override http request option.
3382
+ * @throws {RequiredError}
3383
+ */
3384
+ async providersUpdate(providerId, providerUpdate, options) {
3385
+ const localVarAxiosArgs = await localVarAxiosParamCreator.providersUpdate(providerId, providerUpdate, options);
3386
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3387
+ const localVarOperationServerBasePath = operationServerMap["ProvidersApi.providersUpdate"]?.[localVarOperationServerIndex]?.url;
3388
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3389
+ }
3390
+ };
3391
+ };
3392
+ var ProvidersApiFactory = function(configuration, basePath, axios) {
3393
+ const localVarFp = ProvidersApiFp(configuration);
3394
+ return {
3395
+ /**
3396
+ *
3397
+ * @summary Providers Create
3398
+ * @param {ProviderCreate} providerCreate
3399
+ * @param {*} [options] Override http request option.
3400
+ * @throws {RequiredError}
3401
+ */
3402
+ providersCreate(providerCreate, options) {
3403
+ return localVarFp.providersCreate(providerCreate, options).then((request) => request(axios, basePath));
3404
+ },
3405
+ /**
3406
+ *
3407
+ * @summary Providers Get
3408
+ * @param {string} providerId
3409
+ * @param {*} [options] Override http request option.
3410
+ * @throws {RequiredError}
3411
+ */
3412
+ providersGet(providerId, options) {
3413
+ return localVarFp.providersGet(providerId, options).then((request) => request(axios, basePath));
3414
+ },
3415
+ /**
3416
+ *
3417
+ * @summary Providers List
3418
+ * @param {*} [options] Override http request option.
3419
+ * @throws {RequiredError}
3420
+ */
3421
+ providersList(options) {
3422
+ return localVarFp.providersList(options).then((request) => request(axios, basePath));
3423
+ },
3424
+ /**
3425
+ *
3426
+ * @summary Providers Update
3427
+ * @param {string} providerId
3428
+ * @param {ProviderUpdate} providerUpdate
3429
+ * @param {*} [options] Override http request option.
3430
+ * @throws {RequiredError}
3431
+ */
3432
+ providersUpdate(providerId, providerUpdate, options) {
3433
+ return localVarFp.providersUpdate(providerId, providerUpdate, options).then((request) => request(axios, basePath));
3434
+ }
3435
+ };
3436
+ };
3437
+ var ProvidersApi = class extends BaseAPI {
3438
+ /**
3439
+ *
3440
+ * @summary Providers Create
3441
+ * @param {ProviderCreate} providerCreate
3442
+ * @param {*} [options] Override http request option.
3443
+ * @throws {RequiredError}
3444
+ * @memberof ProvidersApi
3445
+ */
3446
+ providersCreate(providerCreate, options) {
3447
+ return ProvidersApiFp(this.configuration).providersCreate(providerCreate, options).then((request) => request(this.axios, this.basePath));
3448
+ }
3449
+ /**
3450
+ *
3451
+ * @summary Providers Get
3452
+ * @param {string} providerId
3453
+ * @param {*} [options] Override http request option.
3454
+ * @throws {RequiredError}
3455
+ * @memberof ProvidersApi
3456
+ */
3457
+ providersGet(providerId, options) {
3458
+ return ProvidersApiFp(this.configuration).providersGet(providerId, options).then((request) => request(this.axios, this.basePath));
3459
+ }
3460
+ /**
3461
+ *
3462
+ * @summary Providers List
3463
+ * @param {*} [options] Override http request option.
3464
+ * @throws {RequiredError}
3465
+ * @memberof ProvidersApi
3466
+ */
3467
+ providersList(options) {
3468
+ return ProvidersApiFp(this.configuration).providersList(options).then((request) => request(this.axios, this.basePath));
3469
+ }
3470
+ /**
3471
+ *
3472
+ * @summary Providers Update
3473
+ * @param {string} providerId
3474
+ * @param {ProviderUpdate} providerUpdate
3475
+ * @param {*} [options] Override http request option.
3476
+ * @throws {RequiredError}
3477
+ * @memberof ProvidersApi
3478
+ */
3479
+ providersUpdate(providerId, providerUpdate, options) {
3480
+ return ProvidersApiFp(this.configuration).providersUpdate(providerId, providerUpdate, options).then((request) => request(this.axios, this.basePath));
3481
+ }
3482
+ };
3221
3483
  var ReservationsApiAxiosParamCreator = function(configuration) {
3222
3484
  return {
3485
+ /**
3486
+ *
3487
+ * @summary Reservations Get
3488
+ * @param {string} reservationId
3489
+ * @param {*} [options] Override http request option.
3490
+ * @throws {RequiredError}
3491
+ */
3492
+ reservationsGet: async (reservationId, options = {}) => {
3493
+ assertParamExists("reservationsGet", "reservationId", reservationId);
3494
+ const localVarPath = `/reservations/{reservationId}`.replace(`{${"reservationId"}}`, encodeURIComponent(String(reservationId)));
3495
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3496
+ let baseOptions;
3497
+ if (configuration) {
3498
+ baseOptions = configuration.baseOptions;
3499
+ }
3500
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
3501
+ const localVarHeaderParameter = {};
3502
+ const localVarQueryParameter = {};
3503
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3504
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3505
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3506
+ return {
3507
+ url: toPathString(localVarUrlObj),
3508
+ options: localVarRequestOptions
3509
+ };
3510
+ },
3223
3511
  /**
3224
3512
  *
3225
3513
  * @summary Reservations List
@@ -3277,6 +3565,19 @@ var ReservationsApiAxiosParamCreator = function(configuration) {
3277
3565
  var ReservationsApiFp = function(configuration) {
3278
3566
  const localVarAxiosParamCreator = ReservationsApiAxiosParamCreator(configuration);
3279
3567
  return {
3568
+ /**
3569
+ *
3570
+ * @summary Reservations Get
3571
+ * @param {string} reservationId
3572
+ * @param {*} [options] Override http request option.
3573
+ * @throws {RequiredError}
3574
+ */
3575
+ async reservationsGet(reservationId, options) {
3576
+ const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsGet(reservationId, options);
3577
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3578
+ const localVarOperationServerBasePath = operationServerMap["ReservationsApi.reservationsGet"]?.[localVarOperationServerIndex]?.url;
3579
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3580
+ },
3280
3581
  /**
3281
3582
  *
3282
3583
  * @summary Reservations List
@@ -3301,6 +3602,16 @@ var ReservationsApiFp = function(configuration) {
3301
3602
  var ReservationsApiFactory = function(configuration, basePath, axios) {
3302
3603
  const localVarFp = ReservationsApiFp(configuration);
3303
3604
  return {
3605
+ /**
3606
+ *
3607
+ * @summary Reservations Get
3608
+ * @param {string} reservationId
3609
+ * @param {*} [options] Override http request option.
3610
+ * @throws {RequiredError}
3611
+ */
3612
+ reservationsGet(reservationId, options) {
3613
+ return localVarFp.reservationsGet(reservationId, options).then((request) => request(axios, basePath));
3614
+ },
3304
3615
  /**
3305
3616
  *
3306
3617
  * @summary Reservations List
@@ -3320,6 +3631,17 @@ var ReservationsApiFactory = function(configuration, basePath, axios) {
3320
3631
  };
3321
3632
  };
3322
3633
  var ReservationsApi = class extends BaseAPI {
3634
+ /**
3635
+ *
3636
+ * @summary Reservations Get
3637
+ * @param {string} reservationId
3638
+ * @param {*} [options] Override http request option.
3639
+ * @throws {RequiredError}
3640
+ * @memberof ReservationsApi
3641
+ */
3642
+ reservationsGet(reservationId, options) {
3643
+ return ReservationsApiFp(this.configuration).reservationsGet(reservationId, options).then((request) => request(this.axios, this.basePath));
3644
+ }
3323
3645
  /**
3324
3646
  *
3325
3647
  * @summary Reservations List
@@ -4254,6 +4576,140 @@ var UnboundApiAxiosParamCreator = function(configuration) {
4254
4576
  options: localVarRequestOptions
4255
4577
  };
4256
4578
  },
4579
+ /**
4580
+ *
4581
+ * @summary Providers Create
4582
+ * @param {ProviderCreate} providerCreate
4583
+ * @param {*} [options] Override http request option.
4584
+ * @throws {RequiredError}
4585
+ */
4586
+ providersCreate: async (providerCreate, options = {}) => {
4587
+ assertParamExists("providersCreate", "providerCreate", providerCreate);
4588
+ const localVarPath = `/providers`;
4589
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4590
+ let baseOptions;
4591
+ if (configuration) {
4592
+ baseOptions = configuration.baseOptions;
4593
+ }
4594
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
4595
+ const localVarHeaderParameter = {};
4596
+ const localVarQueryParameter = {};
4597
+ localVarHeaderParameter["Content-Type"] = "application/json";
4598
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4599
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4600
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4601
+ localVarRequestOptions.data = serializeDataIfNeeded(providerCreate, localVarRequestOptions, configuration);
4602
+ return {
4603
+ url: toPathString(localVarUrlObj),
4604
+ options: localVarRequestOptions
4605
+ };
4606
+ },
4607
+ /**
4608
+ *
4609
+ * @summary Providers Get
4610
+ * @param {string} providerId
4611
+ * @param {*} [options] Override http request option.
4612
+ * @throws {RequiredError}
4613
+ */
4614
+ providersGet: async (providerId, options = {}) => {
4615
+ assertParamExists("providersGet", "providerId", providerId);
4616
+ const localVarPath = `/providers/{providerId}`.replace(`{${"providerId"}}`, encodeURIComponent(String(providerId)));
4617
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4618
+ let baseOptions;
4619
+ if (configuration) {
4620
+ baseOptions = configuration.baseOptions;
4621
+ }
4622
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
4623
+ const localVarHeaderParameter = {};
4624
+ const localVarQueryParameter = {};
4625
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4626
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4627
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4628
+ return {
4629
+ url: toPathString(localVarUrlObj),
4630
+ options: localVarRequestOptions
4631
+ };
4632
+ },
4633
+ /**
4634
+ *
4635
+ * @summary Providers List
4636
+ * @param {*} [options] Override http request option.
4637
+ * @throws {RequiredError}
4638
+ */
4639
+ providersList: async (options = {}) => {
4640
+ const localVarPath = `/providers`;
4641
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4642
+ let baseOptions;
4643
+ if (configuration) {
4644
+ baseOptions = configuration.baseOptions;
4645
+ }
4646
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
4647
+ const localVarHeaderParameter = {};
4648
+ const localVarQueryParameter = {};
4649
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4650
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4651
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4652
+ return {
4653
+ url: toPathString(localVarUrlObj),
4654
+ options: localVarRequestOptions
4655
+ };
4656
+ },
4657
+ /**
4658
+ *
4659
+ * @summary Providers Update
4660
+ * @param {string} providerId
4661
+ * @param {ProviderUpdate} providerUpdate
4662
+ * @param {*} [options] Override http request option.
4663
+ * @throws {RequiredError}
4664
+ */
4665
+ providersUpdate: async (providerId, providerUpdate, options = {}) => {
4666
+ assertParamExists("providersUpdate", "providerId", providerId);
4667
+ assertParamExists("providersUpdate", "providerUpdate", providerUpdate);
4668
+ const localVarPath = `/providers/{providerId}`.replace(`{${"providerId"}}`, encodeURIComponent(String(providerId)));
4669
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4670
+ let baseOptions;
4671
+ if (configuration) {
4672
+ baseOptions = configuration.baseOptions;
4673
+ }
4674
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
4675
+ const localVarHeaderParameter = {};
4676
+ const localVarQueryParameter = {};
4677
+ localVarHeaderParameter["Content-Type"] = "application/json";
4678
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4679
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4680
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4681
+ localVarRequestOptions.data = serializeDataIfNeeded(providerUpdate, localVarRequestOptions, configuration);
4682
+ return {
4683
+ url: toPathString(localVarUrlObj),
4684
+ options: localVarRequestOptions
4685
+ };
4686
+ },
4687
+ /**
4688
+ *
4689
+ * @summary Reservations Get
4690
+ * @param {string} reservationId
4691
+ * @param {*} [options] Override http request option.
4692
+ * @throws {RequiredError}
4693
+ */
4694
+ reservationsGet: async (reservationId, options = {}) => {
4695
+ assertParamExists("reservationsGet", "reservationId", reservationId);
4696
+ const localVarPath = `/reservations/{reservationId}`.replace(`{${"reservationId"}}`, encodeURIComponent(String(reservationId)));
4697
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4698
+ let baseOptions;
4699
+ if (configuration) {
4700
+ baseOptions = configuration.baseOptions;
4701
+ }
4702
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
4703
+ const localVarHeaderParameter = {};
4704
+ const localVarQueryParameter = {};
4705
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4706
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4707
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4708
+ return {
4709
+ url: toPathString(localVarUrlObj),
4710
+ options: localVarRequestOptions
4711
+ };
4712
+ },
4257
4713
  /**
4258
4714
  *
4259
4715
  * @summary Reservations List
@@ -4754,6 +5210,71 @@ var UnboundApiFp = function(configuration) {
4754
5210
  const localVarOperationServerBasePath = operationServerMap["UnboundApi.phoneNumbersUpdate"]?.[localVarOperationServerIndex]?.url;
4755
5211
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4756
5212
  },
5213
+ /**
5214
+ *
5215
+ * @summary Providers Create
5216
+ * @param {ProviderCreate} providerCreate
5217
+ * @param {*} [options] Override http request option.
5218
+ * @throws {RequiredError}
5219
+ */
5220
+ async providersCreate(providerCreate, options) {
5221
+ const localVarAxiosArgs = await localVarAxiosParamCreator.providersCreate(providerCreate, options);
5222
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5223
+ const localVarOperationServerBasePath = operationServerMap["UnboundApi.providersCreate"]?.[localVarOperationServerIndex]?.url;
5224
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5225
+ },
5226
+ /**
5227
+ *
5228
+ * @summary Providers Get
5229
+ * @param {string} providerId
5230
+ * @param {*} [options] Override http request option.
5231
+ * @throws {RequiredError}
5232
+ */
5233
+ async providersGet(providerId, options) {
5234
+ const localVarAxiosArgs = await localVarAxiosParamCreator.providersGet(providerId, options);
5235
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5236
+ const localVarOperationServerBasePath = operationServerMap["UnboundApi.providersGet"]?.[localVarOperationServerIndex]?.url;
5237
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5238
+ },
5239
+ /**
5240
+ *
5241
+ * @summary Providers List
5242
+ * @param {*} [options] Override http request option.
5243
+ * @throws {RequiredError}
5244
+ */
5245
+ async providersList(options) {
5246
+ const localVarAxiosArgs = await localVarAxiosParamCreator.providersList(options);
5247
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5248
+ const localVarOperationServerBasePath = operationServerMap["UnboundApi.providersList"]?.[localVarOperationServerIndex]?.url;
5249
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5250
+ },
5251
+ /**
5252
+ *
5253
+ * @summary Providers Update
5254
+ * @param {string} providerId
5255
+ * @param {ProviderUpdate} providerUpdate
5256
+ * @param {*} [options] Override http request option.
5257
+ * @throws {RequiredError}
5258
+ */
5259
+ async providersUpdate(providerId, providerUpdate, options) {
5260
+ const localVarAxiosArgs = await localVarAxiosParamCreator.providersUpdate(providerId, providerUpdate, options);
5261
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5262
+ const localVarOperationServerBasePath = operationServerMap["UnboundApi.providersUpdate"]?.[localVarOperationServerIndex]?.url;
5263
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5264
+ },
5265
+ /**
5266
+ *
5267
+ * @summary Reservations Get
5268
+ * @param {string} reservationId
5269
+ * @param {*} [options] Override http request option.
5270
+ * @throws {RequiredError}
5271
+ */
5272
+ async reservationsGet(reservationId, options) {
5273
+ const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsGet(reservationId, options);
5274
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5275
+ const localVarOperationServerBasePath = operationServerMap["UnboundApi.reservationsGet"]?.[localVarOperationServerIndex]?.url;
5276
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5277
+ },
4757
5278
  /**
4758
5279
  *
4759
5280
  * @summary Reservations List
@@ -5118,6 +5639,56 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
5118
5639
  phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
5119
5640
  return localVarFp.phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(axios, basePath));
5120
5641
  },
5642
+ /**
5643
+ *
5644
+ * @summary Providers Create
5645
+ * @param {ProviderCreate} providerCreate
5646
+ * @param {*} [options] Override http request option.
5647
+ * @throws {RequiredError}
5648
+ */
5649
+ providersCreate(providerCreate, options) {
5650
+ return localVarFp.providersCreate(providerCreate, options).then((request) => request(axios, basePath));
5651
+ },
5652
+ /**
5653
+ *
5654
+ * @summary Providers Get
5655
+ * @param {string} providerId
5656
+ * @param {*} [options] Override http request option.
5657
+ * @throws {RequiredError}
5658
+ */
5659
+ providersGet(providerId, options) {
5660
+ return localVarFp.providersGet(providerId, options).then((request) => request(axios, basePath));
5661
+ },
5662
+ /**
5663
+ *
5664
+ * @summary Providers List
5665
+ * @param {*} [options] Override http request option.
5666
+ * @throws {RequiredError}
5667
+ */
5668
+ providersList(options) {
5669
+ return localVarFp.providersList(options).then((request) => request(axios, basePath));
5670
+ },
5671
+ /**
5672
+ *
5673
+ * @summary Providers Update
5674
+ * @param {string} providerId
5675
+ * @param {ProviderUpdate} providerUpdate
5676
+ * @param {*} [options] Override http request option.
5677
+ * @throws {RequiredError}
5678
+ */
5679
+ providersUpdate(providerId, providerUpdate, options) {
5680
+ return localVarFp.providersUpdate(providerId, providerUpdate, options).then((request) => request(axios, basePath));
5681
+ },
5682
+ /**
5683
+ *
5684
+ * @summary Reservations Get
5685
+ * @param {string} reservationId
5686
+ * @param {*} [options] Override http request option.
5687
+ * @throws {RequiredError}
5688
+ */
5689
+ reservationsGet(reservationId, options) {
5690
+ return localVarFp.reservationsGet(reservationId, options).then((request) => request(axios, basePath));
5691
+ },
5121
5692
  /**
5122
5693
  *
5123
5694
  * @summary Reservations List
@@ -5503,6 +6074,61 @@ var UnboundApi = class extends BaseAPI {
5503
6074
  phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
5504
6075
  return UnboundApiFp(this.configuration).phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(this.axios, this.basePath));
5505
6076
  }
6077
+ /**
6078
+ *
6079
+ * @summary Providers Create
6080
+ * @param {ProviderCreate} providerCreate
6081
+ * @param {*} [options] Override http request option.
6082
+ * @throws {RequiredError}
6083
+ * @memberof UnboundApi
6084
+ */
6085
+ providersCreate(providerCreate, options) {
6086
+ return UnboundApiFp(this.configuration).providersCreate(providerCreate, options).then((request) => request(this.axios, this.basePath));
6087
+ }
6088
+ /**
6089
+ *
6090
+ * @summary Providers Get
6091
+ * @param {string} providerId
6092
+ * @param {*} [options] Override http request option.
6093
+ * @throws {RequiredError}
6094
+ * @memberof UnboundApi
6095
+ */
6096
+ providersGet(providerId, options) {
6097
+ return UnboundApiFp(this.configuration).providersGet(providerId, options).then((request) => request(this.axios, this.basePath));
6098
+ }
6099
+ /**
6100
+ *
6101
+ * @summary Providers List
6102
+ * @param {*} [options] Override http request option.
6103
+ * @throws {RequiredError}
6104
+ * @memberof UnboundApi
6105
+ */
6106
+ providersList(options) {
6107
+ return UnboundApiFp(this.configuration).providersList(options).then((request) => request(this.axios, this.basePath));
6108
+ }
6109
+ /**
6110
+ *
6111
+ * @summary Providers Update
6112
+ * @param {string} providerId
6113
+ * @param {ProviderUpdate} providerUpdate
6114
+ * @param {*} [options] Override http request option.
6115
+ * @throws {RequiredError}
6116
+ * @memberof UnboundApi
6117
+ */
6118
+ providersUpdate(providerId, providerUpdate, options) {
6119
+ return UnboundApiFp(this.configuration).providersUpdate(providerId, providerUpdate, options).then((request) => request(this.axios, this.basePath));
6120
+ }
6121
+ /**
6122
+ *
6123
+ * @summary Reservations Get
6124
+ * @param {string} reservationId
6125
+ * @param {*} [options] Override http request option.
6126
+ * @throws {RequiredError}
6127
+ * @memberof UnboundApi
6128
+ */
6129
+ reservationsGet(reservationId, options) {
6130
+ return UnboundApiFp(this.configuration).reservationsGet(reservationId, options).then((request) => request(this.axios, this.basePath));
6131
+ }
5506
6132
  /**
5507
6133
  *
5508
6134
  * @summary Reservations List
@@ -5675,16 +6301,20 @@ export {
5675
6301
  PhoneNumbersApiFactory,
5676
6302
  PhoneNumbersApiFp,
5677
6303
  ProviderMessageApiConversationTypeEnum,
6304
+ ProvidersApi,
6305
+ ProvidersApiAxiosParamCreator,
6306
+ ProvidersApiFactory,
6307
+ ProvidersApiFp,
5678
6308
  ReservationsApi,
5679
6309
  ReservationsApiAxiosParamCreator,
5680
6310
  ReservationsApiFactory,
5681
6311
  ReservationsApiFp,
5682
6312
  SortOrder,
5683
6313
  SrcResourceModelsConversationsModelConversationsModelConversationSortBy,
5684
- SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum,
5685
- SrcResourceModelsHelperModelsCustomBaseModelCreateApi2ConversationTypeEnum,
5686
- SrcResourceModelsHelperModelsCustomBaseModelCreateApi3ConversationTypeEnum,
5687
6314
  SrcResourceModelsHelperModelsCustomBaseModelCreateApi4ConversationTypeEnum,
6315
+ SrcResourceModelsHelperModelsCustomBaseModelCreateApi5ConversationTypeEnum,
6316
+ SrcResourceModelsHelperModelsCustomBaseModelCreateApi6ConversationTypeEnum,
6317
+ SrcResourceModelsHelperModelsCustomBaseModelCreateApi7ConversationTypeEnum,
5688
6318
  SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum,
5689
6319
  SrcResourceModelsHelperModelsCustomBaseModelUpdateApi2ConversationTypeEnum,
5690
6320
  SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy,