@stacks/blockchain-api-client 7.3.4 → 7.3.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacks/blockchain-api-client",
3
- "version": "7.3.4",
3
+ "version": "7.3.6",
4
4
  "access": "public",
5
5
  "description": "Client for the Stacks Blockchain API",
6
6
  "homepage": "https://github.com/hirosystems/stacks-blockchain-api/tree/master/client#readme",
@@ -60,7 +60,6 @@ models/GetStxSupplyLegacyFormatResponse.ts
60
60
  models/GetStxSupplyResponse.ts
61
61
  models/InboundStxTransfer.ts
62
62
  models/InlineObject.ts
63
- models/InlineObject1.ts
64
63
  models/InlineResponse403.ts
65
64
  models/MapEntryResponse.ts
66
65
  models/MempoolTransactionListResponse.ts
@@ -18,9 +18,6 @@ import {
18
18
  InlineObject,
19
19
  InlineObjectFromJSON,
20
20
  InlineObjectToJSON,
21
- InlineObject1,
22
- InlineObject1FromJSON,
23
- InlineObject1ToJSON,
24
21
  InlineResponse403,
25
22
  InlineResponse403FromJSON,
26
23
  InlineResponse403ToJSON,
@@ -31,13 +28,12 @@ import {
31
28
 
32
29
  export interface RunFaucetBtcRequest {
33
30
  address: string;
34
- inlineObject1?: InlineObject1;
31
+ inlineObject?: InlineObject;
35
32
  }
36
33
 
37
34
  export interface RunFaucetStxRequest {
38
35
  address: string;
39
36
  stacking?: boolean;
40
- inlineObject?: InlineObject;
41
37
  }
42
38
 
43
39
  /**
@@ -51,7 +47,7 @@ export interface FaucetsApiInterface {
51
47
  * Add 1 BTC token to the specified testnet BTC address. The endpoint returns the transaction ID, which you can use to view the transaction in a testnet Bitcoin block explorer. The tokens are delivered once the transaction has been included in a block. **Note:** This is a testnet only endpoint. This endpoint will not work on the mainnet.
52
48
  * @summary Add testnet BTC tokens to address
53
49
  * @param {string} address A valid testnet BTC address
54
- * @param {InlineObject1} [inlineObject1]
50
+ * @param {InlineObject} [inlineObject]
55
51
  * @param {*} [options] Override http request option.
56
52
  * @throws {RequiredError}
57
53
  * @memberof FaucetsApiInterface
@@ -69,7 +65,6 @@ export interface FaucetsApiInterface {
69
65
  * @summary Get STX testnet tokens
70
66
  * @param {string} address A valid testnet STX address
71
67
  * @param {boolean} [stacking] Request the amount of STX tokens needed for individual address stacking
72
- * @param {InlineObject} [inlineObject]
73
68
  * @param {*} [options] Override http request option.
74
69
  * @throws {RequiredError}
75
70
  * @memberof FaucetsApiInterface
@@ -113,7 +108,7 @@ export class FaucetsApi extends runtime.BaseAPI implements FaucetsApiInterface {
113
108
  method: 'POST',
114
109
  headers: headerParameters,
115
110
  query: queryParameters,
116
- body: InlineObject1ToJSON(requestParameters.inlineObject1),
111
+ body: InlineObjectToJSON(requestParameters.inlineObject),
117
112
  }, initOverrides);
118
113
 
119
114
  return new runtime.JSONApiResponse(response, (jsonValue) => RunFaucetResponseFromJSON(jsonValue));
@@ -149,14 +144,11 @@ export class FaucetsApi extends runtime.BaseAPI implements FaucetsApiInterface {
149
144
 
150
145
  const headerParameters: runtime.HTTPHeaders = {};
151
146
 
152
- headerParameters['Content-Type'] = 'application/json';
153
-
154
147
  const response = await this.request({
155
148
  path: `/extended/v1/faucets/stx`,
156
149
  method: 'POST',
157
150
  headers: headerParameters,
158
151
  query: queryParameters,
159
- body: InlineObjectToJSON(requestParameters.inlineObject),
160
152
  }, initOverrides);
161
153
 
162
154
  return new runtime.JSONApiResponse(response, (jsonValue) => RunFaucetResponseFromJSON(jsonValue));
@@ -20,17 +20,11 @@ import { exists, mapValues } from '../runtime';
20
20
  */
21
21
  export interface InlineObject {
22
22
  /**
23
- * STX testnet address
23
+ * BTC testnet address
24
24
  * @type {string}
25
25
  * @memberof InlineObject
26
26
  */
27
27
  address?: string;
28
- /**
29
- * Use required number of tokens for stacking
30
- * @type {boolean}
31
- * @memberof InlineObject
32
- */
33
- stacking?: boolean;
34
28
  }
35
29
 
36
30
  export function InlineObjectFromJSON(json: any): InlineObject {
@@ -44,7 +38,6 @@ export function InlineObjectFromJSONTyped(json: any, ignoreDiscriminator: boolea
44
38
  return {
45
39
 
46
40
  'address': !exists(json, 'address') ? undefined : json['address'],
47
- 'stacking': !exists(json, 'stacking') ? undefined : json['stacking'],
48
41
  };
49
42
  }
50
43
 
@@ -58,7 +51,6 @@ export function InlineObjectToJSON(value?: InlineObject | null): any {
58
51
  return {
59
52
 
60
53
  'address': value.address,
61
- 'stacking': value.stacking,
62
54
  };
63
55
  }
64
56
 
@@ -44,7 +44,6 @@ export * from './GetStxSupplyLegacyFormatResponse';
44
44
  export * from './GetStxSupplyResponse';
45
45
  export * from './InboundStxTransfer';
46
46
  export * from './InlineObject';
47
- export * from './InlineObject1';
48
47
  export * from './InlineResponse403';
49
48
  export * from './MapEntryResponse';
50
49
  export * from './MempoolTransactionListResponse';
@@ -1,27 +0,0 @@
1
- /**
2
- * Stacks Blockchain API
3
- * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"https://hirosystems.github.io/stacks-blockchain-api/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
4
- *
5
- * The version of the OpenAPI document: STACKS_API_VERSION
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface InlineObject1
16
- */
17
- export interface InlineObject1 {
18
- /**
19
- * BTC testnet address
20
- * @type {string}
21
- * @memberof InlineObject1
22
- */
23
- address?: string;
24
- }
25
- export declare function InlineObject1FromJSON(json: any): InlineObject1;
26
- export declare function InlineObject1FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject1;
27
- export declare function InlineObject1ToJSON(value?: InlineObject1 | null): any;
@@ -1,43 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Stacks Blockchain API
6
- * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"https://hirosystems.github.io/stacks-blockchain-api/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
7
- *
8
- * The version of the OpenAPI document: STACKS_API_VERSION
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.InlineObject1ToJSON = exports.InlineObject1FromJSONTyped = exports.InlineObject1FromJSON = void 0;
17
- const runtime_1 = require("../runtime");
18
- function InlineObject1FromJSON(json) {
19
- return InlineObject1FromJSONTyped(json, false);
20
- }
21
- exports.InlineObject1FromJSON = InlineObject1FromJSON;
22
- function InlineObject1FromJSONTyped(json, ignoreDiscriminator) {
23
- if ((json === undefined) || (json === null)) {
24
- return json;
25
- }
26
- return {
27
- 'address': !(0, runtime_1.exists)(json, 'address') ? undefined : json['address'],
28
- };
29
- }
30
- exports.InlineObject1FromJSONTyped = InlineObject1FromJSONTyped;
31
- function InlineObject1ToJSON(value) {
32
- if (value === undefined) {
33
- return undefined;
34
- }
35
- if (value === null) {
36
- return null;
37
- }
38
- return {
39
- 'address': value.address,
40
- };
41
- }
42
- exports.InlineObject1ToJSON = InlineObject1ToJSON;
43
- //# sourceMappingURL=InlineObject1.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InlineObject1.js","sourceRoot":"","sources":["../../../src/generated/models/InlineObject1.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAEH,wCAA+C;AAe/C,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAFD,sDAEC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,SAAS,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;KACpE,CAAC;AACN,CAAC;AARD,gEAQC;AAED,SAAgB,mBAAmB,CAAC,KAA4B;IAC5D,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,OAAO;KAC3B,CAAC;AACN,CAAC;AAXD,kDAWC"}
@@ -1,56 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Stacks Blockchain API
5
- * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"https://hirosystems.github.io/stacks-blockchain-api/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
6
- *
7
- * The version of the OpenAPI document: STACKS_API_VERSION
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { exists, mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface InlineObject1
20
- */
21
- export interface InlineObject1 {
22
- /**
23
- * BTC testnet address
24
- * @type {string}
25
- * @memberof InlineObject1
26
- */
27
- address?: string;
28
- }
29
-
30
- export function InlineObject1FromJSON(json: any): InlineObject1 {
31
- return InlineObject1FromJSONTyped(json, false);
32
- }
33
-
34
- export function InlineObject1FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject1 {
35
- if ((json === undefined) || (json === null)) {
36
- return json;
37
- }
38
- return {
39
-
40
- 'address': !exists(json, 'address') ? undefined : json['address'],
41
- };
42
- }
43
-
44
- export function InlineObject1ToJSON(value?: InlineObject1 | null): any {
45
- if (value === undefined) {
46
- return undefined;
47
- }
48
- if (value === null) {
49
- return null;
50
- }
51
- return {
52
-
53
- 'address': value.address,
54
- };
55
- }
56
-