@botpress/client 1.31.0 → 1.32.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.d.ts CHANGED
@@ -3149,6 +3149,52 @@ type TrackAnalyticsInput$1 = TrackAnalyticsRequestBody$1 & TrackAnalyticsRequest
3149
3149
  interface TrackAnalyticsResponse$1 {
3150
3150
  }
3151
3151
 
3152
+ interface CaptureObservationRequestHeaders$1 {
3153
+ }
3154
+ interface CaptureObservationRequestQuery$1 {
3155
+ }
3156
+ interface CaptureObservationRequestParams$1 {
3157
+ }
3158
+ interface CaptureObservationRequestBody$1 {
3159
+ /**
3160
+ * Name of the observation
3161
+ */
3162
+ name: string;
3163
+ /**
3164
+ * Data of the observation
3165
+ */
3166
+ data: {
3167
+ [k: string]: any;
3168
+ };
3169
+ /**
3170
+ * ID of the message associated with the observation
3171
+ */
3172
+ messageId?: string;
3173
+ /**
3174
+ * ID of the event associated with the observation
3175
+ */
3176
+ eventId?: string;
3177
+ /**
3178
+ * ID of the conversation associated with the observation
3179
+ */
3180
+ conversationId?: string;
3181
+ /**
3182
+ * ID of the user associated with the observation
3183
+ */
3184
+ userId?: string;
3185
+ /**
3186
+ * ID of the error associated with the observation
3187
+ */
3188
+ errorId?: string;
3189
+ /**
3190
+ * ID of the trace associated with the observation
3191
+ */
3192
+ traceId?: string;
3193
+ }
3194
+ type CaptureObservationInput$1 = CaptureObservationRequestBody$1 & CaptureObservationRequestHeaders$1 & CaptureObservationRequestQuery$1 & CaptureObservationRequestParams$1;
3195
+ interface CaptureObservationResponse$1 {
3196
+ }
3197
+
3152
3198
  type ClientProps$b = {
3153
3199
  toAxiosRequest: typeof toAxiosRequest$5;
3154
3200
  toApiError: typeof toApiError$5;
@@ -3205,6 +3251,7 @@ declare class Client$b {
3205
3251
  readonly getOrCreateWorkflow: (input: GetOrCreateWorkflowInput$1) => Promise<GetOrCreateWorkflowResponse$1>;
3206
3252
  readonly listTagValues: (input: ListTagValuesInput$1) => Promise<ListTagValuesResponse$1>;
3207
3253
  readonly trackAnalytics: (input: TrackAnalyticsInput$1) => Promise<TrackAnalyticsResponse$1>;
3254
+ readonly captureObservation: (input: CaptureObservationInput$1) => Promise<CaptureObservationResponse$1>;
3208
3255
  }
3209
3256
  declare function toApiError$5(err: unknown): Error;
3210
3257
 
@@ -21405,6 +21452,52 @@ type TrackAnalyticsInput = TrackAnalyticsRequestBody & TrackAnalyticsRequestHead
21405
21452
  interface TrackAnalyticsResponse {
21406
21453
  }
21407
21454
 
21455
+ interface CaptureObservationRequestHeaders {
21456
+ }
21457
+ interface CaptureObservationRequestQuery {
21458
+ }
21459
+ interface CaptureObservationRequestParams {
21460
+ }
21461
+ interface CaptureObservationRequestBody {
21462
+ /**
21463
+ * Name of the observation
21464
+ */
21465
+ name: string;
21466
+ /**
21467
+ * Data of the observation
21468
+ */
21469
+ data: {
21470
+ [k: string]: any;
21471
+ };
21472
+ /**
21473
+ * ID of the message associated with the observation
21474
+ */
21475
+ messageId?: string;
21476
+ /**
21477
+ * ID of the event associated with the observation
21478
+ */
21479
+ eventId?: string;
21480
+ /**
21481
+ * ID of the conversation associated with the observation
21482
+ */
21483
+ conversationId?: string;
21484
+ /**
21485
+ * ID of the user associated with the observation
21486
+ */
21487
+ userId?: string;
21488
+ /**
21489
+ * ID of the error associated with the observation
21490
+ */
21491
+ errorId?: string;
21492
+ /**
21493
+ * ID of the trace associated with the observation
21494
+ */
21495
+ traceId?: string;
21496
+ }
21497
+ type CaptureObservationInput = CaptureObservationRequestBody & CaptureObservationRequestHeaders & CaptureObservationRequestQuery & CaptureObservationRequestParams;
21498
+ interface CaptureObservationResponse {
21499
+ }
21500
+
21408
21501
  interface RunVrlRequestHeaders {
21409
21502
  }
21410
21503
  interface RunVrlRequestQuery {
@@ -37467,6 +37560,7 @@ declare class Client$1 {
37467
37560
  readonly getOrCreateWorkflow: (input: GetOrCreateWorkflowInput) => Promise<GetOrCreateWorkflowResponse>;
37468
37561
  readonly listTagValues: (input: ListTagValuesInput) => Promise<ListTagValuesResponse>;
37469
37562
  readonly trackAnalytics: (input: TrackAnalyticsInput) => Promise<TrackAnalyticsResponse>;
37563
+ readonly captureObservation: (input: CaptureObservationInput) => Promise<CaptureObservationResponse>;
37470
37564
  readonly runVrl: (input: RunVrlInput) => Promise<RunVrlResponse>;
37471
37565
  readonly getAccount: (input: GetAccountInput) => Promise<GetAccountResponse>;
37472
37566
  readonly updateAccount: (input: UpdateAccountInput) => Promise<UpdateAccountResponse>;