@seamapi/http 1.45.0 → 1.47.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.
@@ -372,7 +372,7 @@ type AccessGrantsDeleteResponse = SetNonNullable<Required<RouteResponse<'/access
372
372
  type AccessGrantsDeleteRequest = SeamHttpRequest<void, undefined>;
373
373
  interface AccessGrantsDeleteOptions {
374
374
  }
375
- type AccessGrantsGetParameters = RouteRequestBody<'/access_grants/get'>;
375
+ type AccessGrantsGetParameters = RouteRequestParams<'/access_grants/get'>;
376
376
  /**
377
377
  * @deprecated Use AccessGrantsGetParameters instead.
378
378
  */
@@ -2629,7 +2629,7 @@ type SpacesDeleteResponse = SetNonNullable<Required<RouteResponse<'/spaces/delet
2629
2629
  type SpacesDeleteRequest = SeamHttpRequest<void, undefined>;
2630
2630
  interface SpacesDeleteOptions {
2631
2631
  }
2632
- type SpacesGetParameters = RouteRequestBody<'/spaces/get'>;
2632
+ type SpacesGetParameters = RouteRequestParams<'/spaces/get'>;
2633
2633
  /**
2634
2634
  * @deprecated Use SpacesGetParameters instead.
2635
2635
  */
@@ -2653,7 +2653,7 @@ type SpacesGetRelatedResponse = SetNonNullable<Required<RouteResponse<'/spaces/g
2653
2653
  type SpacesGetRelatedRequest = SeamHttpRequest<SpacesGetRelatedResponse, 'batch'>;
2654
2654
  interface SpacesGetRelatedOptions {
2655
2655
  }
2656
- type SpacesListParameters = RouteRequestParams<'/spaces/list'>;
2656
+ type SpacesListParameters = RouteRequestBody<'/spaces/list'>;
2657
2657
  /**
2658
2658
  * @deprecated Use SpacesListParameters instead.
2659
2659
  */
package/dist/index.cjs CHANGED
@@ -1735,8 +1735,8 @@ var _SeamHttpAccessGrants = class _SeamHttpAccessGrants {
1735
1735
  get(parameters, options = {}) {
1736
1736
  return new SeamHttpRequest(this, {
1737
1737
  pathname: "/access_grants/get",
1738
- method: "POST",
1739
- body: parameters,
1738
+ method: "GET",
1739
+ params: parameters,
1740
1740
  responseKey: "access_grant",
1741
1741
  options
1742
1742
  });
@@ -6383,8 +6383,8 @@ var _SeamHttpSpaces = class _SeamHttpSpaces {
6383
6383
  get(parameters, options = {}) {
6384
6384
  return new SeamHttpRequest(this, {
6385
6385
  pathname: "/spaces/get",
6386
- method: "POST",
6387
- body: parameters,
6386
+ method: "GET",
6387
+ params: parameters,
6388
6388
  responseKey: "space",
6389
6389
  options
6390
6390
  });
@@ -6401,8 +6401,8 @@ var _SeamHttpSpaces = class _SeamHttpSpaces {
6401
6401
  list(parameters, options = {}) {
6402
6402
  return new SeamHttpRequest(this, {
6403
6403
  pathname: "/spaces/list",
6404
- method: "GET",
6405
- params: parameters,
6404
+ method: "POST",
6405
+ body: parameters,
6406
6406
  responseKey: "spaces",
6407
6407
  options
6408
6408
  });