@linebundle-sdk/ts 1.0.0-rc.37 → 1.0.0-rc.39

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/esm/index.js CHANGED
@@ -1143,6 +1143,31 @@ var Contacts = class extends HeyApiClient {
1143
1143
  }
1144
1144
  });
1145
1145
  }
1146
+ /**
1147
+ * List integration-linked fields for a contact
1148
+ */
1149
+ listIntegrationFields(options) {
1150
+ return (options.client ?? this.client).get({ url: "/api/v1/contacts/{id}/integration-fields", ...options });
1151
+ }
1152
+ /**
1153
+ * Create or update an integration-linked field on a contact
1154
+ */
1155
+ upsertIntegrationField(options) {
1156
+ return (options.client ?? this.client).put({
1157
+ url: "/api/v1/contacts/{id}/integration-fields",
1158
+ ...options,
1159
+ headers: {
1160
+ "Content-Type": "application/json",
1161
+ ...options.headers
1162
+ }
1163
+ });
1164
+ }
1165
+ /**
1166
+ * Remove an integration-linked field from a contact
1167
+ */
1168
+ deleteIntegrationField(options) {
1169
+ return (options.client ?? this.client).delete({ url: "/api/v1/contacts/{id}/integration-fields/{app_id}/{field_key}", ...options });
1170
+ }
1146
1171
  };
1147
1172
  var Credentials = class extends HeyApiClient {
1148
1173
  /**
@@ -2000,6 +2025,14 @@ var Spaces = class extends HeyApiClient {
2000
2025
  list(options) {
2001
2026
  return (options?.client ?? this.client).get({ url: "/api/v1/public/spaces", ...options });
2002
2027
  }
2028
+ /**
2029
+ * Get public spaces as a hierarchical tree
2030
+ *
2031
+ * Returns all publicly visible spaces (visibility=40, status=published) arranged as a multi-root hierarchy. No authentication required. Use this to render collapsible space filter UIs.
2032
+ */
2033
+ tree(options) {
2034
+ return (options?.client ?? this.client).get({ url: "/api/v1/public/spaces/tree", ...options });
2035
+ }
2003
2036
  /**
2004
2037
  * Get a public space
2005
2038
  *
@@ -2261,6 +2294,14 @@ var Spaces2 = class extends HeyApiClient {
2261
2294
  listPendingManagerInvites(options) {
2262
2295
  return (options?.client ?? this.client).get({ url: "/api/v1/spaces/managers/pending", ...options });
2263
2296
  }
2297
+ /**
2298
+ * Get spaces as a hierarchical tree
2299
+ *
2300
+ * Returns all published spaces arranged as a multi-root hierarchy. Each node may have children nested under it. Because spaces support multiple parents, a space can appear under more than one parent node.
2301
+ */
2302
+ tree(options) {
2303
+ return (options?.client ?? this.client).get({ url: "/api/v1/spaces/tree", ...options });
2304
+ }
2264
2305
  /**
2265
2306
  * Delete a space
2266
2307
  */
@@ -2504,6 +2545,31 @@ var Spaces2 = class extends HeyApiClient {
2504
2545
  removeMember(options) {
2505
2546
  return (options.client ?? this.client).delete({ url: "/api/v1/spaces/{id}/members/{user_id}", ...options });
2506
2547
  }
2548
+ /**
2549
+ * List parent spaces of a space
2550
+ */
2551
+ listParents(options) {
2552
+ return (options.client ?? this.client).get({ url: "/api/v1/spaces/{id}/parents", ...options });
2553
+ }
2554
+ /**
2555
+ * Add a parent to a space
2556
+ */
2557
+ addParent(options) {
2558
+ return (options.client ?? this.client).post({
2559
+ url: "/api/v1/spaces/{id}/parents",
2560
+ ...options,
2561
+ headers: {
2562
+ "Content-Type": "application/json",
2563
+ ...options.headers
2564
+ }
2565
+ });
2566
+ }
2567
+ /**
2568
+ * Remove a parent from a space
2569
+ */
2570
+ removeParent(options) {
2571
+ return (options.client ?? this.client).delete({ url: "/api/v1/spaces/{id}/parents/{parent_id}", ...options });
2572
+ }
2507
2573
  /**
2508
2574
  * Publish a space
2509
2575
  *