@talqing/sdk 0.13.0 → 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.
@@ -3598,6 +3598,16 @@ export type CreateTelephonyAccountRequest = {
3598
3598
  provider: 'plivo' | 'exotel' | 'vobiz' | 'twilio';
3599
3599
  };
3600
3600
 
3601
+ /**
3602
+ * CreateTokenRequest
3603
+ */
3604
+ export type CreateTokenRequest = {
3605
+ /**
3606
+ * Name
3607
+ */
3608
+ name: string;
3609
+ };
3610
+
3601
3611
  /**
3602
3612
  * CreateToolRequest
3603
3613
  */
@@ -8135,6 +8145,28 @@ export type PageTelephonyProviderSpec = {
8135
8145
  offset: number;
8136
8146
  };
8137
8147
 
8148
+ /**
8149
+ * Page[TokenResponse]
8150
+ */
8151
+ export type PageTokenResponse = {
8152
+ /**
8153
+ * Has More
8154
+ */
8155
+ has_more: boolean;
8156
+ /**
8157
+ * Items
8158
+ */
8159
+ items: Array<TokenResponse>;
8160
+ /**
8161
+ * Limit
8162
+ */
8163
+ limit: number;
8164
+ /**
8165
+ * Offset
8166
+ */
8167
+ offset: number;
8168
+ };
8169
+
8138
8170
  /**
8139
8171
  * Page[ToolResponse]
8140
8172
  */
@@ -12403,6 +12435,40 @@ export type TimeWindow = {
12403
12435
  start: string;
12404
12436
  };
12405
12437
 
12438
+ /**
12439
+ * TokenCreatedResponse
12440
+ */
12441
+ export type TokenCreatedResponse = {
12442
+ /**
12443
+ * Created At
12444
+ */
12445
+ created_at: string;
12446
+ /**
12447
+ * Id
12448
+ */
12449
+ id: string;
12450
+ /**
12451
+ * Kind
12452
+ */
12453
+ kind: 'manual' | 'mcp';
12454
+ /**
12455
+ * Name
12456
+ */
12457
+ name: string;
12458
+ /**
12459
+ * Token
12460
+ */
12461
+ token: string;
12462
+ /**
12463
+ * User Email
12464
+ */
12465
+ user_email: string;
12466
+ /**
12467
+ * User Id
12468
+ */
12469
+ user_id: string;
12470
+ };
12471
+
12406
12472
  /**
12407
12473
  * TokenRequest
12408
12474
  *
@@ -12468,6 +12534,36 @@ export type TokenRequest = {
12468
12534
  } | null;
12469
12535
  };
12470
12536
 
12537
+ /**
12538
+ * TokenResponse
12539
+ */
12540
+ export type TokenResponse = {
12541
+ /**
12542
+ * Created At
12543
+ */
12544
+ created_at: string;
12545
+ /**
12546
+ * Id
12547
+ */
12548
+ id: string;
12549
+ /**
12550
+ * Kind
12551
+ */
12552
+ kind: 'manual' | 'mcp';
12553
+ /**
12554
+ * Name
12555
+ */
12556
+ name: string;
12557
+ /**
12558
+ * User Email
12559
+ */
12560
+ user_email: string;
12561
+ /**
12562
+ * User Id
12563
+ */
12564
+ user_id: string;
12565
+ };
12566
+
12471
12567
  /**
12472
12568
  * ToolResponse
12473
12569
  */
