@talqing/sdk 0.2.0 → 0.3.0

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.
Files changed (44) hide show
  1. package/README.md +66 -5
  2. package/dist/cjs/browser.d.ts +5 -0
  3. package/dist/cjs/browser.d.ts.map +1 -1
  4. package/dist/cjs/browser.js +30 -28
  5. package/dist/cjs/browser.js.map +1 -1
  6. package/dist/cjs/client.d.ts +0 -2
  7. package/dist/cjs/client.d.ts.map +1 -1
  8. package/dist/cjs/client.js +0 -3
  9. package/dist/cjs/client.js.map +1 -1
  10. package/dist/cjs/gen/index.d.ts +1 -1
  11. package/dist/cjs/gen/index.d.ts.map +1 -1
  12. package/dist/cjs/gen/sdk.gen.d.ts +50 -219
  13. package/dist/cjs/gen/sdk.gen.d.ts.map +1 -1
  14. package/dist/cjs/gen/sdk.gen.js +78 -418
  15. package/dist/cjs/gen/sdk.gen.js.map +1 -1
  16. package/dist/cjs/gen/types.gen.d.ts +293 -1013
  17. package/dist/cjs/gen/types.gen.d.ts.map +1 -1
  18. package/dist/cjs/vocabulary.d.ts +1 -4
  19. package/dist/cjs/vocabulary.d.ts.map +1 -1
  20. package/dist/esm/browser.d.ts +5 -0
  21. package/dist/esm/browser.d.ts.map +1 -1
  22. package/dist/esm/browser.js +30 -28
  23. package/dist/esm/browser.js.map +1 -1
  24. package/dist/esm/client.d.ts +0 -2
  25. package/dist/esm/client.d.ts.map +1 -1
  26. package/dist/esm/client.js +0 -3
  27. package/dist/esm/client.js.map +1 -1
  28. package/dist/esm/gen/index.d.ts +1 -1
  29. package/dist/esm/gen/index.d.ts.map +1 -1
  30. package/dist/esm/gen/sdk.gen.d.ts +50 -219
  31. package/dist/esm/gen/sdk.gen.d.ts.map +1 -1
  32. package/dist/esm/gen/sdk.gen.js +75 -412
  33. package/dist/esm/gen/sdk.gen.js.map +1 -1
  34. package/dist/esm/gen/types.gen.d.ts +293 -1013
  35. package/dist/esm/gen/types.gen.d.ts.map +1 -1
  36. package/dist/esm/vocabulary.d.ts +1 -4
  37. package/dist/esm/vocabulary.d.ts.map +1 -1
  38. package/package.json +5 -5
  39. package/src/browser.tsx +31 -28
  40. package/src/client.ts +0 -6
  41. package/src/gen/index.ts +1 -1
  42. package/src/gen/sdk.gen.ts +88 -469
  43. package/src/gen/types.gen.ts +317 -1119
  44. package/src/vocabulary.ts +0 -5
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // This file is auto-generated by @hey-api/openapi-ts
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.TalqingApi = exports.Webhooks = exports.Tools2 = exports.Versions2 = exports.Telephony = exports.Providers = exports.PhoneNumbers = exports.Accounts = exports.Tasks2 = exports.Runs = exports.Secrets = exports.Schemas = exports.Orgs = exports.Members = exports.Invites = exports.Observability = exports.Tokens = exports.Knowledge2 = exports.Pages = exports.Nodes = exports.Integrations = exports.Triggers = exports.McpTools = exports.Email = exports.Senders = exports.Batches2 = exports.Recipients2 = exports.Copilot = exports.Tools = exports.Tasks = exports.Knowledge = exports.Agents2 = exports.Conversations = exports.Sessions = exports.Items = exports.Messages = exports.Catalog = exports.Voices = exports.Elevenlabs = exports.Avatars = exports.Calls = exports.ScreenRecording = exports.Recording = exports.Batches = exports.Recipients = exports.Analysis = exports.ProviderKeys = exports.Auth = exports.Agents = exports.Versions = void 0;
4
+ exports.TalqingApi = exports.Webhooks = exports.Tools2 = exports.Versions2 = exports.Telephony = exports.Providers = exports.PhoneNumbers = exports.Accounts = exports.Tasks2 = exports.Runs = exports.Secrets = exports.Schemas = exports.Observability = exports.Knowledge2 = exports.Pages = exports.Nodes = exports.Integrations = exports.Triggers = exports.McpTools = exports.Email = exports.Senders = exports.Batches2 = exports.Recipients2 = exports.Copilot = exports.Tools = exports.Tasks = exports.Knowledge = exports.Agents2 = exports.Conversations = exports.Sessions = exports.Items = exports.Messages = exports.Catalog = exports.Voices = exports.Elevenlabs = exports.Avatars = exports.Calls = exports.ScreenRecording = exports.Recording = exports.Batches = exports.Recipients = exports.Analysis = exports.ProviderKeys = exports.Billing = exports.Credits = exports.Agents = exports.Versions = void 0;
5
5
  const client_gen_js_1 = require("./client.gen.js");
