@sip-protocol/sipher-client 0.1.0 → 0.1.1
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/README.md +415 -91
- package/dist/apis/ScanApi.d.ts +28 -1
- package/dist/apis/ScanApi.js +36 -0
- package/dist/esm/apis/ScanApi.d.ts +28 -1
- package/dist/esm/apis/ScanApi.js +37 -1
- package/dist/esm/models/ScanAssets200Response.d.ts +39 -0
- package/dist/esm/models/ScanAssets200Response.js +44 -0
- package/dist/esm/models/ScanAssets200ResponseData.d.ts +65 -0
- package/dist/esm/models/ScanAssets200ResponseData.js +57 -0
- package/dist/esm/models/ScanAssets200ResponseDataAssetsInner.d.ts +50 -0
- package/dist/esm/models/ScanAssets200ResponseDataAssetsInner.js +47 -0
- package/dist/esm/models/ScanAssetsRequest.d.ts +51 -0
- package/dist/esm/models/ScanAssetsRequest.js +50 -0
- package/dist/esm/models/ScanAssetsRequestDisplayOptions.d.ts +38 -0
- package/dist/esm/models/ScanAssetsRequestDisplayOptions.js +43 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/ScanAssets200Response.d.ts +39 -0
- package/dist/models/ScanAssets200Response.js +51 -0
- package/dist/models/ScanAssets200ResponseData.d.ts +65 -0
- package/dist/models/ScanAssets200ResponseData.js +65 -0
- package/dist/models/ScanAssets200ResponseDataAssetsInner.d.ts +50 -0
- package/dist/models/ScanAssets200ResponseDataAssetsInner.js +54 -0
- package/dist/models/ScanAssetsRequest.d.ts +51 -0
- package/dist/models/ScanAssetsRequest.js +57 -0
- package/dist/models/ScanAssetsRequestDisplayOptions.d.ts +38 -0
- package/dist/models/ScanAssetsRequestDisplayOptions.js +50 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +5 -5
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ScanPayments200Response, ScanPaymentsBatch200Response, ScanPaymentsBatchRequest, ScanPaymentsRequest } from '../models/index';
|
|
13
|
+
import type { ScanAssets200Response, ScanAssetsRequest, ScanPayments200Response, ScanPaymentsBatch200Response, ScanPaymentsBatchRequest, ScanPaymentsRequest } from '../models/index';
|
|
14
|
+
export interface ScanAssetsOperationRequest {
|
|
15
|
+
scanAssetsRequest: ScanAssetsRequest;
|
|
16
|
+
}
|
|
14
17
|
export interface ScanPaymentsOperationRequest {
|
|
15
18
|
scanPaymentsRequest: ScanPaymentsRequest;
|
|
16
19
|
}
|
|
@@ -24,6 +27,20 @@ export interface ScanPaymentsBatchOperationRequest {
|
|
|
24
27
|
* @interface ScanApiInterface
|
|
25
28
|
*/
|
|
26
29
|
export interface ScanApiInterface {
|
|
30
|
+
/**
|
|
31
|
+
* Query all assets (SPL tokens, NFTs, cNFTs) at a stealth address using Helius DAS getAssetsByOwner API. Falls back to standard getTokenAccountsByOwner if Helius is not configured.
|
|
32
|
+
* @summary Scan stealth address assets via Helius DAS
|
|
33
|
+
* @param {ScanAssetsRequest} scanAssetsRequest
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
* @memberof ScanApiInterface
|
|
37
|
+
*/
|
|
38
|
+
scanAssetsRaw(requestParameters: ScanAssetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScanAssets200Response>>;
|
|
39
|
+
/**
|
|
40
|
+
* Query all assets (SPL tokens, NFTs, cNFTs) at a stealth address using Helius DAS getAssetsByOwner API. Falls back to standard getTokenAccountsByOwner if Helius is not configured.
|
|
41
|
+
* Scan stealth address assets via Helius DAS
|
|
42
|
+
*/
|
|
43
|
+
scanAssets(scanAssetsRequest: ScanAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScanAssets200Response>;
|
|
27
44
|
/**
|
|
28
45
|
* Scans Solana for SIP announcements matching the provided viewing key.
|
|
29
46
|
* @summary Scan for incoming shielded payments
|
|
@@ -57,6 +74,16 @@ export interface ScanApiInterface {
|
|
|
57
74
|
*
|
|
58
75
|
*/
|
|
59
76
|
export declare class ScanApi extends runtime.BaseAPI implements ScanApiInterface {
|
|
77
|
+
/**
|
|
78
|
+
* Query all assets (SPL tokens, NFTs, cNFTs) at a stealth address using Helius DAS getAssetsByOwner API. Falls back to standard getTokenAccountsByOwner if Helius is not configured.
|
|
79
|
+
* Scan stealth address assets via Helius DAS
|
|
80
|
+
*/
|
|
81
|
+
scanAssetsRaw(requestParameters: ScanAssetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScanAssets200Response>>;
|
|
82
|
+
/**
|
|
83
|
+
* Query all assets (SPL tokens, NFTs, cNFTs) at a stealth address using Helius DAS getAssetsByOwner API. Falls back to standard getTokenAccountsByOwner if Helius is not configured.
|
|
84
|
+
* Scan stealth address assets via Helius DAS
|
|
85
|
+
*/
|
|
86
|
+
scanAssets(scanAssetsRequest: ScanAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScanAssets200Response>;
|
|
60
87
|
/**
|
|
61
88
|
* Scans Solana for SIP announcements matching the provided viewing key.
|
|
62
89
|
* Scan for incoming shielded payments
|
package/dist/esm/apis/ScanApi.js
CHANGED
|
@@ -21,11 +21,47 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { ScanPayments200ResponseFromJSON, ScanPaymentsBatch200ResponseFromJSON, ScanPaymentsBatchRequestToJSON, ScanPaymentsRequestToJSON, } from '../models/index';
|
|
24
|
+
import { ScanAssets200ResponseFromJSON, ScanAssetsRequestToJSON, ScanPayments200ResponseFromJSON, ScanPaymentsBatch200ResponseFromJSON, ScanPaymentsBatchRequestToJSON, ScanPaymentsRequestToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class ScanApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Query all assets (SPL tokens, NFTs, cNFTs) at a stealth address using Helius DAS getAssetsByOwner API. Falls back to standard getTokenAccountsByOwner if Helius is not configured.
|
|
31
|
+
* Scan stealth address assets via Helius DAS
|
|
32
|
+
*/
|
|
33
|
+
scanAssetsRaw(requestParameters, initOverrides) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
if (requestParameters['scanAssetsRequest'] == null) {
|
|
36
|
+
throw new runtime.RequiredError('scanAssetsRequest', 'Required parameter "scanAssetsRequest" was null or undefined when calling scanAssets().');
|
|
37
|
+
}
|
|
38
|
+
const queryParameters = {};
|
|
39
|
+
const headerParameters = {};
|
|
40
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
41
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
42
|
+
headerParameters["X-API-Key"] = yield this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
43
|
+
}
|
|
44
|
+
let urlPath = `/v1/scan/assets`;
|
|
45
|
+
const response = yield this.request({
|
|
46
|
+
path: urlPath,
|
|
47
|
+
method: 'POST',
|
|
48
|
+
headers: headerParameters,
|
|
49
|
+
query: queryParameters,
|
|
50
|
+
body: ScanAssetsRequestToJSON(requestParameters['scanAssetsRequest']),
|
|
51
|
+
}, initOverrides);
|
|
52
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ScanAssets200ResponseFromJSON(jsonValue));
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Query all assets (SPL tokens, NFTs, cNFTs) at a stealth address using Helius DAS getAssetsByOwner API. Falls back to standard getTokenAccountsByOwner if Helius is not configured.
|
|
57
|
+
* Scan stealth address assets via Helius DAS
|
|
58
|
+
*/
|
|
59
|
+
scanAssets(scanAssetsRequest, initOverrides) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const response = yield this.scanAssetsRaw({ scanAssetsRequest: scanAssetsRequest }, initOverrides);
|
|
62
|
+
return yield response.value();
|
|
63
|
+
});
|
|
64
|
+
}
|
|
29
65
|
/**
|
|
30
66
|
* Scans Solana for SIP announcements matching the provided viewing key.
|
|
31
67
|
* Scan for incoming shielded payments
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sipher — Privacy-as-a-Skill API
|
|
3
|
+
* REST API wrapping SIP Protocol\'s privacy SDK for Solana agents. Stealth addresses, Pedersen commitments, shielded transfers, and viewing key compliance.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: hello@sip-protocol.org
|
|
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
|
+
import type { ScanAssets200ResponseData } from './ScanAssets200ResponseData';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ScanAssets200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ScanAssets200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ScanAssets200Response
|
|
23
|
+
*/
|
|
24
|
+
success?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ScanAssets200ResponseData}
|
|
28
|
+
* @memberof ScanAssets200Response
|
|
29
|
+
*/
|
|
30
|
+
data?: ScanAssets200ResponseData;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ScanAssets200Response interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfScanAssets200Response(value: object): value is ScanAssets200Response;
|
|
36
|
+
export declare function ScanAssets200ResponseFromJSON(json: any): ScanAssets200Response;
|
|
37
|
+
export declare function ScanAssets200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScanAssets200Response;
|
|
38
|
+
export declare function ScanAssets200ResponseToJSON(json: any): ScanAssets200Response;
|
|
39
|
+
export declare function ScanAssets200ResponseToJSONTyped(value?: ScanAssets200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sipher — Privacy-as-a-Skill API
|
|
5
|
+
* REST API wrapping SIP Protocol\'s privacy SDK for Solana agents. Stealth addresses, Pedersen commitments, shielded transfers, and viewing key compliance.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: hello@sip-protocol.org
|
|
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
|
+
import { ScanAssets200ResponseDataFromJSON, ScanAssets200ResponseDataToJSON, } from './ScanAssets200ResponseData';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ScanAssets200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfScanAssets200Response(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function ScanAssets200ResponseFromJSON(json) {
|
|
22
|
+
return ScanAssets200ResponseFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function ScanAssets200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
30
|
+
'data': json['data'] == null ? undefined : ScanAssets200ResponseDataFromJSON(json['data']),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function ScanAssets200ResponseToJSON(json) {
|
|
34
|
+
return ScanAssets200ResponseToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function ScanAssets200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'success': value['success'],
|
|
42
|
+
'data': ScanAssets200ResponseDataToJSON(value['data']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sipher — Privacy-as-a-Skill API
|
|
3
|
+
* REST API wrapping SIP Protocol\'s privacy SDK for Solana agents. Stealth addresses, Pedersen commitments, shielded transfers, and viewing key compliance.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: hello@sip-protocol.org
|
|
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
|
+
import type { ScanAssets200ResponseDataAssetsInner } from './ScanAssets200ResponseDataAssetsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ScanAssets200ResponseData
|
|
17
|
+
*/
|
|
18
|
+
export interface ScanAssets200ResponseData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ScanAssets200ResponseDataAssetsInner>}
|
|
22
|
+
* @memberof ScanAssets200ResponseData
|
|
23
|
+
*/
|
|
24
|
+
assets?: Array<ScanAssets200ResponseDataAssetsInner>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ScanAssets200ResponseData
|
|
29
|
+
*/
|
|
30
|
+
total?: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ScanAssets200ResponseData
|
|
35
|
+
*/
|
|
36
|
+
page?: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ScanAssets200ResponseData
|
|
41
|
+
*/
|
|
42
|
+
limit?: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ScanAssets200ResponseData
|
|
47
|
+
*/
|
|
48
|
+
provider?: ScanAssets200ResponseDataProviderEnum;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const ScanAssets200ResponseDataProviderEnum: {
|
|
54
|
+
readonly HELIUS_DAS: "helius-das";
|
|
55
|
+
readonly SOLANA_RPC: "solana-rpc";
|
|
56
|
+
};
|
|
57
|
+
export type ScanAssets200ResponseDataProviderEnum = typeof ScanAssets200ResponseDataProviderEnum[keyof typeof ScanAssets200ResponseDataProviderEnum];
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the ScanAssets200ResponseData interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfScanAssets200ResponseData(value: object): value is ScanAssets200ResponseData;
|
|
62
|
+
export declare function ScanAssets200ResponseDataFromJSON(json: any): ScanAssets200ResponseData;
|
|
63
|
+
export declare function ScanAssets200ResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScanAssets200ResponseData;
|
|
64
|
+
export declare function ScanAssets200ResponseDataToJSON(json: any): ScanAssets200ResponseData;
|
|
65
|
+
export declare function ScanAssets200ResponseDataToJSONTyped(value?: ScanAssets200ResponseData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sipher — Privacy-as-a-Skill API
|
|
5
|
+
* REST API wrapping SIP Protocol\'s privacy SDK for Solana agents. Stealth addresses, Pedersen commitments, shielded transfers, and viewing key compliance.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: hello@sip-protocol.org
|
|
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
|
+
import { ScanAssets200ResponseDataAssetsInnerFromJSON, ScanAssets200ResponseDataAssetsInnerToJSON, } from './ScanAssets200ResponseDataAssetsInner';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ScanAssets200ResponseDataProviderEnum = {
|
|
19
|
+
HELIUS_DAS: 'helius-das',
|
|
20
|
+
SOLANA_RPC: 'solana-rpc'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ScanAssets200ResponseData interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfScanAssets200ResponseData(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function ScanAssets200ResponseDataFromJSON(json) {
|
|
29
|
+
return ScanAssets200ResponseDataFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function ScanAssets200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'assets': json['assets'] == null ? undefined : (json['assets'].map(ScanAssets200ResponseDataAssetsInnerFromJSON)),
|
|
37
|
+
'total': json['total'] == null ? undefined : json['total'],
|
|
38
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
39
|
+
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
40
|
+
'provider': json['provider'] == null ? undefined : json['provider'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function ScanAssets200ResponseDataToJSON(json) {
|
|
44
|
+
return ScanAssets200ResponseDataToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function ScanAssets200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'assets': value['assets'] == null ? undefined : (value['assets'].map(ScanAssets200ResponseDataAssetsInnerToJSON)),
|
|
52
|
+
'total': value['total'],
|
|
53
|
+
'page': value['page'],
|
|
54
|
+
'limit': value['limit'],
|
|
55
|
+
'provider': value['provider'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sipher — Privacy-as-a-Skill API
|
|
3
|
+
* REST API wrapping SIP Protocol\'s privacy SDK for Solana agents. Stealth addresses, Pedersen commitments, shielded transfers, and viewing key compliance.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: hello@sip-protocol.org
|
|
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 ScanAssets200ResponseDataAssetsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface ScanAssets200ResponseDataAssetsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ScanAssets200ResponseDataAssetsInner
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ScanAssets200ResponseDataAssetsInner
|
|
28
|
+
*/
|
|
29
|
+
_interface?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {object}
|
|
33
|
+
* @memberof ScanAssets200ResponseDataAssetsInner
|
|
34
|
+
*/
|
|
35
|
+
tokenInfo?: object;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {object}
|
|
39
|
+
* @memberof ScanAssets200ResponseDataAssetsInner
|
|
40
|
+
*/
|
|
41
|
+
ownership?: object;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ScanAssets200ResponseDataAssetsInner interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfScanAssets200ResponseDataAssetsInner(value: object): value is ScanAssets200ResponseDataAssetsInner;
|
|
47
|
+
export declare function ScanAssets200ResponseDataAssetsInnerFromJSON(json: any): ScanAssets200ResponseDataAssetsInner;
|
|
48
|
+
export declare function ScanAssets200ResponseDataAssetsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScanAssets200ResponseDataAssetsInner;
|
|
49
|
+
export declare function ScanAssets200ResponseDataAssetsInnerToJSON(json: any): ScanAssets200ResponseDataAssetsInner;
|
|
50
|
+
export declare function ScanAssets200ResponseDataAssetsInnerToJSONTyped(value?: ScanAssets200ResponseDataAssetsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sipher — Privacy-as-a-Skill API
|
|
5
|
+
* REST API wrapping SIP Protocol\'s privacy SDK for Solana agents. Stealth addresses, Pedersen commitments, shielded transfers, and viewing key compliance.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: hello@sip-protocol.org
|
|
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
|
+
* Check if a given object implements the ScanAssets200ResponseDataAssetsInner interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfScanAssets200ResponseDataAssetsInner(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ScanAssets200ResponseDataAssetsInnerFromJSON(json) {
|
|
21
|
+
return ScanAssets200ResponseDataAssetsInnerFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ScanAssets200ResponseDataAssetsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'_interface': json['interface'] == null ? undefined : json['interface'],
|
|
30
|
+
'tokenInfo': json['token_info'] == null ? undefined : json['token_info'],
|
|
31
|
+
'ownership': json['ownership'] == null ? undefined : json['ownership'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function ScanAssets200ResponseDataAssetsInnerToJSON(json) {
|
|
35
|
+
return ScanAssets200ResponseDataAssetsInnerToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ScanAssets200ResponseDataAssetsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': value['id'],
|
|
43
|
+
'interface': value['_interface'],
|
|
44
|
+
'token_info': value['tokenInfo'],
|
|
45
|
+
'ownership': value['ownership'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sipher — Privacy-as-a-Skill API
|
|
3
|
+
* REST API wrapping SIP Protocol\'s privacy SDK for Solana agents. Stealth addresses, Pedersen commitments, shielded transfers, and viewing key compliance.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: hello@sip-protocol.org
|
|
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
|
+
import type { ScanAssetsRequestDisplayOptions } from './ScanAssetsRequestDisplayOptions';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ScanAssetsRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface ScanAssetsRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Base58-encoded Solana public key
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ScanAssetsRequest
|
|
23
|
+
*/
|
|
24
|
+
address: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ScanAssetsRequestDisplayOptions}
|
|
28
|
+
* @memberof ScanAssetsRequest
|
|
29
|
+
*/
|
|
30
|
+
displayOptions?: ScanAssetsRequestDisplayOptions;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ScanAssetsRequest
|
|
35
|
+
*/
|
|
36
|
+
page?: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ScanAssetsRequest
|
|
41
|
+
*/
|
|
42
|
+
limit?: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ScanAssetsRequest interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfScanAssetsRequest(value: object): value is ScanAssetsRequest;
|
|
48
|
+
export declare function ScanAssetsRequestFromJSON(json: any): ScanAssetsRequest;
|
|
49
|
+
export declare function ScanAssetsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScanAssetsRequest;
|
|
50
|
+
export declare function ScanAssetsRequestToJSON(json: any): ScanAssetsRequest;
|
|
51
|
+
export declare function ScanAssetsRequestToJSONTyped(value?: ScanAssetsRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sipher — Privacy-as-a-Skill API
|
|
5
|
+
* REST API wrapping SIP Protocol\'s privacy SDK for Solana agents. Stealth addresses, Pedersen commitments, shielded transfers, and viewing key compliance.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: hello@sip-protocol.org
|
|
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
|
+
import { ScanAssetsRequestDisplayOptionsFromJSON, ScanAssetsRequestDisplayOptionsToJSON, } from './ScanAssetsRequestDisplayOptions';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ScanAssetsRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfScanAssetsRequest(value) {
|
|
19
|
+
if (!('address' in value) || value['address'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function ScanAssetsRequestFromJSON(json) {
|
|
24
|
+
return ScanAssetsRequestFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function ScanAssetsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'address': json['address'],
|
|
32
|
+
'displayOptions': json['displayOptions'] == null ? undefined : ScanAssetsRequestDisplayOptionsFromJSON(json['displayOptions']),
|
|
33
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
34
|
+
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function ScanAssetsRequestToJSON(json) {
|
|
38
|
+
return ScanAssetsRequestToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function ScanAssetsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'address': value['address'],
|
|
46
|
+
'displayOptions': ScanAssetsRequestDisplayOptionsToJSON(value['displayOptions']),
|
|
47
|
+
'page': value['page'],
|
|
48
|
+
'limit': value['limit'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sipher — Privacy-as-a-Skill API
|
|
3
|
+
* REST API wrapping SIP Protocol\'s privacy SDK for Solana agents. Stealth addresses, Pedersen commitments, shielded transfers, and viewing key compliance.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: hello@sip-protocol.org
|
|
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 ScanAssetsRequestDisplayOptions
|
|
16
|
+
*/
|
|
17
|
+
export interface ScanAssetsRequestDisplayOptions {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof ScanAssetsRequestDisplayOptions
|
|
22
|
+
*/
|
|
23
|
+
showFungible?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof ScanAssetsRequestDisplayOptions
|
|
28
|
+
*/
|
|
29
|
+
showNativeBalance?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ScanAssetsRequestDisplayOptions interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfScanAssetsRequestDisplayOptions(value: object): value is ScanAssetsRequestDisplayOptions;
|
|
35
|
+
export declare function ScanAssetsRequestDisplayOptionsFromJSON(json: any): ScanAssetsRequestDisplayOptions;
|
|
36
|
+
export declare function ScanAssetsRequestDisplayOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScanAssetsRequestDisplayOptions;
|
|
37
|
+
export declare function ScanAssetsRequestDisplayOptionsToJSON(json: any): ScanAssetsRequestDisplayOptions;
|
|
38
|
+
export declare function ScanAssetsRequestDisplayOptionsToJSONTyped(value?: ScanAssetsRequestDisplayOptions | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sipher — Privacy-as-a-Skill API
|
|
5
|
+
* REST API wrapping SIP Protocol\'s privacy SDK for Solana agents. Stealth addresses, Pedersen commitments, shielded transfers, and viewing key compliance.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: hello@sip-protocol.org
|
|
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
|
+
* Check if a given object implements the ScanAssetsRequestDisplayOptions interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfScanAssetsRequestDisplayOptions(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ScanAssetsRequestDisplayOptionsFromJSON(json) {
|
|
21
|
+
return ScanAssetsRequestDisplayOptionsFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ScanAssetsRequestDisplayOptionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'showFungible': json['showFungible'] == null ? undefined : json['showFungible'],
|
|
29
|
+
'showNativeBalance': json['showNativeBalance'] == null ? undefined : json['showNativeBalance'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function ScanAssetsRequestDisplayOptionsToJSON(json) {
|
|
33
|
+
return ScanAssetsRequestDisplayOptionsToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function ScanAssetsRequestDisplayOptionsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'showFungible': value['showFungible'],
|
|
41
|
+
'showNativeBalance': value['showNativeBalance'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -159,6 +159,11 @@ export * from './ProofsValidityGenerateRequest';
|
|
|
159
159
|
export * from './ProofsValidityVerifyRequest';
|
|
160
160
|
export * from './RevokeAdminKey200Response';
|
|
161
161
|
export * from './RevokeAdminKey200ResponseData';
|
|
162
|
+
export * from './ScanAssets200Response';
|
|
163
|
+
export * from './ScanAssets200ResponseData';
|
|
164
|
+
export * from './ScanAssets200ResponseDataAssetsInner';
|
|
165
|
+
export * from './ScanAssetsRequest';
|
|
166
|
+
export * from './ScanAssetsRequestDisplayOptions';
|
|
162
167
|
export * from './ScanPayments200Response';
|
|
163
168
|
export * from './ScanPayments200ResponseData';
|
|
164
169
|
export * from './ScanPayments200ResponseDataPaymentsInner';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -161,6 +161,11 @@ export * from './ProofsValidityGenerateRequest';
|
|
|
161
161
|
export * from './ProofsValidityVerifyRequest';
|
|
162
162
|
export * from './RevokeAdminKey200Response';
|
|
163
163
|
export * from './RevokeAdminKey200ResponseData';
|
|
164
|
+
export * from './ScanAssets200Response';
|
|
165
|
+
export * from './ScanAssets200ResponseData';
|
|
166
|
+
export * from './ScanAssets200ResponseDataAssetsInner';
|
|
167
|
+
export * from './ScanAssetsRequest';
|
|
168
|
+
export * from './ScanAssetsRequestDisplayOptions';
|
|
164
169
|
export * from './ScanPayments200Response';
|
|
165
170
|
export * from './ScanPayments200ResponseData';
|
|
166
171
|
export * from './ScanPayments200ResponseDataPaymentsInner';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sipher — Privacy-as-a-Skill API
|
|
3
|
+
* REST API wrapping SIP Protocol\'s privacy SDK for Solana agents. Stealth addresses, Pedersen commitments, shielded transfers, and viewing key compliance.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: hello@sip-protocol.org
|
|
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
|
+
import type { ScanAssets200ResponseData } from './ScanAssets200ResponseData';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ScanAssets200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ScanAssets200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ScanAssets200Response
|
|
23
|
+
*/
|
|
24
|
+
success?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ScanAssets200ResponseData}
|
|
28
|
+
* @memberof ScanAssets200Response
|
|
29
|
+
*/
|
|
30
|
+
data?: ScanAssets200ResponseData;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ScanAssets200Response interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfScanAssets200Response(value: object): value is ScanAssets200Response;
|
|
36
|
+
export declare function ScanAssets200ResponseFromJSON(json: any): ScanAssets200Response;
|
|
37
|
+
export declare function ScanAssets200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScanAssets200Response;
|
|
38
|
+
export declare function ScanAssets200ResponseToJSON(json: any): ScanAssets200Response;
|
|
39
|
+
export declare function ScanAssets200ResponseToJSONTyped(value?: ScanAssets200Response | null, ignoreDiscriminator?: boolean): any;
|