@gleanwork/api-client 0.17.0 → 0.17.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.
Files changed (140) hide show
  1. package/dist/commonjs/__tests__/messages.test.js +1 -1
  2. package/dist/commonjs/__tests__/messages.test.js.map +1 -1
  3. package/dist/commonjs/__tests__/summarize.test.js +3 -4
  4. package/dist/commonjs/__tests__/summarize.test.js.map +1 -1
  5. package/dist/commonjs/funcs/agentsCreateRun.js +1 -1
  6. package/dist/commonjs/funcs/agentsCreateRun.js.map +1 -1
  7. package/dist/commonjs/funcs/agentsSearch.js +1 -1
  8. package/dist/commonjs/funcs/agentsSearch.js.map +1 -1
  9. package/dist/commonjs/funcs/searchQuery.js +1 -1
  10. package/dist/commonjs/funcs/searchQuery.js.map +1 -1
  11. package/dist/commonjs/lib/config.d.ts +3 -3
  12. package/dist/commonjs/lib/config.js +3 -3
  13. package/dist/commonjs/models/components/announcement.d.ts +2 -0
  14. package/dist/commonjs/models/components/announcement.d.ts.map +1 -1
  15. package/dist/commonjs/models/components/announcement.js +2 -0
  16. package/dist/commonjs/models/components/announcement.js.map +1 -1
  17. package/dist/commonjs/models/components/answerresult.d.ts +2 -0
  18. package/dist/commonjs/models/components/answerresult.d.ts.map +1 -1
  19. package/dist/commonjs/models/components/answerresult.js +2 -0
  20. package/dist/commonjs/models/components/answerresult.js.map +1 -1
  21. package/dist/commonjs/models/components/collection.d.ts +3 -0
  22. package/dist/commonjs/models/components/collection.d.ts.map +1 -1
  23. package/dist/commonjs/models/components/collection.js +3 -0
  24. package/dist/commonjs/models/components/collection.js.map +1 -1
  25. package/dist/commonjs/models/components/editcollectionresponse.d.ts +2 -0
  26. package/dist/commonjs/models/components/editcollectionresponse.d.ts.map +1 -1
  27. package/dist/commonjs/models/components/editcollectionresponse.js +2 -0
  28. package/dist/commonjs/models/components/editcollectionresponse.js.map +1 -1
  29. package/dist/commonjs/models/components/favoriteinfo.d.ts +10 -0
  30. package/dist/commonjs/models/components/favoriteinfo.d.ts.map +1 -1
  31. package/dist/commonjs/models/components/favoriteinfo.js +12 -1
  32. package/dist/commonjs/models/components/favoriteinfo.js.map +1 -1
  33. package/dist/commonjs/models/components/feedentry.d.ts +1 -0
  34. package/dist/commonjs/models/components/feedentry.d.ts.map +1 -1
  35. package/dist/commonjs/models/components/feedentry.js +1 -0
  36. package/dist/commonjs/models/components/feedentry.js.map +1 -1
  37. package/dist/commonjs/models/components/feedrequest.d.ts +1 -0
  38. package/dist/commonjs/models/components/feedrequest.d.ts.map +1 -1
  39. package/dist/commonjs/models/components/feedrequest.js +1 -0
  40. package/dist/commonjs/models/components/feedrequest.js.map +1 -1
  41. package/dist/commonjs/models/components/feedresult.d.ts +1 -0
  42. package/dist/commonjs/models/components/feedresult.d.ts.map +1 -1
  43. package/dist/commonjs/models/components/feedresult.js +1 -0
  44. package/dist/commonjs/models/components/feedresult.js.map +1 -1
  45. package/dist/commonjs/models/components/pindocument.d.ts +3 -0
  46. package/dist/commonjs/models/components/pindocument.d.ts.map +1 -1
  47. package/dist/commonjs/models/components/pindocument.js +3 -0
  48. package/dist/commonjs/models/components/pindocument.js.map +1 -1
  49. package/dist/commonjs/models/components/platformproblemdetailcode.d.ts +1 -0
  50. package/dist/commonjs/models/components/platformproblemdetailcode.d.ts.map +1 -1
  51. package/dist/commonjs/models/components/platformproblemdetailcode.js +1 -0
  52. package/dist/commonjs/models/components/platformproblemdetailcode.js.map +1 -1
  53. package/dist/commonjs/models/components/shortcut.d.ts +3 -0
  54. package/dist/commonjs/models/components/shortcut.d.ts.map +1 -1
  55. package/dist/commonjs/models/components/shortcut.js +3 -0
  56. package/dist/commonjs/models/components/shortcut.js.map +1 -1
  57. package/dist/commonjs/models/components/ugctype.d.ts +2 -0
  58. package/dist/commonjs/models/components/ugctype.d.ts.map +1 -1
  59. package/dist/commonjs/models/components/ugctype.js +3 -1
  60. package/dist/commonjs/models/components/ugctype.js.map +1 -1
  61. package/dist/esm/__tests__/messages.test.js +1 -1
  62. package/dist/esm/__tests__/messages.test.js.map +1 -1
  63. package/dist/esm/__tests__/summarize.test.js +3 -4
  64. package/dist/esm/__tests__/summarize.test.js.map +1 -1
  65. package/dist/esm/funcs/agentsCreateRun.js +1 -1
  66. package/dist/esm/funcs/agentsCreateRun.js.map +1 -1
  67. package/dist/esm/funcs/agentsSearch.js +1 -1
  68. package/dist/esm/funcs/agentsSearch.js.map +1 -1
  69. package/dist/esm/funcs/searchQuery.js +1 -1
  70. package/dist/esm/funcs/searchQuery.js.map +1 -1
  71. package/dist/esm/lib/config.d.ts +3 -3
  72. package/dist/esm/lib/config.js +3 -3
  73. package/dist/esm/models/components/announcement.d.ts +2 -0
  74. package/dist/esm/models/components/announcement.d.ts.map +1 -1
  75. package/dist/esm/models/components/announcement.js +2 -0
  76. package/dist/esm/models/components/announcement.js.map +1 -1
  77. package/dist/esm/models/components/answerresult.d.ts +2 -0
  78. package/dist/esm/models/components/answerresult.d.ts.map +1 -1
  79. package/dist/esm/models/components/answerresult.js +2 -0
  80. package/dist/esm/models/components/answerresult.js.map +1 -1
  81. package/dist/esm/models/components/collection.d.ts +3 -0
  82. package/dist/esm/models/components/collection.d.ts.map +1 -1
  83. package/dist/esm/models/components/collection.js +3 -0
  84. package/dist/esm/models/components/collection.js.map +1 -1
  85. package/dist/esm/models/components/editcollectionresponse.d.ts +2 -0
  86. package/dist/esm/models/components/editcollectionresponse.d.ts.map +1 -1
  87. package/dist/esm/models/components/editcollectionresponse.js +2 -0
  88. package/dist/esm/models/components/editcollectionresponse.js.map +1 -1
  89. package/dist/esm/models/components/favoriteinfo.d.ts +10 -0
  90. package/dist/esm/models/components/favoriteinfo.d.ts.map +1 -1
  91. package/dist/esm/models/components/favoriteinfo.js +11 -1
  92. package/dist/esm/models/components/favoriteinfo.js.map +1 -1
  93. package/dist/esm/models/components/feedentry.d.ts +1 -0
  94. package/dist/esm/models/components/feedentry.d.ts.map +1 -1
  95. package/dist/esm/models/components/feedentry.js +1 -0
  96. package/dist/esm/models/components/feedentry.js.map +1 -1
  97. package/dist/esm/models/components/feedrequest.d.ts +1 -0
  98. package/dist/esm/models/components/feedrequest.d.ts.map +1 -1
  99. package/dist/esm/models/components/feedrequest.js +1 -0
  100. package/dist/esm/models/components/feedrequest.js.map +1 -1
  101. package/dist/esm/models/components/feedresult.d.ts +1 -0
  102. package/dist/esm/models/components/feedresult.d.ts.map +1 -1
  103. package/dist/esm/models/components/feedresult.js +1 -0
  104. package/dist/esm/models/components/feedresult.js.map +1 -1
  105. package/dist/esm/models/components/pindocument.d.ts +3 -0
  106. package/dist/esm/models/components/pindocument.d.ts.map +1 -1
  107. package/dist/esm/models/components/pindocument.js +3 -0
  108. package/dist/esm/models/components/pindocument.js.map +1 -1
  109. package/dist/esm/models/components/platformproblemdetailcode.d.ts +1 -0
  110. package/dist/esm/models/components/platformproblemdetailcode.d.ts.map +1 -1
  111. package/dist/esm/models/components/platformproblemdetailcode.js +1 -0
  112. package/dist/esm/models/components/platformproblemdetailcode.js.map +1 -1
  113. package/dist/esm/models/components/shortcut.d.ts +3 -0
  114. package/dist/esm/models/components/shortcut.d.ts.map +1 -1
  115. package/dist/esm/models/components/shortcut.js +3 -0
  116. package/dist/esm/models/components/shortcut.js.map +1 -1
  117. package/dist/esm/models/components/ugctype.d.ts +2 -0
  118. package/dist/esm/models/components/ugctype.d.ts.map +1 -1
  119. package/dist/esm/models/components/ugctype.js +2 -0
  120. package/dist/esm/models/components/ugctype.js.map +1 -1
  121. package/jsr.json +1 -1
  122. package/package.json +1 -1
  123. package/src/__tests__/messages.test.ts +1 -1
  124. package/src/__tests__/summarize.test.ts +3 -4
  125. package/src/funcs/agentsCreateRun.ts +1 -1
  126. package/src/funcs/agentsSearch.ts +1 -1
  127. package/src/funcs/searchQuery.ts +1 -1
  128. package/src/lib/config.ts +3 -3
  129. package/src/models/components/announcement.ts +3 -0
  130. package/src/models/components/answerresult.ts +3 -0
  131. package/src/models/components/collection.ts +10 -0
  132. package/src/models/components/editcollectionresponse.ts +3 -0
  133. package/src/models/components/favoriteinfo.ts +27 -1
  134. package/src/models/components/feedentry.ts +1 -0
  135. package/src/models/components/feedrequest.ts +1 -0
  136. package/src/models/components/feedresult.ts +1 -0
  137. package/src/models/components/pindocument.ts +10 -0
  138. package/src/models/components/platformproblemdetailcode.ts +1 -0
  139. package/src/models/components/shortcut.ts +10 -0
  140. package/src/models/components/ugctype.ts +3 -0
