@subcortex-ai/sdk 0.3.10 → 0.3.11

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.cts CHANGED
@@ -1120,6 +1120,10 @@ declare class RelationshipsNamespace {
1120
1120
  list(options?: {
1121
1121
  tenantId?: string;
1122
1122
  }): Promise<Relationship[]>;
1123
+ /** Retract (hard-delete) a relationship by id. Returns the removed relationship. */
1124
+ retract(relationshipId: string, options?: {
1125
+ tenantId?: string;
1126
+ }): Promise<Relationship>;
1123
1127
  }
1124
1128
  /**
1125
1129
  * Agent personality — defines how the agent communicates.
package/dist/index.d.ts CHANGED
@@ -1120,6 +1120,10 @@ declare class RelationshipsNamespace {
1120
1120
  list(options?: {
1121
1121
  tenantId?: string;
1122
1122
  }): Promise<Relationship[]>;
1123
+ /** Retract (hard-delete) a relationship by id. Returns the removed relationship. */
1124
+ retract(relationshipId: string, options?: {
1125
+ tenantId?: string;
1126
+ }): Promise<Relationship>;
1123
1127
  }
1124
1128
  /**
1125
1129
  * Agent personality — defines how the agent communicates.
package/dist/index.js CHANGED
@@ -1394,6 +1394,14 @@ var RelationshipsNamespace = class {
1394
1394
  `/api/v1/relationships/list/${enc4(tenantId)}`
1395
1395
  );
1396
1396
  }
1397
+ /** Retract (hard-delete) a relationship by id. Returns the removed relationship. */
1398
+ async retract(relationshipId, options) {
1399
+ const tenantId = options?.tenantId || this.tenantId;
1400
+ return this.http.post(
1401
+ `/api/v1/relationships/retract/${enc4(tenantId)}/${enc4(relationshipId)}`,
1402
+ {}
1403
+ );
1404
+ }
1397
1405
  };
1398
1406
  var AgentsNamespace = class {
1399
1407
  constructor(http, tenantId) {