@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.mjs CHANGED
@@ -814,7 +814,7 @@ var createClient = (config = {}) => {
814
814
  };
815
815
 
816
816
  // src/version.ts
817
- var SDK_VERSION = "0.10.0";
817
+ var SDK_VERSION = "0.10.1";
818
818
  var DEFAULT_API_VERSION = "2026-03-23";
819
819
 
820
820
  // src/base-client.ts
@@ -3852,6 +3852,11 @@ var deleteAdminClinicalNotesByIdPermanent = (options) => (options.client ?? clie
3852
3852
  url: "/admin/clinical/notes/{id}/permanent",
3853
3853
  ...options
3854
3854
  });
3855
+ var getAdminPipelinesBySlugBySlug = (options) => (options.client ?? client).get({
3856
+ security: [{ scheme: "bearer", type: "http" }],
3857
+ url: "/admin/pipelines/by-slug/{slug}",
3858
+ ...options
3859
+ });
3855
3860
  var getAdminStorageRecommendationsPending = (options) => (options.client ?? client).get({
3856
3861
  security: [{ scheme: "bearer", type: "http" }],
3857
3862
  url: "/admin/storage-recommendations/pending",
@@ -13222,7 +13227,11 @@ function createSocialNamespace(rb) {
13222
13227
  options
13223
13228
  );
13224
13229
  },
13225
- /** Create a new social campaign. */
13230
+ /**
13231
+ * Create a new social campaign.
13232
+ * Workspace is resolved from the authenticated actor's context — do NOT
13233
+ * pass `workspace_id` in attributes.
13234
+ */
13226
13235
  create: async (attributes, options) => {
13227
13236
  return rb.execute(
13228
13237
  postAdminSocialCampaigns,
@@ -13293,11 +13302,8 @@ function createSocialNamespace(rb) {
13293
13302
  path: { id },
13294
13303
  body: {
13295
13304
  data: {
13296
- type: "social-campaign",
13297
- attributes: {
13298
- campaign_id: id,
13299
- workspace_id: workspaceId
13300
- }
13305
+ campaign_id: id,
13306
+ workspace_id: workspaceId
13301
13307
  }
13302
13308
  }
13303
13309
  },
@@ -13312,12 +13318,9 @@ function createSocialNamespace(rb) {
13312
13318
  path: { id },
13313
13319
  body: {
13314
13320
  data: {
13315
- type: "social-campaign",
13316
- attributes: {
13317
- campaign_id: id,
13318
- workspace_id: workspaceId,
13319
- social_account_id: socialAccountId
13320
- }
13321
+ campaign_id: id,
13322
+ workspace_id: workspaceId,
13323
+ social_account_id: socialAccountId
13321
13324
  }
13322
13325
  }
13323
13326
  },
@@ -16921,6 +16924,25 @@ function createPipelinesNamespace(rb) {
16921
16924
  async get(id, options) {
16922
16925
  return rb.execute(getAdminPipelinesById, { path: { id } }, options);
16923
16926
  },
16927
+ /**
16928
+ * Get a pipeline by its system slug, scoped to an application.
16929
+ *
16930
+ * @param slug - Pipeline system slug.
16931
+ * @param options - Optional request options.
16932
+ * @returns Pipeline resource, or not-found error.
16933
+ *
16934
+ * @example
16935
+ * ```typescript
16936
+ * const pipeline = await admin.pipelines.getBySlug("post-session-documentation");
16937
+ * ```
16938
+ */
16939
+ async getBySlug(slug, options) {
16940
+ return rb.execute(
16941
+ getAdminPipelinesBySlugBySlug,
16942
+ { path: { slug } },
16943
+ options
16944
+ );
16945
+ },
16924
16946
  /**
16925
16947
  * Create a new pipeline.
16926
16948
  *