6
6
  const index_js_1 = require("./client/index.js");
7
7
  class HeyApiClient {
@@ -256,28 +256,78 @@ class Agents extends HeyApiClient {
256
256
  }
257
257
  }
258
258
  exports.Agents = Agents;
259
- class Auth extends HeyApiClient {
259
+ class Credits extends HeyApiClient {
260
260
  /**
261
- * Logout
261
+ * Get Credits
262
+ *
263
+ * This workspace's credit balance in this region, what it buys, and what a
264
+ * top-up costs.
265
+ *
266
+ * Readable by every role: a VIEWER can start a web call, so a VIEWER must be
267
+ * able to see why one was refused.
268
+ *
269
+ * This is also where credit the control plane could not deliver lands. Anything
270
+ * it has issued for this workspace here — a purchase, a signup grant, a
271
+ * reversal — that this region has not written yet is applied before the balance
272
+ * is read. That is the backstop for a failed push, and it is a reconcile on
273
+ * demand rather than a timer: the moment someone cares is the moment this page
274
+ * loads, whether they arrived from the payment processor or from the "out of
275
+ * credits" banner. It costs nothing when there is nothing to apply, which is
276
+ * almost always.
262
277
  */
263
- logout(options) {
264
- return (options?.client ?? this.client).post({
278
+ get(parameters, options) {
279
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'query', key: 'topup' }] }]);
280
+ return (options?.client ?? this.client).get({
265
281
  responseStyle: 'data',
266
- url: '/v1/auth/logout',
267
- ...options
282
+ security: [{ scheme: 'bearer', type: 'http' }, {
283
+ in: 'cookie',
284
+ name: 'talqing_session',
285
+ type: 'apiKey'
286
+ }],
287
+ url: '/v1/billing/credits',
288
+ ...options,
289
+ ...params
268
290
  });
269
291
  }
270
292
  /**
271
- * Me
293
+ * Create Credit Checkout
294
+ *
295
+ * Start a credit purchase and return the hosted checkout URL to open.
272
296
  *
273
- * Who this credential is: the signed-in user, their role, and the organization.
297
+ * Organization admins only spending the workspace's money is an admin act,
298
+ * the same as storing a secret or a provider key.
274
299
  *
275
- * Everything else you can reach is scoped to that organization, and `role`
276
- * (`ADMIN`, `EDITOR` or `VIEWER`) decides whether writes will be accepted. A
277
- * user may belong to several organizations with a different role in each; this
278
- * reports the one this credential is for.
300
+ * The credit lands in THIS region, and that is decided by which region's API
301
+ * you called rather than by anything in the request. A slug in a body could be
302
+ * pointed at the other region, where the money would then be stuck: balances
303
+ * are per region and there is no transfer between them.
279
304
  */
280
- me(options) {
305
+ checkout(parameters, options) {
306
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ key: 'creditCheckoutRequest', map: 'body' }] }]);
307
+ return (options?.client ?? this.client).post({
308
+ responseStyle: 'data',
309
+ security: [{ scheme: 'bearer', type: 'http' }, {
310
+ in: 'cookie',
311
+ name: 'talqing_session',
312
+ type: 'apiKey'
313
+ }],
314
+ url: '/v1/billing/credits/checkout',
315
+ ...options,
316
+ ...params,
317
+ headers: {
318
+ 'Content-Type': 'application/json',
319
+ ...options?.headers,
320
+ ...params.headers
321
+ }
322
+ });
323
+ }
324
+ /**
325
+ * List Credit Ledger
326
+ *
327
+ * Every movement of this region's balance, newest first, with what caused each.
328
+ */
329
+ ledger(parameters, options) {
330
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
281
331
  return (options?.client ?? this.client).get({
282
332
  responseStyle: 'data',
283
333
  security: [{ scheme: 'bearer', type: 'http' }, {
@@ -285,12 +335,19 @@ class Auth extends HeyApiClient {
285
335
  name: 'talqing_session',
286
336
  type: 'apiKey'
287
337
  }],
288
- url: '/v1/auth/me',
289
- ...options
338
+ url: '/v1/billing/credits/ledger',
339
+ ...options,
340
+ ...params
290
341
  });
291
342
  }
292
343
  }