@@ -16748,6 +16844,58 @@ export type ConversationsItemsCreateResults = {
16748
16844
 
16749
16845
  export type ConversationsItemsCreateResult = ConversationsItemsCreateResults[keyof ConversationsItemsCreateResults];
16750
16846
 
16847
+ export type ConversationsDeleteData = {
16848
+ body?: never;
16849
+ path: {
16850
+ /**
16851
+ * Conversation Id
16852
+ */
16853
+ conversation_id: string;
16854
+ };
16855
+ query?: never;
16856
+ url: '/v1/conversations/{conversation_id}';
16857
+ };
16858
+
16859
+ export type ConversationsDeleteErrors = {
16860
+ /**
16861
+ * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16862
+ */
16863
+ 400: ErrorResponse;
16864
+ /**
16865
+ * Missing credential, or one that is revoked or no longer a member of this organization.
16866
+ */
16867
+ 401: ErrorResponse;
16868
+ /**
16869
+ * Authenticated, but this organization role may not perform the operation.
16870
+ */
16871
+ 403: ErrorResponse;
16872
+ /**
16873
+ * No such resource in this organization.
16874
+ */
16875
+ 404: ErrorResponse;
16876
+ /**
16877
+ * The resource's current state forbids this — a name already taken, a job already running.
16878
+ */
16879
+ 409: ErrorResponse;
16880
+ /**
16881
+ * The request did not match this operation's schema; `detail.errors` lists each field.
16882
+ */
16883
+ 422: ErrorResponse;
16884
+ /**
16885
+ * Unexpected error. Every error this API returns carries this body.
16886
+ */
16887
+ default: ErrorResponse;
16888
+ };
16889
+
16890
+ export type ConversationsDeleteError = ConversationsDeleteErrors[keyof ConversationsDeleteErrors];
16891
+
16892
+ export type ConversationsDeleteResults = {
16893
+ /**
16894
+ * Erase scheduled. No body.
16895
+ */
16896
+ 202: unknown;
16897
+ };
16898
+
16751
16899
  export type ConversationsGetData = {
16752
16900
  body?: never;
16753
16901
  path: {
@@ -21717,6 +21865,139 @@ export type TelephonyProvidersListResults = {
21717
21865
 
21718
21866
  export type TelephonyProvidersListResult = TelephonyProvidersListResults[keyof TelephonyProvidersListResults];
21719
21867
 
21868
+ export type TokensListData = {
21869
+ body?: never;
21870
+ path?: never;
21871
+ query?: {
21872
+ /**
21873
+ * Limit
21874
+ */
21875
+ limit?: number;
21876
+ /**
21877
+ * Offset
21878
+ */
21879
+ offset?: number;
21880
+ };
21881
+ url: '/v1/tokens';
21882
+ };
21883
+
21884
+ export type TokensListErrors = {
21885
+ /**
21886
+ * Missing credential, or one that is revoked or no longer a member of this organization.
21887
+ */
21888
+ 401: ErrorResponse;
21889
+ /**
21890
+ * The request did not match this operation's schema; `detail.errors` lists each field.
21891
+ */
21892
+ 422: ErrorResponse;
21893
+ /**
21894
+ * Unexpected error. Every error this API returns carries this body.
21895
+ */
21896
+ default: ErrorResponse;
21897
+ };
21898
+
21899
+ export type TokensListError = TokensListErrors[keyof TokensListErrors];
21900
+
21901
+ export type TokensListResults = {
21902
+ /**
21903
+ * Successful Response
21904
+ */
21905
+ 200: PageTokenResponse;
21906
+ };
21907
+
21908
+ export type TokensListResult = TokensListResults[keyof TokensListResults];
21909
+
21910
+ export type TokensCreateData = {
21911
+ body: CreateTokenRequest;
21912
+ path?: never;
21913
+ query?: never;
21914
+ url: '/v1/tokens';
21915
+ };
21916
+
21917
+ export type TokensCreateErrors = {
21918
+ /**
21919
+ * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
21920
+ */
21921
+ 400: ErrorResponse;
21922
+ /**
21923
+ * Missing credential, or one that is revoked or no longer a member of this organization.
21924
+ */
21925
+ 401: ErrorResponse;
21926
+ /**
21927
+ * The resource's current state forbids this — a name already taken, a job already running.
21928
+ */
21929
+ 409: ErrorResponse;
21930
+ /**
21931
+ * The request did not match this operation's schema; `detail.errors` lists each field.
21932
+ */
21933
+ 422: ErrorResponse;
21934
+ /**
21935
+ * Unexpected error. Every error this API returns carries this body.
21936
+ */
21937
+ default: ErrorResponse;
21938
+ };
21939
+
21940
+ export type TokensCreateError = TokensCreateErrors[keyof TokensCreateErrors];
21941
+
21942
+ export type TokensCreateResults = {
21943
+ /**
21944
+ * Successful Response
21945
+ */
21946
+ 201: TokenCreatedResponse;
21947
+ };
21948
+
21949
+ export type TokensCreateResult = TokensCreateResults[keyof TokensCreateResults];
21950
+
21951
+ export type TokensDeleteData = {
21952
+ body?: never;
21953
+ path: {
21954
+ /**
21955
+ * Token Id
21956
+ */
21957
+ token_id: string;
21958
+ };
21959
+ query?: never;
21960
+ url: '/v1/tokens/{token_id}';
21961
+ };
21962
+
21963
+ export type TokensDeleteErrors = {
21964
+ /**
21965
+ * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
21966
+ */
21967
+ 400: ErrorResponse;
21968
+ /**
21969
+ * Missing credential, or one that is revoked or no longer a member of this organization.
21970
+ */
21971
+ 401: ErrorResponse;
21972
+ /**
21973
+ * No such resource in this organization.
21974
+ */
21975
+ 404: ErrorResponse;
21976
+ /**
21977
+ * The resource's current state forbids this — a name already taken, a job already running.
21978
+ */
21979
+ 409: ErrorResponse;
21980
+ /**
21981
+ * The request did not match this operation's schema; `detail.errors` lists each field.
21982
+ */
21983
+ 422: ErrorResponse;
21984
+ /**
21985
+ * Unexpected error. Every error this API returns carries this body.
21986
+ */
21987
+ default: ErrorResponse;
21988
+ };
21989
+
21990
+ export type TokensDeleteError = TokensDeleteErrors[keyof TokensDeleteErrors];
21991
+
21992
+ export type TokensDeleteResults = {
21993
+ /**
21994
+ * Successful Response
21995
+ */
21996
+ 200: OkResponse;
21997
+ };
21998
+
21999
+ export type TokensDeleteResult = TokensDeleteResults[keyof TokensDeleteResults];
22000
+
21720
22001
  export type ToolsListData = {
21721
22002
  body?: never;
21722
22003
  path?: never;