@happyrobot-ai/sdk 0.1.42 → 0.1.43

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyrobot-ai/sdk",
3
- "version": "0.1.42",
3
+ "version": "0.1.43",
4
4
  "description": "TypeScript SDK for the HappyRobot Public API",
5
5
  "main": "./index.js",
6
6
  "module": "./index.mjs",
@@ -20,11 +20,11 @@ export declare class AuditRemarksResource {
20
20
  * Cursor-paginated; optionally filter by northstar, grade, or status.
21
21
  */
22
22
  listByWorkflow(workflowId: string, query?: ListWorkflowAuditRemarksQuery): Promise<ListWorkflowAuditRemarksResponse>;
23
- /** Get the current user's feedback for an audit remark, or null if none exists. */
23
+ /** Get the current caller's feedback for an audit remark, or null if none exists. */
24
24
  getFeedback(auditRemarkId: string): Promise<AuditRemarkFeedback | null>;
25
25
  /** Submit a thumbs up/down for an audit remark. */
26
26
  submitFeedback(auditRemarkId: string, body: SubmitAuditRemarkFeedbackBody): Promise<AuditRemarkFeedback>;
27
- /** Delete the current user's feedback for an audit remark. */
27
+ /** Delete the current caller's feedback for an audit remark. */
28
28
  deleteFeedback(auditRemarkId: string): Promise<{
29
29
  success: true;
30
30
  }>;
@@ -34,7 +34,7 @@ class AuditRemarksResource {
34
34
  query: query,
35
35
  });
36
36
  }
37
- /** Get the current user's feedback for an audit remark, or null if none exists. */
37
+ /** Get the current caller's feedback for an audit remark, or null if none exists. */
38
38
  async getFeedback(auditRemarkId) {
39
39
  return this.http.request({
40
40
  method: "GET",
@@ -49,7 +49,7 @@ class AuditRemarksResource {
49
49
  body,
50
50
  });
51
51
  }
52
- /** Delete the current user's feedback for an audit remark. */
52
+ /** Delete the current caller's feedback for an audit remark. */
53
53
  async deleteFeedback(auditRemarkId) {
54
54
  return this.http.request({
55
55
  method: "DELETE",
@@ -72,7 +72,8 @@ export interface AuditRemarkFeedback {
72
72
  comment: string | null;
73
73
  audit_remark_id: string;
74
74
  northstar_id: string;
75
- created_by: string;
75
+ created_by: string | null;
76
+ created_by_api_key: string | null;
76
77
  created_at: string;
77
78
  }
78
79
  export interface SubmitAuditRemarkFeedbackBody {