@alva-ai/toolkit 0.11.0 → 0.11.2-beta.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.
package/dist/index.cjs CHANGED
@@ -2204,6 +2204,20 @@ function idLiteral(value) {
2204
2204
  return value;
2205
2205
  }
2206
2206
 
2207
+ // src/resources/feedback.ts
2208
+ var FeedbackResource = class {
2209
+ constructor(client) {
2210
+ this.client = client;
2211
+ }
2212
+ client;
2213
+ async submit(params) {
2214
+ this.client._requireAuth();
2215
+ return this.client._request("POST", "/api/v1/feedback", {
2216
+ body: params
2217
+ });
2218
+ }
2219
+ };
2220
+
2207
2221
  // src/client.ts
2208
2222
  var DEFAULT_BASE_URL = "https://api-llm.prd.alva.ai";
2209
2223
  var DEFAULT_ARRAYS_BASE_URL = "https://data-tools.prd.space.id";
@@ -2237,6 +2251,7 @@ var AlvaClient = class {
2237
2251
  _notificationPreferences;
2238
2252
  _subscriptions;
2239
2253
  _channelGroupSubscriptions;
2254
+ _feedback;
2240
2255
  constructor(config) {
2241
2256
  this.baseUrl = config.baseUrl ?? DEFAULT_BASE_URL;
2242
2257
  this.arraysBaseUrl = config.arraysBaseUrl ?? DEFAULT_ARRAYS_BASE_URL;
@@ -2310,6 +2325,9 @@ var AlvaClient = class {
2310
2325
  get channelGroupSubscriptions() {
2311
2326
  return this._channelGroupSubscriptions ??= new ChannelGroupSubscriptionsResource(this);
2312
2327
  }
2328
+ get feedback() {
2329
+ return this._feedback ??= new FeedbackResource(this);
2330
+ }
2313
2331
  _requireAuth() {
2314
2332
  if (!this.pbsvToken && !this.viewer_token && !this.apiKey) {
2315
2333
  throw new AlvaError(
@@ -2794,7 +2812,7 @@ var installPlaybookRuntime = (targetWindow) => {
2794
2812
  };
2795
2813
 
2796
2814
  // src/index.ts
2797
- var VERSION = true ? "0.11.0" : "dev";
2815
+ var VERSION = true ? "0.11.2-beta.0" : "dev";
2798
2816
  // Annotate the CommonJS export names for ESM import in node:
2799
2817
  0 && (module.exports = {
2800
2818
  AlvaClient,