@@ -19,12 +19,11 @@ test("Summarize Summarize", async () => {
19
19
  const result = await glean.client.documents.summarize({
20
20
  documentSpecs: [
21
21
  {
22
- ugcType: "ANSWERS",
23
- contentId: 123467,
22
+ ugcType: "COLLECTIONS",
23
+ contentId: 993975,
24
24
  },
25
25
  {
26
- ugcType: "ANSWERS",
27
- contentId: 123467,
26
+ id: "<id>",
28
27
  },
29
28
  ],
30
29
  });
@@ -188,7 +188,7 @@ async function $do(
188
188
  ctype: "text/event-stream",
189
189
  }),
190
190
  M.jsonErr(
191
- [400, 401, 403, 404, 408, 409, 429],
191
+ [400, 401, 403, 404, 408, 409, 413, 429],
192
192
  errors.PlatformProblemDetailError$inboundSchema,
193
193
  { ctype: "application/problem+json" },
194
194
  ),
@@ -162,7 +162,7 @@ async function $do(
162
162
  >(
163
163
  M.json(200, components.PlatformAgentsSearchResponse$inboundSchema),
164
164
  M.jsonErr(
165
- [400, 401, 403, 404, 408, 429],
165
+ [400, 401, 403, 404, 408, 413, 429],
166
166
  errors.PlatformProblemDetailError$inboundSchema,
167
167
  { ctype: "application/problem+json" },
168
168
  ),
@@ -161,7 +161,7 @@ async function $do(
161
161
  >(
162
162
  M.json(200, components.PlatformSearchResponse$inboundSchema),
163
163
  M.jsonErr(
164
- [400, 401, 403, 404, 408, 429],
164
+ [400, 401, 403, 404, 408, 413, 429],
165
165
  errors.PlatformProblemDetailError$inboundSchema,
166
166
  { ctype: "application/problem+json" },
167
167
  ),
package/src/lib/config.ts CHANGED
@@ -73,8 +73,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
73
73
  export const SDK_METADATA = {
74
74
  language: "typescript",
75
75
  openapiDocVersion: "0.9.0",
76
- sdkVersion: "0.17.0",
77
- genVersion: "2.915.0",
76
+ sdkVersion: "0.17.1",
77
+ genVersion: "2.915.1",
78
78
  userAgent:
79
- "speakeasy-sdk/typescript 0.17.0 2.915.0 0.9.0 @gleanwork/api-client",
79
+ "speakeasy-sdk/typescript 0.17.1 2.915.1 0.9.0 @gleanwork/api-client",
80
80
  } as const;
@@ -11,6 +11,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
11
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  import { Document, Document$inboundSchema } from "./document.js";
13
13
  import { FacetFilter, FacetFilter$inboundSchema } from "./facetfilter.js";
14
+ import { FavoriteInfo, FavoriteInfo$inboundSchema } from "./favoriteinfo.js";
14
15
  import {
15
16
  ObjectPermissions,
16
17
  ObjectPermissions$inboundSchema,
@@ -134,6 +135,7 @@ export type Announcement = {
134
135
  * Whether or not the announcement is published.
135
136
  */
136
137
  isPublished?: boolean | undefined;
138
+ favoriteInfo?: FavoriteInfo | undefined;
137
139
  };
138
140
 
139
141
  /** @internal */
@@ -203,6 +205,7 @@ export const Announcement$inboundSchema: z.ZodType<
203
205
  viewerInfo: z.lazy(() => AnnouncementViewerInfo$inboundSchema).optional(),
204
206
  sourceDocument: Document$inboundSchema.optional(),
205
207
  isPublished: z.boolean().optional(),
208
+ favoriteInfo: FavoriteInfo$inboundSchema.optional(),
206
209
  });
207
210
 
208
211
  export function announcementFromJSON(
@@ -8,6 +8,7 @@ import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
  import { Answer, Answer$inboundSchema } from "./answer.js";
11
+ import { FavoriteInfo, FavoriteInfo$inboundSchema } from "./favoriteinfo.js";
11
12
 
12
13
  export type AnswerResult = {
13
14
  answer: Answer;
@@ -17,6 +18,7 @@ export type AnswerResult = {
17
18
  * @deprecated field: Deprecated on 2026-05-07, removal scheduled for 2027-01-15: Use `answer.trackingToken` instead..
18
19
  */
19
20
  trackingToken?: string | undefined;
21
+ favoriteInfo?: FavoriteInfo | undefined;
20
22
  };
21
23
 
22
24
  /** @internal */
@@ -27,6 +29,7 @@ export const AnswerResult$inboundSchema: z.ZodType<
27
29
  > = z.object({
28
30
  answer: Answer$inboundSchema,
29
31
  trackingToken: z.string().optional(),
32
+ favoriteInfo: FavoriteInfo$inboundSchema.optional(),
30
33
  });
31
34
 
32
35
  export function answerResultFromJSON(
@@ -25,6 +25,12 @@ import {
25
25
  FacetFilter$Outbound,
26
26
  FacetFilter$outboundSchema,
27
27
  } from "./facetfilter.js";
28
+ import {
29
+ FavoriteInfo,
30
+ FavoriteInfo$inboundSchema,
31
+ FavoriteInfo$Outbound,
32
+ FavoriteInfo$outboundSchema,
33
+ } from "./favoriteinfo.js";
28
34
  import {
29
35
  ObjectPermissions,
30
36
  ObjectPermissions$inboundSchema,
@@ -126,6 +132,7 @@ export type Collection = {
126
132
  * A list of user roles for the Collection.
127
133
  */
128
134
  roles?: Array<UserRoleSpecification> | undefined;
135
+ favoriteInfo?: FavoriteInfo | undefined;
129
136
  };
130
137
 
131
138
  /** @internal */
@@ -162,6 +169,7 @@ export const Collection$inboundSchema: z.ZodType<
162
169
  shortcuts: z.array(z.string()).optional(),
163
170
  children: z.array(z.lazy(() => Collection$inboundSchema)).optional(),
164
171
  roles: z.array(z.lazy(() => UserRoleSpecification$inboundSchema)).optional(),
172
+ favoriteInfo: FavoriteInfo$inboundSchema.optional(),
165
173
  });
166
174
  /** @internal */
167
175
  export type Collection$Outbound = {
@@ -189,6 +197,7 @@ export type Collection$Outbound = {
189
197
  shortcuts?: Array<string> | undefined;
190
198
  children?: Array<Collection$Outbound> | undefined;
191
199
  roles?: Array<UserRoleSpecification$Outbound> | undefined;
200
+ favoriteInfo?: FavoriteInfo$Outbound | undefined;
192
201
  };
193
202
 
194
203
  /** @internal */
@@ -223,6 +232,7 @@ export const Collection$outboundSchema: z.ZodType<
223
232
  shortcuts: z.array(z.string()).optional(),
224
233
  children: z.array(z.lazy(() => Collection$outboundSchema)).optional(),
225
234
  roles: z.array(z.lazy(() => UserRoleSpecification$outboundSchema)).optional(),
235
+ favoriteInfo: FavoriteInfo$outboundSchema.optional(),
226
236
  });
227
237
 
228
238
  export function collectionToJSON(collection: Collection): string {
@@ -23,6 +23,7 @@ import {
23
23
  CollectionPinnedMetadata$inboundSchema,
24
24
  } from "./collectionpinnedmetadata.js";
25
25
  import { FacetFilter, FacetFilter$inboundSchema } from "./facetfilter.js";
26
+ import { FavoriteInfo, FavoriteInfo$inboundSchema } from "./favoriteinfo.js";
26
27
  import {
27
28
  ObjectPermissions,
28
29
  ObjectPermissions$inboundSchema,
@@ -124,6 +125,7 @@ export type EditCollectionResponse = {
124
125
  * A list of user roles for the Collection.
125
126
  */
126
127
  roles?: Array<UserRoleSpecification> | undefined;
128
+ favoriteInfo?: FavoriteInfo | undefined;
127
129
  errorCode: EditCollectionResponseErrorCode;
128
130
  collection?: Collection | undefined;
129
131
  error?: CollectionError | undefined;
@@ -168,6 +170,7 @@ export const EditCollectionResponse$inboundSchema: z.ZodType<
168
170
  shortcuts: z.array(z.string()).optional(),
169
171
  children: z.array(Collection$inboundSchema).optional(),
170
172
  roles: z.array(UserRoleSpecification$inboundSchema).optional(),
173
+ favoriteInfo: FavoriteInfo$inboundSchema.optional(),
171
174
  errorCode: EditCollectionResponseErrorCode$inboundSchema,
172
175
  collection: Collection$inboundSchema.optional(),
173
176
  error: CollectionError$inboundSchema.optional(),
@@ -7,7 +7,11 @@ import * as z from "zod/v3";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
- import { UgcType, UgcType$inboundSchema } from "./ugctype.js";
10
+ import {
11
+ UgcType,
12
+ UgcType$inboundSchema,
13
+ UgcType$outboundSchema,
14
+ } from "./ugctype.js";
11
15
 
12
16
  export type FavoriteInfo = {
13
17
  ugcType?: UgcType | undefined;
@@ -36,7 +40,29 @@ export const FavoriteInfo$inboundSchema: z.ZodType<
36
40
  count: z.number().int().optional(),
37
41
  favoritedByUser: z.boolean().optional(),
38
42
  });
43
+ /** @internal */
44
+ export type FavoriteInfo$Outbound = {
45
+ ugcType?: string | undefined;
46
+ id?: string | undefined;
47
+ count?: number | undefined;
48
+ favoritedByUser?: boolean | undefined;
49
+ };
50
+
51
+ /** @internal */
52
+ export const FavoriteInfo$outboundSchema: z.ZodType<
53
+ FavoriteInfo$Outbound,
54
+ z.ZodTypeDef,
55
+ FavoriteInfo
56
+ > = z.object({
57
+ ugcType: UgcType$outboundSchema.optional(),
58
+ id: z.string().optional(),
59
+ count: z.number().int().optional(),
60
+ favoritedByUser: z.boolean().optional(),
61
+ });
39
62
 
63
+ export function favoriteInfoToJSON(favoriteInfo: FavoriteInfo): string {
64
+ return JSON.stringify(FavoriteInfo$outboundSchema.parse(favoriteInfo));
65
+ }
40
66
  export function favoriteInfoFromJSON(
41
67
  jsonString: string,
42
68
  ): SafeParseResult<FavoriteInfo, SDKValidationError> {
@@ -100,6 +100,7 @@ export const JustificationType = {
100
100
  ZeroStateAgentSuggestion: "ZERO_STATE_AGENT_SUGGESTION",
101
101
  PersonalizedChatSuggestion: "PERSONALIZED_CHAT_SUGGESTION",
102
102
  DailyDigest: "DAILY_DIGEST",
103
+ Podcast: "PODCAST",
103
104
  Task: "TASK",
104
105
  PlanMyDay: "PLAN_MY_DAY",
105
106
  EndMyDay: "END_MY_DAY",
@@ -42,6 +42,7 @@ export const FeedRequestCategory = {
42
42
  ZeroStateWorkflowSuggestion: "ZERO_STATE_WORKFLOW_SUGGESTION",
43
43
  PersonalizedChatSuggestion: "PERSONALIZED_CHAT_SUGGESTION",
44
44
  DailyDigest: "DAILY_DIGEST",
45
+ Podcast: "PODCAST",
45
46
  Task: "TASK",
46
47
  PlanMyDay: "PLAN_MY_DAY",
47
48
  EndMyDay: "END_MY_DAY",
@@ -40,6 +40,7 @@ export const FeedResultCategory = {
40
40
  ZeroStateWorkflowSuggestion: "ZERO_STATE_WORKFLOW_SUGGESTION",
41
41
  PersonalizedChatSuggestion: "PERSONALIZED_CHAT_SUGGESTION",
42
42
  DailyDigest: "DAILY_DIGEST",
43
+ Podcast: "PODCAST",
43
44
  Task: "TASK",
44
45
  PlanMyDay: "PLAN_MY_DAY",
45
46
  EndMyDay: "END_MY_DAY",
@@ -13,6 +13,12 @@ import {
13
13
  FacetFilter$Outbound,
14
14
  FacetFilter$outboundSchema,
15
15
  } from "./facetfilter.js";
16
+ import {
17
+ FavoriteInfo,
18
+ FavoriteInfo$inboundSchema,
19
+ FavoriteInfo$Outbound,
20
+ FavoriteInfo$outboundSchema,
21
+ } from "./favoriteinfo.js";
16
22
  import {
17
23
  Person,
18
24
  Person$inboundSchema,
@@ -41,6 +47,7 @@ export type PinDocument = {
41
47
  updatedBy?: Person | undefined;
42
48
  createTime?: Date | undefined;
43
49
  updateTime?: Date | undefined;
50
+ favoriteInfo?: FavoriteInfo | undefined;
44
51
  };
45
52
 
46
53
  /** @internal */
@@ -59,6 +66,7 @@ export const PinDocument$inboundSchema: z.ZodType<
59
66
  .optional(),
60
67
  updateTime: z.string().datetime({ offset: true }).transform(v => new Date(v))
61
68
  .optional(),
69
+ favoriteInfo: FavoriteInfo$inboundSchema.optional(),
62
70
  });
63
71
  /** @internal */
64
72
  export type PinDocument$Outbound = {
@@ -70,6 +78,7 @@ export type PinDocument$Outbound = {
70
78
  updatedBy?: Person$Outbound | undefined;
71
79
  createTime?: string | undefined;
72
80
  updateTime?: string | undefined;
81
+ favoriteInfo?: FavoriteInfo$Outbound | undefined;
73
82
  };
74
83
 
75
84
  /** @internal */
@@ -86,6 +95,7 @@ export const PinDocument$outboundSchema: z.ZodType<
86
95
  updatedBy: z.lazy(() => Person$outboundSchema).optional(),
87
96
  createTime: z.date().transform(v => v.toISOString()).optional(),
88
97
  updateTime: z.date().transform(v => v.toISOString()).optional(),
98
+ favoriteInfo: FavoriteInfo$outboundSchema.optional(),
89
99
  });
90
100
 
91
101
  export function pinDocumentToJSON(pinDocument: PinDocument): string {
@@ -24,6 +24,7 @@ export const PlatformProblemDetailCode = {
24
24
  ResourceNotFound: "resource_not_found",
25
25
  MethodNotAllowed: "method_not_allowed",
26
26
  RequestTimeout: "request_timeout",
27
+ RequestTooLarge: "request_too_large",
27
28
  Conflict: "conflict",
28
29
  Gone: "gone",
29
30
  UnprocessableQuery: "unprocessable_query",
@@ -13,6 +13,12 @@ import {
13
13
  Document$Outbound,
14
14
  Document$outboundSchema,
15
15
  } from "./document.js";
16
+ import {
17
+ FavoriteInfo,
18
+ FavoriteInfo$inboundSchema,
19
+ FavoriteInfo$Outbound,
20
+ FavoriteInfo$outboundSchema,
21
+ } from "./favoriteinfo.js";
16
22
  import {
17
23
  ObjectPermissions,
18
24
  ObjectPermissions$inboundSchema,
@@ -109,6 +115,7 @@ export type Shortcut = {
109
115
  * A list of user roles for the Go Link.
110
116
  */
111
117
  roles?: Array<UserRoleSpecification> | undefined;
118
+ favoriteInfo?: FavoriteInfo | undefined;
112
119
  };
113
120
 
114
121
  /** @internal */
@@ -143,6 +150,7 @@ export const Shortcut$inboundSchema: z.ZodType<
143
150
  alias: z.string().optional(),
144
151
  title: z.string().optional(),
145
152
  roles: z.array(z.lazy(() => UserRoleSpecification$inboundSchema)).optional(),
153
+ favoriteInfo: FavoriteInfo$inboundSchema.optional(),
146
154
  });
147
155
  /** @internal */
148
156
  export type Shortcut$Outbound = {
@@ -168,6 +176,7 @@ export type Shortcut$Outbound = {
168
176
  alias?: string | undefined;
169
177
  title?: string | undefined;
170
178
  roles?: Array<UserRoleSpecification$Outbound> | undefined;
179
+ favoriteInfo?: FavoriteInfo$Outbound | undefined;
171
180
  };
172
181
 
173
182
  /** @internal */
@@ -200,6 +209,7 @@ export const Shortcut$outboundSchema: z.ZodType<
200
209
  alias: z.string().optional(),
201
210
  title: z.string().optional(),
202
211
  roles: z.array(z.lazy(() => UserRoleSpecification$outboundSchema)).optional(),
212
+ favoriteInfo: FavoriteInfo$outboundSchema.optional(),
203
213
  });
204
214
 
205
215
  export function shortcutToJSON(shortcut: Shortcut): string {
@@ -34,3 +34,6 @@ export type UgcType = OpenEnum<typeof UgcType>;
34
34
  /** @internal */
35
35
  export const UgcType$inboundSchema: z.ZodType<UgcType, z.ZodTypeDef, unknown> =
36
36
  openEnums.inboundSchema(UgcType);
37
+ /** @internal */
38
+ export const UgcType$outboundSchema: z.ZodType<string, z.ZodTypeDef, UgcType> =
39
+ openEnums.outboundSchema(UgcType);