pageSiz
}
- /**
- * Validate skill bundle
- *
- * Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and
- * returns parsed metadata plus the normalized file layout.
- *
- * @return The async call builder
- */
- public PlatformSkillsValidateRequestBuilder validate() {
- return new PlatformSkillsValidateRequestBuilder(sdkConfiguration);
- }
-
- /**
- * Validate skill bundle
- *
- *
Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and
- * returns parsed metadata plus the normalized file layout.
- *
- * @param request The request object containing all the parameters for the API call.
- * @return {@code CompletableFuture} - The async response
- */
- public CompletableFuture validate(PlatformSkillValidationRequest request) {
- AsyncRequestOperation operation
- = new PlatformSkillsValidate.Async(sdkConfiguration, _headers);
- return operation.doRequest(request)
- .thenCompose(operation::handleResponse);
- }
-
-
/**
* Import skills from GitHub
*
@@ -231,6 +202,35 @@ public CompletableFuture import_(PlatformSkillImpo
}
+ /**
+ * Validate skill bundle
+ *
+ * Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and
+ * returns parsed metadata plus the normalized file layout.
+ *
+ * @return The async call builder
+ */
+ public PlatformSkillsValidateRequestBuilder validate() {
+ return new PlatformSkillsValidateRequestBuilder(sdkConfiguration);
+ }
+
+ /**
+ * Validate skill bundle
+ *
+ *
Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and
+ * returns parsed metadata plus the normalized file layout.
+ *
+ * @param request The request object containing all the parameters for the API call.
+ * @return {@code CompletableFuture} - The async response
+ */
+ public CompletableFuture validate(PlatformSkillValidationRequest request) {
+ AsyncRequestOperation operation
+ = new PlatformSkillsValidate.Async(sdkConfiguration, _headers);
+ return operation.doRequest(request)
+ .thenCompose(operation::handleResponse);
+ }
+
+
/**
* Preview a GitHub skill source
*
diff --git a/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java b/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java
index 172fed33..03b9b920 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java
@@ -25,8 +25,8 @@ public class SDKConfiguration {
private static final String LANGUAGE = "java";
public static final String OPENAPI_DOC_VERSION = "0.9.0";
- public static final String SDK_VERSION = "0.15.0";
- public static final String GEN_VERSION = "2.927.0";
+ public static final String SDK_VERSION = "0.15.1";
+ public static final String GEN_VERSION = "2.928.0";
private static final String BASE_PACKAGE = "com.glean.api_client.glean_api_client";
public static final String USER_AGENT =
String.format("speakeasy-sdk/%s %s %s %s %s",
diff --git a/src/main/java/com/glean/api_client/glean_api_client/Skills.java b/src/main/java/com/glean/api_client/glean_api_client/Skills.java
index 98223880..35116be3 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/Skills.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/Skills.java
@@ -162,34 +162,6 @@ public PlatformSkillsListResponse list(Optional pageSize, Optional
return operation.handleResponse(operation.doRequest(request));
}
- /**
- * Validate skill bundle
- *
- * Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and
- * returns parsed metadata plus the normalized file layout.
- *
- * @return The call builder
- */
- public PlatformSkillsValidateRequestBuilder validate() {
- return new PlatformSkillsValidateRequestBuilder(sdkConfiguration);
- }
-
- /**
- * Validate skill bundle
- *
- *
Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and
- * returns parsed metadata plus the normalized file layout.
- *
- * @param request The request object containing all the parameters for the API call.
- * @return The response from the API call
- * @throws RuntimeException subclass if the API call fails
- */
- public PlatformSkillsValidateResponse validate(PlatformSkillValidationRequest request) {
- RequestOperation operation
- = new PlatformSkillsValidate.Sync(sdkConfiguration, _headers);
- return operation.handleResponse(operation.doRequest(request));
- }
-
/**
* Import skills from GitHub
*
@@ -226,6 +198,34 @@ public PlatformSkillsImportResponse import_(PlatformSkillImportRequest request)
return operation.handleResponse(operation.doRequest(request));
}
+ /**
+ * Validate skill bundle
+ *
+ * Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and
+ * returns parsed metadata plus the normalized file layout.
+ *
+ * @return The call builder
+ */
+ public PlatformSkillsValidateRequestBuilder validate() {
+ return new PlatformSkillsValidateRequestBuilder(sdkConfiguration);
+ }
+
+ /**
+ * Validate skill bundle
+ *
+ *
Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and
+ * returns parsed metadata plus the normalized file layout.
+ *
+ * @param request The request object containing all the parameters for the API call.
+ * @return The response from the API call
+ * @throws RuntimeException subclass if the API call fails
+ */
+ public PlatformSkillsValidateResponse validate(PlatformSkillValidationRequest request) {
+ RequestOperation operation
+ = new PlatformSkillsValidate.Sync(sdkConfiguration, _headers);
+ return operation.handleResponse(operation.doRequest(request));
+ }
+
/**
* Preview a GitHub skill source
*
diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedRequestCategory.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedRequestCategory.java
index 0550772c..891ae531 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedRequestCategory.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedRequestCategory.java
@@ -54,7 +54,8 @@ public enum FeedRequestCategory {
DEMO_CARD("DEMO_CARD"),
OOO_PLANNER("OOO_PLANNER"),
OOO_CATCH_UP("OOO_CATCH_UP"),
- ADMIN_HEALTH_CENTER("ADMIN_HEALTH_CENTER");
+ ADMIN_HEALTH_CENTER("ADMIN_HEALTH_CENTER"),
+ KNOWLEDGE_GAP("KNOWLEDGE_GAP");
@JsonValue
private final String value;
diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedResult.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedResult.java
index 32750e39..a98919d1 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedResult.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedResult.java
@@ -46,6 +46,8 @@ public class FeedResult {
/**
* Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking.
* PROMO means the card was inserted by the homepage cards promo framework.
+ *
+ * PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards).
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("placementReason")
@@ -110,6 +112,8 @@ public Optional rank() {
/**
* Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking.
* PROMO means the card was inserted by the homepage cards promo framework.
+ *
+ * PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards).
*/
@SuppressWarnings("unchecked")
@JsonIgnore
@@ -178,6 +182,8 @@ public FeedResult withRank(Optional rank) {
/**
* Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking.
* PROMO means the card was inserted by the homepage cards promo framework.
+ *
+ * PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards).
*/
public FeedResult withPlacementReason(PlacementReason placementReason) {
Utils.checkNotNull(placementReason, "placementReason");
@@ -189,6 +195,8 @@ public FeedResult withPlacementReason(PlacementReason placementReason) {
/**
* Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking.
* PROMO means the card was inserted by the homepage cards promo framework.
+ *
+ *
PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards).
*/
public FeedResult withPlacementReason(Optional extends PlacementReason> placementReason) {
Utils.checkNotNull(placementReason, "placementReason");
@@ -306,6 +314,8 @@ public Builder rank(Optional rank) {
/**
* Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking.
* PROMO means the card was inserted by the homepage cards promo framework.
+ *
+ * PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards).
*/
public Builder placementReason(PlacementReason placementReason) {
Utils.checkNotNull(placementReason, "placementReason");
@@ -316,6 +326,8 @@ public Builder placementReason(PlacementReason placementReason) {
/**
* Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking.
* PROMO means the card was inserted by the homepage cards promo framework.
+ *
+ *
PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards).
*/
public Builder placementReason(Optional extends PlacementReason> placementReason) {
Utils.checkNotNull(placementReason, "placementReason");
diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedResultCategory.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedResultCategory.java
index 9aefe804..96693aa3 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedResultCategory.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedResultCategory.java
@@ -71,6 +71,7 @@ public class FeedResultCategory {
public static final FeedResultCategory OOO_PLANNER = new FeedResultCategory("OOO_PLANNER");
public static final FeedResultCategory OOO_CATCH_UP = new FeedResultCategory("OOO_CATCH_UP");
public static final FeedResultCategory ADMIN_HEALTH_CENTER = new FeedResultCategory("ADMIN_HEALTH_CENTER");
+ public static final FeedResultCategory KNOWLEDGE_GAP = new FeedResultCategory("KNOWLEDGE_GAP");
// This map will grow whenever a Color gets created with a new
// unrecognized value (a potential memory leak if the user is not
@@ -189,6 +190,7 @@ private static final Map createValuesMap() {
map.put("OOO_PLANNER", OOO_PLANNER);
map.put("OOO_CATCH_UP", OOO_CATCH_UP);
map.put("ADMIN_HEALTH_CENTER", ADMIN_HEALTH_CENTER);
+ map.put("KNOWLEDGE_GAP", KNOWLEDGE_GAP);
return map;
}
@@ -239,6 +241,7 @@ private static final Map createEnumsMap() {
map.put("OOO_PLANNER", FeedResultCategoryEnum.OOO_PLANNER);
map.put("OOO_CATCH_UP", FeedResultCategoryEnum.OOO_CATCH_UP);
map.put("ADMIN_HEALTH_CENTER", FeedResultCategoryEnum.ADMIN_HEALTH_CENTER);
+ map.put("KNOWLEDGE_GAP", FeedResultCategoryEnum.KNOWLEDGE_GAP);
return map;
}
@@ -289,7 +292,8 @@ public enum FeedResultCategoryEnum {
DEMO_CARD("DEMO_CARD"),
OOO_PLANNER("OOO_PLANNER"),
OOO_CATCH_UP("OOO_CATCH_UP"),
- ADMIN_HEALTH_CENTER("ADMIN_HEALTH_CENTER"),;
+ ADMIN_HEALTH_CENTER("ADMIN_HEALTH_CENTER"),
+ KNOWLEDGE_GAP("KNOWLEDGE_GAP"),;
private final String value;
diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/JustificationType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/JustificationType.java
index e9be36e8..5644a936 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/models/components/JustificationType.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/JustificationType.java
@@ -84,6 +84,7 @@ public class JustificationType {
public static final JustificationType OOO_PLANNER = new JustificationType("OOO_PLANNER");
public static final JustificationType OOO_CATCH_UP = new JustificationType("OOO_CATCH_UP");
public static final JustificationType ADMIN_HEALTH_CENTER = new JustificationType("ADMIN_HEALTH_CENTER");
+ public static final JustificationType KNOWLEDGE_GAP = new JustificationType("KNOWLEDGE_GAP");
// This map will grow whenever a Color gets created with a new
// unrecognized value (a potential memory leak if the user is not
@@ -215,6 +216,7 @@ private static final Map createValuesMap() {
map.put("OOO_PLANNER", OOO_PLANNER);
map.put("OOO_CATCH_UP", OOO_CATCH_UP);
map.put("ADMIN_HEALTH_CENTER", ADMIN_HEALTH_CENTER);
+ map.put("KNOWLEDGE_GAP", KNOWLEDGE_GAP);
return map;
}
@@ -278,6 +280,7 @@ private static final Map createEnumsMap() {
map.put("OOO_PLANNER", JustificationTypeEnum.OOO_PLANNER);
map.put("OOO_CATCH_UP", JustificationTypeEnum.OOO_CATCH_UP);
map.put("ADMIN_HEALTH_CENTER", JustificationTypeEnum.ADMIN_HEALTH_CENTER);
+ map.put("KNOWLEDGE_GAP", JustificationTypeEnum.KNOWLEDGE_GAP);
return map;
}
@@ -341,7 +344,8 @@ public enum JustificationTypeEnum {
DEMO_CARD("DEMO_CARD"),
OOO_PLANNER("OOO_PLANNER"),
OOO_CATCH_UP("OOO_CATCH_UP"),
- ADMIN_HEALTH_CENTER("ADMIN_HEALTH_CENTER"),;
+ ADMIN_HEALTH_CENTER("ADMIN_HEALTH_CENTER"),
+ KNOWLEDGE_GAP("KNOWLEDGE_GAP"),;
private final String value;
diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlacementReason.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlacementReason.java
index e50763a3..5288fbbd 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlacementReason.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlacementReason.java
@@ -24,11 +24,14 @@
*
* Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking.
* PROMO means the card was inserted by the homepage cards promo framework.
+ *
+ *
PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards).
*/
public class PlacementReason {
public static final PlacementReason ORGANIC = new PlacementReason("ORGANIC");
public static final PlacementReason PROMO = new PlacementReason("PROMO");
+ public static final PlacementReason PINNED = new PlacementReason("PINNED");
// This map will grow whenever a Color gets created with a new
// unrecognized value (a potential memory leak if the user is not
@@ -104,6 +107,7 @@ private static final Map createValuesMap() {
Map map = new LinkedHashMap<>();
map.put("ORGANIC", ORGANIC);
map.put("PROMO", PROMO);
+ map.put("PINNED", PINNED);
return map;
}
@@ -111,6 +115,7 @@ private static final Map createEnumsMap() {
Map map = new HashMap<>();
map.put("ORGANIC", PlacementReasonEnum.ORGANIC);
map.put("PROMO", PlacementReasonEnum.PROMO);
+ map.put("PINNED", PlacementReasonEnum.PINNED);
return map;
}
@@ -118,7 +123,8 @@ private static final Map createEnumsMap() {
public enum PlacementReasonEnum {
ORGANIC("ORGANIC"),
- PROMO("PROMO"),;
+ PROMO("PROMO"),
+ PINNED("PINNED"),;
private final String value;