Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Bump patch version and update generated files #86

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ton-api/client",
"version": "0.2.0",
"version": "0.2.1",
"description": "Autogenerated SDK for tonapi.io",
"keywords": [
"TON",
Expand Down
10 changes: 9 additions & 1 deletion packages/client/src/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5497,7 +5497,6 @@ components:
enum:
- getgems
- tonkeeper
- ton.diamonds
TrustType:
type: string
example: whitelist
Expand Down Expand Up @@ -6761,6 +6760,15 @@ components:
type: array
items:
$ref: '#/components/schemas/DecodedRawMessage'
wallet_v5:
type: object
required:
- raw_messages
properties:
raw_messages:
type: array
items:
$ref: '#/components/schemas/DecodedRawMessage'
wallet_highload_v2:
type: object
required:
Expand Down
19 changes: 16 additions & 3 deletions packages/client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@ export interface ImagePreview {
url: string;
}

export type NftApprovedBy = ('getgems' | 'tonkeeper' | 'ton.diamonds')[];
export type NftApprovedBy = ('getgems' | 'tonkeeper')[];

/** @example "whitelist" */
export enum TrustType {
Expand Down Expand Up @@ -2288,6 +2288,9 @@ export interface DecodedMessage {
op: number;
rawMessages: DecodedRawMessage[];
};
walletV5?: {
rawMessages: DecodedRawMessage[];
};
walletHighloadV2?: {
/**
* @format int64
Expand Down Expand Up @@ -2815,7 +2818,7 @@ class HttpClient {
const headers = {
...(baseApiParams.headers ?? {}),
...(apiKey ? { Authorization: `Bearer ${apiKey}` } : {}),
'x-tonapi-client': `tonapi-js@0.2.0`
'x-tonapi-client': `tonapi-js@0.1.0-beta.0`
};

const preparedApiConfig = {
Expand Down Expand Up @@ -4135,7 +4138,7 @@ const components = {
},
'#/components/schemas/NftApprovedBy': {
type: 'array',
items: { type: 'string', enum: ['getgems', 'tonkeeper', 'ton.diamonds'] }
items: { type: 'string', enum: ['getgems', 'tonkeeper'] }
},
'#/components/schemas/TrustType': {
type: 'string',
Expand Down Expand Up @@ -4782,6 +4785,16 @@ const components = {
}
}
},
wallet_v5: {
type: 'object',
required: ['raw_messages'],
properties: {
raw_messages: {
type: 'array',
items: { $ref: '#/components/schemas/DecodedRawMessage' }
}
}
},
wallet_highload_v2: {
type: 'object',
required: ['subwallet_id', 'bounded_query_id', 'raw_messages'],
Expand Down