@talqing/sdk 0.13.1 → 0.13.2
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/cjs/gen/index.d.ts +1 -1
- package/dist/cjs/gen/index.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.d.ts +46 -1
- package/dist/cjs/gen/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.js +85 -1
- package/dist/cjs/gen/sdk.gen.js.map +1 -1
- package/dist/cjs/gen/types.gen.d.ts +210 -0
- package/dist/cjs/gen/types.gen.d.ts.map +1 -1
- package/dist/esm/gen/index.d.ts +1 -1
- package/dist/esm/gen/index.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.d.ts +46 -1
- package/dist/esm/gen/sdk.gen.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.js +83 -0
- package/dist/esm/gen/sdk.gen.js.map +1 -1
- package/dist/esm/gen/types.gen.d.ts +210 -0
- package/dist/esm/gen/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/gen/index.ts +1 -1
- package/src/gen/sdk.gen.ts +96 -1
- package/src/gen/types.gen.ts +229 -0
|
@@ -3495,6 +3495,15 @@ export type CreateTelephonyAccountRequest = {
|
|
|
3495
3495
|
*/
|
|
3496
3496
|
provider: 'plivo' | 'exotel' | 'vobiz' | 'twilio';
|
|
3497
3497
|
};
|
|
3498
|
+
/**
|
|
3499
|
+
* CreateTokenRequest
|
|
3500
|
+
*/
|
|
3501
|
+
export type CreateTokenRequest = {
|
|
3502
|
+
/**
|
|
3503
|
+
* Name
|
|
3504
|
+
*/
|
|
3505
|
+
name: string;
|
|
3506
|
+
};
|
|
3498
3507
|
/**
|
|
3499
3508
|
* CreateToolRequest
|
|
3500
3509
|
*/
|
|
@@ -7879,6 +7888,27 @@ export type PageTelephonyProviderSpec = {
|
|
|
7879
7888
|
*/
|
|
7880
7889
|
offset: number;
|
|
7881
7890
|
};
|
|
7891
|
+
/**
|
|
7892
|
+
* Page[TokenResponse]
|
|
7893
|
+
*/
|
|
7894
|
+
export type PageTokenResponse = {
|
|
7895
|
+
/**
|
|
7896
|
+
* Has More
|
|
7897
|
+
*/
|
|
7898
|
+
has_more: boolean;
|
|
7899
|
+
/**
|
|
7900
|
+
* Items
|
|
7901
|
+
*/
|
|
7902
|
+
items: Array<TokenResponse>;
|
|
7903
|
+
/**
|
|
7904
|
+
* Limit
|
|
7905
|
+
*/
|
|
7906
|
+
limit: number;
|
|
7907
|
+
/**
|
|
7908
|
+
* Offset
|
|
7909
|
+
*/
|
|
7910
|
+
offset: number;
|
|
7911
|
+
};
|
|
7882
7912
|
/**
|
|
7883
7913
|
* Page[ToolResponse]
|
|
7884
7914
|
*/
|
|
@@ -12012,6 +12042,39 @@ export type TimeWindow = {
|
|
|
12012
12042
|
*/
|
|
12013
12043
|
start: string;
|
|
12014
12044
|
};
|
|
12045
|
+
/**
|
|
12046
|
+
* TokenCreatedResponse
|
|
12047
|
+
*/
|
|
12048
|
+
export type TokenCreatedResponse = {
|
|
12049
|
+
/**
|
|
12050
|
+
* Created At
|
|
12051
|
+
*/
|
|
12052
|
+
created_at: string;
|
|
12053
|
+
/**
|
|
12054
|
+
* Id
|
|
12055
|
+
*/
|
|
12056
|
+
id: string;
|
|
12057
|
+
/**
|
|
12058
|
+
* Kind
|
|
12059
|
+
*/
|
|
12060
|
+
kind: 'manual' | 'mcp';
|
|
12061
|
+
/**
|
|
12062
|
+
* Name
|
|
12063
|
+
*/
|
|
12064
|
+
name: string;
|
|
12065
|
+
/**
|
|
12066
|
+
* Token
|
|
12067
|
+
*/
|
|
12068
|
+
token: string;
|
|
12069
|
+
/**
|
|
12070
|
+
* User Email
|
|
12071
|
+
*/
|
|
12072
|
+
user_email: string;
|
|
12073
|
+
/**
|
|
12074
|
+
* User Id
|
|
12075
|
+
*/
|
|
12076
|
+
user_id: string;
|
|
12077
|
+
};
|
|
12015
12078
|
/**
|
|
12016
12079
|
* TokenRequest
|
|
12017
12080
|
*
|
|
@@ -12076,6 +12139,35 @@ export type TokenRequest = {
|
|
|
12076
12139
|
[key: string]: string;
|
|
12077
12140
|
} | null;
|
|
12078
12141
|
};
|
|
12142
|
+
/**
|
|
12143
|
+
* TokenResponse
|
|
12144
|
+
*/
|
|
12145
|
+
export type TokenResponse = {
|
|
12146
|
+
/**
|
|
12147
|
+
* Created At
|
|
12148
|
+
*/
|
|
12149
|
+
created_at: string;
|
|
12150
|
+
/**
|
|
12151
|
+
* Id
|
|
12152
|
+
*/
|
|
12153
|
+
id: string;
|
|
12154
|
+
/**
|
|
12155
|
+
* Kind
|
|
12156
|
+
*/
|
|
12157
|
+
kind: 'manual' | 'mcp';
|
|
12158
|
+
/**
|
|
12159
|
+
* Name
|
|
12160
|
+
*/
|
|
12161
|
+
name: string;
|
|
12162
|
+
/**
|
|
12163
|
+
* User Email
|
|
12164
|
+
*/
|
|
12165
|
+
user_email: string;
|
|
12166
|
+
/**
|
|
12167
|
+
* User Id
|
|
12168
|
+
*/
|
|
12169
|
+
user_id: string;
|
|
12170
|
+
};
|
|
12079
12171
|
/**
|
|
12080
12172
|
* ToolResponse
|
|
12081
12173
|
*/
|
|
@@ -20539,6 +20631,124 @@ export type TelephonyProvidersListResults = {
|
|
|
20539
20631
|
200: PageTelephonyProviderSpec;
|
|
20540
20632
|
};
|
|
20541
20633
|
export type TelephonyProvidersListResult = TelephonyProvidersListResults[keyof TelephonyProvidersListResults];
|
|
20634
|
+
export type TokensListData = {
|
|
20635
|
+
body?: never;
|
|
20636
|
+
path?: never;
|
|
20637
|
+
query?: {
|
|
20638
|
+
/**
|
|
20639
|
+
* Limit
|
|
20640
|
+
*/
|
|
20641
|
+
limit?: number;
|
|
20642
|
+
/**
|
|
20643
|
+
* Offset
|
|
20644
|
+
*/
|
|
20645
|
+
offset?: number;
|
|
20646
|
+
};
|
|
20647
|
+
url: '/v1/tokens';
|
|
20648
|
+
};
|
|
20649
|
+
export type TokensListErrors = {
|
|
20650
|
+
/**
|
|
20651
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
20652
|
+
*/
|
|
20653
|
+
401: ErrorResponse;
|
|
20654
|
+
/**
|
|
20655
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
20656
|
+
*/
|
|
20657
|
+
422: ErrorResponse;
|
|
20658
|
+
/**
|
|
20659
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
20660
|
+
*/
|
|
20661
|
+
default: ErrorResponse;
|
|
20662
|
+
};
|
|
20663
|
+
export type TokensListError = TokensListErrors[keyof TokensListErrors];
|
|
20664
|
+
export type TokensListResults = {
|
|
20665
|
+
/**
|
|
20666
|
+
* Successful Response
|
|
20667
|
+
*/
|
|
20668
|
+
200: PageTokenResponse;
|
|
20669
|
+
};
|
|
20670
|
+
export type TokensListResult = TokensListResults[keyof TokensListResults];
|
|
20671
|
+
export type TokensCreateData = {
|
|
20672
|
+
body: CreateTokenRequest;
|
|
20673
|
+
path?: never;
|
|
20674
|
+
query?: never;
|
|
20675
|
+
url: '/v1/tokens';
|
|
20676
|
+
};
|
|
20677
|
+
export type TokensCreateErrors = {
|
|
20678
|
+
/**
|
|
20679
|
+
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
20680
|
+
*/
|
|
20681
|
+
400: ErrorResponse;
|
|
20682
|
+
/**
|
|
20683
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
20684
|
+
*/
|
|
20685
|
+
401: ErrorResponse;
|
|
20686
|
+
/**
|
|
20687
|
+
* The resource's current state forbids this — a name already taken, a job already running.
|
|
20688
|
+
*/
|
|
20689
|
+
409: ErrorResponse;
|
|
20690
|
+
/**
|
|
20691
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
20692
|
+
*/
|
|
20693
|
+
422: ErrorResponse;
|
|
20694
|
+
/**
|
|
20695
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
20696
|
+
*/
|
|
20697
|
+
default: ErrorResponse;
|
|
20698
|
+
};
|
|
20699
|
+
export type TokensCreateError = TokensCreateErrors[keyof TokensCreateErrors];
|
|
20700
|
+
export type TokensCreateResults = {
|
|
20701
|
+
/**
|
|
20702
|
+
* Successful Response
|
|
20703
|
+
*/
|
|
20704
|
+
201: TokenCreatedResponse;
|
|
20705
|
+
};
|
|
20706
|
+
export type TokensCreateResult = TokensCreateResults[keyof TokensCreateResults];
|
|
20707
|
+
export type TokensDeleteData = {
|
|
20708
|
+
body?: never;
|
|
20709
|
+
path: {
|
|
20710
|
+
/**
|
|
20711
|
+
* Token Id
|
|
20712
|
+
*/
|
|
20713
|
+
token_id: string;
|
|
20714
|
+
};
|
|
20715
|
+
query?: never;
|
|
20716
|
+
url: '/v1/tokens/{token_id}';
|
|
20717
|
+
};
|
|
20718
|
+
export type TokensDeleteErrors = {
|
|
20719
|
+
/**
|
|
20720
|
+
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
20721
|
+
*/
|
|
20722
|
+
400: ErrorResponse;
|
|
20723
|
+
/**
|
|
20724
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
20725
|
+
*/
|
|
20726
|
+
401: ErrorResponse;
|
|
20727
|
+
/**
|
|
20728
|
+
* No such resource in this organization.
|
|
20729
|
+
*/
|
|
20730
|
+
404: ErrorResponse;
|
|
20731
|
+
/**
|
|
20732
|
+
* The resource's current state forbids this — a name already taken, a job already running.
|
|
20733
|
+
*/
|
|
20734
|
+
409: ErrorResponse;
|
|
20735
|
+
/**
|
|
20736
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
20737
|
+
*/
|
|
20738
|
+
422: ErrorResponse;
|
|
20739
|
+
/**
|
|
20740
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
20741
|
+
*/
|
|
20742
|
+
default: ErrorResponse;
|
|
20743
|
+
};
|
|
20744
|
+
export type TokensDeleteError = TokensDeleteErrors[keyof TokensDeleteErrors];
|
|
20745
|
+
export type TokensDeleteResults = {
|
|
20746
|
+
/**
|
|
20747
|
+
* Successful Response
|
|
20748
|
+
*/
|
|
20749
|
+
200: OkResponse;
|
|
20750
|
+
};
|
|
20751
|
+
export type TokensDeleteResult = TokensDeleteResults[keyof TokensDeleteResults];
|
|
20542
20752
|
export type ToolsListData = {
|
|
20543
20753
|
body?: never;
|
|
20544
20754
|
path?: never;
|