293
- exports.Auth = Auth;
344
+ exports.Credits = Credits;
345
+ class Billing extends HeyApiClient {
346
+ get credits() {
347
+ return this._credits ?? (this._credits = new Credits({ client: this.client }));
348
+ }
349
+ }
350
+ exports.Billing = Billing;
294
351
  class ProviderKeys extends HeyApiClient {
295
352
  /**
296
353
  * List Provider Keys
@@ -2690,114 +2747,6 @@ class Knowledge2 extends HeyApiClient {
2690
2747
  }
2691
2748
  }
2692
2749
  exports.Knowledge2 = Knowledge2;
2693
- class Tokens extends HeyApiClient {
2694
- /**
2695
- * Mcp Token
2696
- *
2697
- * This user's MCP token, in plaintext, with the API URL to pair it with.
2698
- *
2699
- * Unlike a token created by hand, this one can be read whenever it is needed:
2700
- * the dashboard renders it into ready-to-paste MCP configuration for Claude
2701
- * Code, Codex and Grok. The value is re-derived from the token's row, not
2702
- * stored, and is the same string every time — so a configuration a user
2703
- * already saved keeps working.
2704
- *
2705
- * It is always the caller's own token, never anyone else's, and is created on
2706
- * the spot for a user who somehow has none. Delete it from the tokens list to
2707
- * revoke it; the next call issues a new one, which rotates the credential.
2708
- */
2709
- mcp(options) {
2710
- return (options?.client ?? this.client).get({
2711
- responseStyle: 'data',
2712
- security: [{ scheme: 'bearer', type: 'http' }, {
2713
- in: 'cookie',
2714
- name: 'talqing_session',
2715
- type: 'apiKey'
2716
- }],
2717
- url: '/v1/mcp-token',
2718
- ...options
2719
- });
2720
- }
2721
- /**
2722
- * List Tokens
2723
- *
2724
- * List personal access tokens: your own, or every one in the organization
2725
- * if you are an admin.
2726
- *
2727
- * Who holds which credential is organization-admin information, so an EDITOR
2728
- * or VIEWER sees only what they created. Plaintext token values are never
2729
- * returned. A token with `kind: mcp` was issued automatically for the
2730
- * dashboard's MCP setup; the rest were created by hand.
2731
- */
2732
- list(parameters, options) {
2733
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
2734
- return (options?.client ?? this.client).get({
2735
- responseStyle: 'data',
2736
- security: [{ scheme: 'bearer', type: 'http' }, {
2737
- in: 'cookie',
2738
- name: 'talqing_session',
2739
- type: 'apiKey'
2740
- }],
2741
- url: '/v1/tokens',
2742
- ...options,
2743
- ...params
2744
- });
2745
- }
2746
- /**
2747
- * Create Token
2748
- *
2749
- * Create a personal access token for driving this API without the dashboard.
2750
- *
2751
- * The token authenticates as its creator and acts with that user's live role,
2752
- * so it can never do more than they can. It does not expire; deleting it is
2753
- * the revocation. The plaintext value is returned once here and never again —
2754
- * treat it like a password and do not echo it back into a conversation.
2755
- */
2756
- create(parameters, options) {
2757
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ key: 'createTokenRequest', map: 'body' }] }]);
2758
- return (options?.client ?? this.client).post({
2759
- responseStyle: 'data',
2760
- security: [{ scheme: 'bearer', type: 'http' }, {
2761
- in: 'cookie',
2762
- name: 'talqing_session',
2763
- type: 'apiKey'
2764
- }],
2765
- url: '/v1/tokens',
2766
- ...options,
2767
- ...params,
2768
- headers: {
2769
- 'Content-Type': 'application/json',
2770
- ...options?.headers,
2771
- ...params.headers
2772
- }
2773
- });
2774
- }
2775
- /**
2776
- * Delete Token
2777
- *
2778
- * Revoke a token immediately and permanently.
2779
- *
2780
- * Owners can delete their own; organization admins can delete any in the
2781
- * organization. Deleting an `mcp` token rotates it: the owner's next dashboard
2782
- * visit issues a replacement, and anything still configured with the old one
2783
- * stops working.
2784
- */
2785
- delete(parameters, options) {
2786
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'token_id' }] }]);
2787
- return (options?.client ?? this.client).delete({
2788
- responseStyle: 'data',
2789
- security: [{ scheme: 'bearer', type: 'http' }, {
2790
- in: 'cookie',
2791
- name: 'talqing_session',
2792
- type: 'apiKey'
2793
- }],
2794
- url: '/v1/tokens/{token_id}',
2795
- ...options,
2796
- ...params
2797
- });
2798
- }
2799
- }
2800
- exports.Tokens = Tokens;
2801
2750
  class Observability extends HeyApiClient {
2802
2751
  /**
2803
2752
  * Get Observability
@@ -2840,289 +2789,6 @@ class Observability extends HeyApiClient {
2840
2789
  }
2841
2790
  }
2842
2791
  exports.Observability = Observability;
2843
- class Invites extends HeyApiClient {
2844
- /**
2845
- * List Invites
2846
- *
2847
- * Invites waiting on a first login. Accepted and revoked ones drop off the
2848
- * list — an accepted invite is a member, and belongs on the roster instead.
2849
- */
2850
- list(parameters, options) {
2851
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
2852
- return (options?.client ?? this.client).get({
2853
- responseStyle: 'data',
2854
- security: [{ scheme: 'bearer', type: 'http' }, {
2855
- in: 'cookie',
2856
- name: 'talqing_session',
2857
- type: 'apiKey'
2858
- }],
2859
- url: '/v1/org/invites',
2860
- ...options,
2861
- ...params
2862
- });
2863
- }
2864
- /**
2865
- * Create Invite
2866
- *
2867
- * Invite an email address into this organization with a role.
2868
- *
2869
- * There is no invite link and no accept step: the invite is keyed to a Google
2870
- * identity, so signing in with that address *is* the check. Someone who
2871
- * already has an account joins immediately; anyone else joins the first time
2872
- * they sign in.
2873
- *
2874
- * No email is sent at MVP, so an existing user finds out by seeing the
2875
- * organization appear in their switcher — tell them yourself.
2876
- */
2877
- create(parameters, options) {
2878
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ key: 'inviteRequest', map: 'body' }] }]);
2879
- return (options?.client ?? this.client).post({
2880
- responseStyle: 'data',
2881
- security: [{ scheme: 'bearer', type: 'http' }, {
2882
- in: 'cookie',
2883
- name: 'talqing_session',
2884
- type: 'apiKey'
2885
- }],
2886
- url: '/v1/org/invites',
2887
- ...options,
2888
- ...params,
2889
- headers: {
2890
- 'Content-Type': 'application/json',
2891
- ...options?.headers,
2892
- ...params.headers
2893
- }
2894
- });
2895
- }
2896
- /**
2897
- * Revoke Invite
2898
- *
2899
- * Withdraw a pending invite, so signing in with that address no longer
2900
- * joins this organization.
2901
- */
2902
- revoke(parameters, options) {
2903
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'invite_id' }] }]);
2904
- return (options?.client ?? this.client).delete({
2905
- responseStyle: 'data',
2906
- security: [{ scheme: 'bearer', type: 'http' }, {
2907
- in: 'cookie',
2908
- name: 'talqing_session',
2909
- type: 'apiKey'
2910
- }],
2911
- url: '/v1/org/invites/{invite_id}',
2912
- ...options,
2913
- ...params
2914
- });
2915
- }
2916
- }
2917
- exports.Invites = Invites;
2918
- class Members extends HeyApiClient {
2919
- /**
2920
- * List Members
2921
- *
2922
- * Every member sees the roster; only an ADMIN can change it.
2923
- */
2924
- list(parameters, options) {
2925
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
2926
- return (options?.client ?? this.client).get({
2927
- responseStyle: 'data',
2928
- security: [{ scheme: 'bearer', type: 'http' }, {
2929
- in: 'cookie',
2930
- name: 'talqing_session',
2931
- type: 'apiKey'
2932
- }],
2933
- url: '/v1/org/members',
2934
- ...options,
2935
- ...params
2936
- });
2937
- }
2938
- /**
2939
- * Remove Member
2940
- *
2941
- * Remove someone from this organization.
2942
- *
2943
- * They lose access on their next request, and their access tokens for this
2944
- * organization stop working with them. Nothing they created is deleted.
2945
- *
2946
- * Allowed even when this is the only organization they belong to — whether
2947
- * they have somewhere else to go is not this organization's problem, and their
2948
- * next sign-in gives them one of their own.
2949
- */
2950
- remove(parameters, options) {
2951
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'user_id' }] }]);
2952
- return (options?.client ?? this.client).delete({
2953
- responseStyle: 'data',
2954
- security: [{ scheme: 'bearer', type: 'http' }, {
2955
- in: 'cookie',
2956
- name: 'talqing_session',
2957
- type: 'apiKey'
2958
- }],
2959
- url: '/v1/org/members/{user_id}',
2960
- ...options,
2961
- ...params
2962
- });
2963
- }
2964
- /**
2965
- * Set Member Role
2966
- *
2967
- * Change a member's role. Takes effect on their very next request.
2968
- */
2969
- setRole(parameters, options) {
2970
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'user_id' }, { key: 'roleRequest', map: 'body' }] }]);
2971
- return (options?.client ?? this.client).patch({
2972
- responseStyle: 'data',
2973
- security: [{ scheme: 'bearer', type: 'http' }, {
2974
- in: 'cookie',
2975
- name: 'talqing_session',
2976
- type: 'apiKey'
2977
- }],
2978
- url: '/v1/org/members/{user_id}',
2979
- ...options,
2980
- ...params,
2981
- headers: {
2982
- 'Content-Type': 'application/json',
2983
- ...options?.headers,
2984
- ...params.headers
2985
- }
2986
- });
2987
- }
2988
- }
2989
- exports.Members = Members;
2990
- class Orgs extends HeyApiClient {
2991
- /**
2992
- * Patch Org
2993
- *
2994
- * Change this organization's name or its data retention policy.
2995
- *
2996
- * The name is display only — nothing keys on it.
2997
- *
2998
- * `retention_days` is how long call and conversation *content* is kept:
2999
- * recordings, transcripts, summaries, extracted fields and the phone numbers
3000
- * on a call. When it passes, all of that is deleted and the call itself
3001
- * remains, with its duration, outcome and cost, so past invoices still
3002
- * resolve. `null` keeps everything forever, which is the default.
3003
- *
3004
- * It applies to calls from now on: a call already in the system keeps the
3005
- * deadline it was given when it ended, so shortening the policy never
3006
- * retroactively destroys anything. Erasing a contact's last call also resets
3007
- * what your agents remember about that person.
3008
- */
3009
- update(parameters, options) {
3010
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ key: 'patchOrgRequest', map: 'body' }] }]);
3011
- return (options?.client ?? this.client).patch({
3012
- responseStyle: 'data',
3013
- security: [{ scheme: 'bearer', type: 'http' }, {
3014
- in: 'cookie',
3015
- name: 'talqing_session',
3016
- type: 'apiKey'
3017
- }],
3018
- url: '/v1/org',
3019
- ...options,
3020
- ...params,
3021
- headers: {
3022
- 'Content-Type': 'application/json',
3023
- ...options?.headers,
3024
- ...params.headers
3025
- }
3026
- });
3027
- }
3028
- /**
3029
- * Leave Org
3030
- *
3031
- * Leave this organization. Any member may, including an admin who has
3032
- * promoted a successor. Nothing they created is deleted.
3033
- */
3034
- leave(options) {
3035
- return (options?.client ?? this.client).post({
3036
- responseStyle: 'data',
3037
- security: [{ scheme: 'bearer', type: 'http' }, {
3038
- in: 'cookie',
3039
- name: 'talqing_session',
3040
- type: 'apiKey'
3041
- }],
3042
- url: '/v1/org/leave',
3043
- ...options
3044
- });
3045
- }
3046
- /**
3047
- * List Orgs
3048
- *
3049
- * Every organization the signed-in user belongs to, with their role in each.
3050
- *
3051
- * Newest membership first, deliberately: an admin can add you to their
3052
- * organization without you being asked or emailed, so the one you did not know
3053
- * about is the one that needs to be visible.
3054
- */
3055
- list(parameters, options) {
3056
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
3057
- return (options?.client ?? this.client).get({
3058
- responseStyle: 'data',
3059
- security: [{ scheme: 'bearer', type: 'http' }, {
3060
- in: 'cookie',
3061
- name: 'talqing_session',
3062
- type: 'apiKey'
3063
- }],
3064
- url: '/v1/orgs',
3065
- ...options,
3066
- ...params
3067
- });
3068
- }
3069
- /**
3070
- * Create Org
3071
- *
3072
- * Create a new, empty organization with the caller as its ADMIN.
3073
- *
3074
- * Any member can do this — it grants nothing in the organization they are
3075
- * currently in. Switch into it to start working there.
3076
- */
3077
- create(parameters, options) {
3078
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ key: 'orgNameRequest', map: 'body' }] }]);
3079
- return (options?.client ?? this.client).post({
3080
- responseStyle: 'data',
3081
- security: [{ scheme: 'bearer', type: 'http' }, {
3082
- in: 'cookie',
3083
- name: 'talqing_session',
3084
- type: 'apiKey'
3085
- }],
3086
- url: '/v1/orgs',
3087
- ...options,
3088
- ...params,
3089
- headers: {
3090
- 'Content-Type': 'application/json',
3091
- ...options?.headers,
3092
- ...params.headers
3093
- }
3094
- });
3095
- }
3096
- /**
3097
- * Switch Org
3098
- *
3099
- * Point the dashboard session at another of the caller's organizations.
3100
- *
3101
- * The session cookie carries the organization, so switching re-issues it — the
3102
- * caller's role, resources and billing all move with it. Reload after this.
3103
- */
3104
- switch(parameters, options) {
3105
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'org_id' }] }]);
3106
- return (options?.client ?? this.client).post({
3107
- responseStyle: 'data',
3108
- security: [{ scheme: 'bearer', type: 'http' }, {
3109
- in: 'cookie',
3110
- name: 'talqing_session',
3111
- type: 'apiKey'
3112
- }],
3113
- url: '/v1/orgs/{org_id}/switch',
3114
- ...options,
3115
- ...params
3116
- });
3117
- }
3118
- get invites() {
3119
- return this._invites ?? (this._invites = new Invites({ client: this.client }));
3120
- }
3121
- get members() {
3122
- return this._members ?? (this._members = new Members({ client: this.client }));
3123
- }
3124
- }
3125
- exports.Orgs = Orgs;
3126
2792
  class Schemas extends HeyApiClient {
3127
2793
  /**
3128
2794
  * Describe Schema
@@ -4300,8 +3966,8 @@ class TalqingApi extends HeyApiClient {
4300
3966
  *
4301
3967
  * Liveness probe: `200` once this process is serving. Unauthenticated.
4302
3968
  *
4303
- * It answers for the API process, not its dependencies — a `200` here does not
4304
- * promise Postgres, Redis or LiveKit are reachable.
3969
+ * It answers for the API process, not its dependencies — a `200` here does
3970
+ * not promise Postgres, Redis or LiveKit are reachable.
4305
3971
  */
4306
3972
  health(options) {
4307
3973
  return (options?.client ?? this.client).get({
@@ -4313,8 +3979,8 @@ class TalqingApi extends HeyApiClient {
4313
3979
  get agents() {
4314
3980
  return this._agents ?? (this._agents = new Agents({ client: this.client }));
4315
3981
  }
4316
- get auth() {
4317
- return this._auth ?? (this._auth = new Auth({ client: this.client }));
3982
+ get billing() {
3983
+ return this._billing ?? (this._billing = new Billing({ client: this.client }));
4318
3984
  }
4319
3985
  get providerKeys() {
4320
3986
  return this._providerKeys ?? (this._providerKeys = new ProviderKeys({ client: this.client }));
@@ -4340,15 +4006,9 @@ class TalqingApi extends HeyApiClient {
4340
4006
  get knowledge() {
4341
4007
  return this._knowledge ?? (this._knowledge = new Knowledge2({ client: this.client }));
4342
4008
  }
4343
- get tokens() {
4344
- return this._tokens ?? (this._tokens = new Tokens({ client: this.client }));
4345
- }
4346
4009
  get observability() {
4347
4010
  return this._observability ?? (this._observability = new Observability({ client: this.client }));
4348
4011
  }
4349
- get orgs() {
4350
- return this._orgs ?? (this._orgs = new Orgs({ client: this.client }));
4351
- }
4352
4012
  get schemas() {
4353
4013
  return this._schemas ?? (this._schemas = new Schemas({ client: this.client }));
4354
4014
  }