@gpt-platform/admin 0.10.0 → 0.10.1

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.js CHANGED
@@ -855,7 +855,7 @@ var createClient = (config = {}) => {
855
855
  };
856
856
 
857
857
  // src/version.ts
858
- var SDK_VERSION = "0.10.0";
858
+ var SDK_VERSION = "0.10.1";
859
859
  var DEFAULT_API_VERSION = "2026-03-23";
860
860
 
861
861
  // src/base-client.ts
@@ -3893,6 +3893,11 @@ var deleteAdminClinicalNotesByIdPermanent = (options) => (options.client ?? clie
3893
3893
  url: "/admin/clinical/notes/{id}/permanent",
3894
3894
  ...options
3895
3895
  });
3896
+ var getAdminPipelinesBySlugBySlug = (options) => (options.client ?? client).get({
3897
+ security: [{ scheme: "bearer", type: "http" }],
3898
+ url: "/admin/pipelines/by-slug/{slug}",
3899
+ ...options
3900
+ });
3896
3901
  var getAdminStorageRecommendationsPending = (options) => (options.client ?? client).get({
3897
3902
  security: [{ scheme: "bearer", type: "http" }],
3898
3903
  url: "/admin/storage-recommendations/pending",
@@ -13263,7 +13268,11 @@ function createSocialNamespace(rb) {
13263
13268
  options
13264
13269
  );
13265
13270
  },
13266
- /** Create a new social campaign. */
13271
+ /**
13272
+ * Create a new social campaign.
13273
+ * Workspace is resolved from the authenticated actor's context — do NOT
13274
+ * pass `workspace_id` in attributes.
13275
+ */
13267
13276
  create: async (attributes, options) => {
13268
13277
  return rb.execute(
13269
13278
  postAdminSocialCampaigns,
@@ -13334,11 +13343,8 @@ function createSocialNamespace(rb) {
13334
13343
  path: { id },
13335
13344
  body: {
13336
13345
  data: {
13337
- type: "social-campaign",
13338
- attributes: {
13339
- campaign_id: id,
13340
- workspace_id: workspaceId
13341
- }
13346
+ campaign_id: id,
13347
+ workspace_id: workspaceId
13342
13348
  }
13343
13349
  }
13344
13350
  },
@@ -13353,12 +13359,9 @@ function createSocialNamespace(rb) {
13353
13359
  path: { id },
13354
13360
  body: {
13355
13361
  data: {
13356
- type: "social-campaign",
13357
- attributes: {
13358
- campaign_id: id,
13359
- workspace_id: workspaceId,
13360
- social_account_id: socialAccountId
13361
- }
13362
+ campaign_id: id,
13363
+ workspace_id: workspaceId,
13364
+ social_account_id: socialAccountId
13362
13365
  }
13363
13366
  }
13364
13367
  },
@@ -16962,6 +16965,25 @@ function createPipelinesNamespace(rb) {
16962
16965
  async get(id, options) {
16963
16966
  return rb.execute(getAdminPipelinesById, { path: { id } }, options);
16964
16967
  },
16968
+ /**
16969
+ * Get a pipeline by its system slug, scoped to an application.
16970
+ *
16971
+ * @param slug - Pipeline system slug.
16972
+ * @param options - Optional request options.
16973
+ * @returns Pipeline resource, or not-found error.
16974
+ *
16975
+ * @example
16976
+ * ```typescript
16977
+ * const pipeline = await admin.pipelines.getBySlug("post-session-documentation");
16978
+ * ```
16979
+ */
16980
+ async getBySlug(slug, options) {
16981
+ return rb.execute(
16982
+ getAdminPipelinesBySlugBySlug,
16983
+ { path: { slug } },
16984
+ options
16985
+ );
16986
+ },
16965
16987
  /**
16966
16988
  * Create a new pipeline.
16967
16989
  *