glean-api-client 0.11.18__py3-none-any.whl

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 (532) hide show
  1. glean/api_client/__init__.py +17 -0
  2. glean/api_client/_hooks/__init__.py +5 -0
  3. glean/api_client/_hooks/multipart_fix_hook.py +92 -0
  4. glean/api_client/_hooks/registration.py +17 -0
  5. glean/api_client/_hooks/sdkhooks.py +76 -0
  6. glean/api_client/_hooks/types.py +113 -0
  7. glean/api_client/_version.py +15 -0
  8. glean/api_client/agents.py +923 -0
  9. glean/api_client/announcements.py +714 -0
  10. glean/api_client/answers.py +1039 -0
  11. glean/api_client/basesdk.py +364 -0
  12. glean/api_client/client.py +82 -0
  13. glean/api_client/client_activity.py +360 -0
  14. glean/api_client/client_authentication.py +173 -0
  15. glean/api_client/client_chat.py +2023 -0
  16. glean/api_client/client_documents.py +762 -0
  17. glean/api_client/client_shortcuts.py +1001 -0
  18. glean/api_client/client_verification.py +545 -0
  19. glean/api_client/collections.py +1715 -0
  20. glean/api_client/data.py +23 -0
  21. glean/api_client/datasources.py +561 -0
  22. glean/api_client/entities.py +455 -0
  23. glean/api_client/errors/__init__.py +73 -0
  24. glean/api_client/errors/collectionerror.py +33 -0
  25. glean/api_client/errors/gleanbaseerror.py +30 -0
  26. glean/api_client/errors/gleandataerror.py +52 -0
  27. glean/api_client/errors/gleanerror.py +40 -0
  28. glean/api_client/errors/no_response_error.py +17 -0
  29. glean/api_client/errors/responsevalidationerror.py +27 -0
  30. glean/api_client/governance.py +25 -0
  31. glean/api_client/governance_documents.py +22 -0
  32. glean/api_client/httpclient.py +125 -0
  33. glean/api_client/indexing.py +50 -0
  34. glean/api_client/indexing_authentication.py +163 -0
  35. glean/api_client/indexing_datasource.py +187 -0
  36. glean/api_client/indexing_documents.py +1988 -0
  37. glean/api_client/indexing_permissions.py +2394 -0
  38. glean/api_client/indexing_shortcuts.py +418 -0
  39. glean/api_client/insights.py +303 -0
  40. glean/api_client/messages.py +225 -0
  41. glean/api_client/models/__init__.py +3311 -0
  42. glean/api_client/models/activity.py +15 -0
  43. glean/api_client/models/activityevent.py +56 -0
  44. glean/api_client/models/activityeventparams.py +61 -0
  45. glean/api_client/models/addcollectionitemserror.py +22 -0
  46. glean/api_client/models/addcollectionitemsrequest.py +31 -0
  47. glean/api_client/models/addcollectionitemsresponse.py +22 -0
  48. glean/api_client/models/additionalfielddefinition.py +65 -0
  49. glean/api_client/models/agent.py +98 -0
  50. glean/api_client/models/agentconfig.py +64 -0
  51. glean/api_client/models/agentexecutionstatus.py +11 -0
  52. glean/api_client/models/agentrun.py +42 -0
  53. glean/api_client/models/agentruncreate.py +36 -0
  54. glean/api_client/models/agentrunwaitresponse.py +21 -0
  55. glean/api_client/models/agentschemas.py +45 -0
  56. glean/api_client/models/agentsinsightsv2request.py +26 -0
  57. glean/api_client/models/agentsinsightsv2response.py +88 -0
  58. glean/api_client/models/agentsusagebydepartmentinsight.py +44 -0
  59. glean/api_client/models/agentusersinsight.py +49 -0
  60. glean/api_client/models/aiappactioncounts.py +70 -0
  61. glean/api_client/models/aiappsinsightsresponse.py +45 -0
  62. glean/api_client/models/aiinsightsresponse.py +91 -0
  63. glean/api_client/models/allowlistoptions.py +20 -0
  64. glean/api_client/models/announcement.py +171 -0
  65. glean/api_client/models/anonymousevent.py +35 -0
  66. glean/api_client/models/answer.py +161 -0
  67. glean/api_client/models/answerboard.py +87 -0
  68. glean/api_client/models/answercreationdata.py +100 -0
  69. glean/api_client/models/answerlike.py +26 -0
  70. glean/api_client/models/answerlikes.py +28 -0
  71. glean/api_client/models/answerresult.py +23 -0
  72. glean/api_client/models/appresult.py +32 -0
  73. glean/api_client/models/assistantinsightsresponse.py +94 -0
  74. glean/api_client/models/authconfig.py +116 -0
  75. glean/api_client/models/authtoken.py +34 -0
  76. glean/api_client/models/autocompleterequest.py +83 -0
  77. glean/api_client/models/autocompleteresponse.py +58 -0
  78. glean/api_client/models/autocompleteresult.py +88 -0
  79. glean/api_client/models/autocompleteresultgroup.py +31 -0
  80. glean/api_client/models/badge.py +39 -0
  81. glean/api_client/models/bulkindexdocumentsrequest.py +56 -0
  82. glean/api_client/models/bulkindexemployeesrequest.py +54 -0
  83. glean/api_client/models/bulkindexgroupsrequest.py +59 -0
  84. glean/api_client/models/bulkindexmembershipsrequest.py +57 -0
  85. glean/api_client/models/bulkindexshortcutsrequest.py +44 -0
  86. glean/api_client/models/bulkindexteamsrequest.py +44 -0
  87. glean/api_client/models/bulkindexusersrequest.py +59 -0
  88. glean/api_client/models/bulkuploadhistoryevent.py +62 -0
  89. glean/api_client/models/calendarattendee.py +48 -0
  90. glean/api_client/models/calendarattendees.py +52 -0
  91. glean/api_client/models/calendarevent.py +95 -0
  92. glean/api_client/models/canonicalizingregextype.py +26 -0
  93. glean/api_client/models/channelinviteinfo.py +48 -0
  94. glean/api_client/models/chat.py +76 -0
  95. glean/api_client/models/chatfile.py +36 -0
  96. glean/api_client/models/chatfilefailurereason.py +16 -0
  97. glean/api_client/models/chatfilemetadata.py +47 -0
  98. glean/api_client/models/chatfilestatus.py +13 -0
  99. glean/api_client/models/chatmessage.py +110 -0
  100. glean/api_client/models/chatmessagecitation.py +51 -0
  101. glean/api_client/models/chatmessagefragment.py +56 -0
  102. glean/api_client/models/chatmetadata.py +62 -0
  103. glean/api_client/models/chatmetadataresult.py +25 -0
  104. glean/api_client/models/chatop.py +31 -0
  105. glean/api_client/models/chatrequest.py +80 -0
  106. glean/api_client/models/chatresponse.py +46 -0
  107. glean/api_client/models/chatrestrictionfilters.py +30 -0
  108. glean/api_client/models/chatresult.py +25 -0
  109. glean/api_client/models/chatstreamop.py +31 -0
  110. glean/api_client/models/chatsuggestion.py +21 -0
  111. glean/api_client/models/chatzerostatesuggestionoptions.py +19 -0
  112. glean/api_client/models/checkdocumentaccessrequest.py +35 -0
  113. glean/api_client/models/checkdocumentaccessresponse.py +21 -0
  114. glean/api_client/models/clustergroup.py +35 -0
  115. glean/api_client/models/clustertypeenum.py +20 -0
  116. glean/api_client/models/code.py +32 -0
  117. glean/api_client/models/codeline.py +26 -0
  118. glean/api_client/models/collection.py +143 -0
  119. glean/api_client/models/collectionerror.py +25 -0
  120. glean/api_client/models/collectionitem.py +82 -0
  121. glean/api_client/models/collectionitemdescriptor.py +56 -0
  122. glean/api_client/models/collectionpinmetadata.py +19 -0
  123. glean/api_client/models/collectionpinnablecategories.py +12 -0
  124. glean/api_client/models/collectionpinnabletargets.py +11 -0
  125. glean/api_client/models/collectionpinnedmetadata.py +28 -0
  126. glean/api_client/models/collectionpintarget.py +28 -0
  127. glean/api_client/models/commentdefinition.py +53 -0
  128. glean/api_client/models/communicationchannel.py +9 -0
  129. glean/api_client/models/company.py +84 -0
  130. glean/api_client/models/conferencedata.py +34 -0
  131. glean/api_client/models/connectortype.py +17 -0
  132. glean/api_client/models/contentdefinition.py +31 -0
  133. glean/api_client/models/contentinsightsresponse.py +46 -0
  134. glean/api_client/models/contenttype.py +8 -0
  135. glean/api_client/models/countinfo.py +25 -0
  136. glean/api_client/models/createannouncementrequest.py +105 -0
  137. glean/api_client/models/createanswerrequest.py +14 -0
  138. glean/api_client/models/createauthtokenresponse.py +21 -0
  139. glean/api_client/models/createcollectionop.py +43 -0
  140. glean/api_client/models/createcollectionrequest.py +78 -0
  141. glean/api_client/models/createdlpreportrequest.py +36 -0
  142. glean/api_client/models/createdlpreportresponse.py +17 -0
  143. glean/api_client/models/createshortcutrequest.py +17 -0
  144. glean/api_client/models/createshortcutresponse.py +19 -0
  145. glean/api_client/models/currentactiveusers.py +26 -0
  146. glean/api_client/models/customdatasourceconfig.py +238 -0
  147. glean/api_client/models/customdatavalue.py +33 -0
  148. glean/api_client/models/customentity.py +51 -0
  149. glean/api_client/models/customentitymetadata.py +20 -0
  150. glean/api_client/models/customer.py +70 -0
  151. glean/api_client/models/customermetadata.py +25 -0
  152. glean/api_client/models/customfielddata.py +27 -0
  153. glean/api_client/models/customfieldvalue.py +32 -0
  154. glean/api_client/models/customfieldvaluehyperlink.py +22 -0
  155. glean/api_client/models/customfieldvalueperson.py +17 -0
  156. glean/api_client/models/customfieldvaluestr.py +17 -0
  157. glean/api_client/models/customproperty.py +23 -0
  158. glean/api_client/models/datasourcebulkmembershipdefinition.py +30 -0
  159. glean/api_client/models/datasourcegroupdefinition.py +19 -0
  160. glean/api_client/models/datasourcemembershipdefinition.py +35 -0
  161. glean/api_client/models/datasourceobjecttypedocumentcountentry.py +22 -0
  162. glean/api_client/models/datasourceprofile.py +41 -0
  163. glean/api_client/models/datasourceuserdefinition.py +32 -0
  164. glean/api_client/models/debugdatasourcestatusidentityresponsecomponent.py +37 -0
  165. glean/api_client/models/debugdatasourcestatusresponse.py +119 -0
  166. glean/api_client/models/debugdocumentrequest.py +25 -0
  167. glean/api_client/models/debugdocumentresponse.py +37 -0
  168. glean/api_client/models/debugdocumentsrequest.py +24 -0
  169. glean/api_client/models/debugdocumentsresponse.py +28 -0
  170. glean/api_client/models/debugdocumentsresponseitem.py +34 -0
  171. glean/api_client/models/debuguserrequest.py +19 -0
  172. glean/api_client/models/debuguserresponse.py +34 -0
  173. glean/api_client/models/deleteallchatsop.py +22 -0
  174. glean/api_client/models/deleteannouncementrequest.py +15 -0
  175. glean/api_client/models/deleteanswerrequest.py +22 -0
  176. glean/api_client/models/deletechatfilesop.py +32 -0
  177. glean/api_client/models/deletechatfilesrequest.py +17 -0
  178. glean/api_client/models/deletechatsop.py +29 -0
  179. glean/api_client/models/deletechatsrequest.py +16 -0
  180. glean/api_client/models/deletecollectionitemrequest.py +27 -0
  181. glean/api_client/models/deletecollectionitemresponse.py +15 -0
  182. glean/api_client/models/deletecollectionrequest.py +24 -0
  183. glean/api_client/models/deletedocumentrequest.py +36 -0
  184. glean/api_client/models/deleteemployeerequest.py +26 -0
  185. glean/api_client/models/deletegrouprequest.py +31 -0
  186. glean/api_client/models/deletemembershiprequest.py +34 -0
  187. glean/api_client/models/deleteshortcutrequest.py +15 -0
  188. glean/api_client/models/deleteteamrequest.py +19 -0
  189. glean/api_client/models/deleteuserrequest.py +30 -0
  190. glean/api_client/models/digest.py +37 -0
  191. glean/api_client/models/digestsection.py +60 -0
  192. glean/api_client/models/digestupdate.py +42 -0
  193. glean/api_client/models/disambiguation.py +31 -0
  194. glean/api_client/models/displayablelistitemuiconfig.py +23 -0
  195. glean/api_client/models/dlpconfig.py +113 -0
  196. glean/api_client/models/dlpfrequency.py +14 -0
  197. glean/api_client/models/dlpperson.py +30 -0
  198. glean/api_client/models/dlppersonmetadata.py +22 -0
  199. glean/api_client/models/dlpreport.py +92 -0
  200. glean/api_client/models/dlpreportstatus.py +13 -0
  201. glean/api_client/models/dlpsimpleresult.py +9 -0
  202. glean/api_client/models/document.py +71 -0
  203. glean/api_client/models/documentcontent.py +19 -0
  204. glean/api_client/models/documentdefinition.py +160 -0
  205. glean/api_client/models/documentinsight.py +25 -0
  206. glean/api_client/models/documentinteractions.py +50 -0
  207. glean/api_client/models/documentinteractionsdefinition.py +25 -0
  208. glean/api_client/models/documentmetadata.py +228 -0
  209. glean/api_client/models/documentorerror_union.py +27 -0
  210. glean/api_client/models/documentpermissionsdefinition.py +62 -0
  211. glean/api_client/models/documentsection.py +21 -0
  212. glean/api_client/models/documentspec_union.py +105 -0
  213. glean/api_client/models/documentstatusresponse.py +49 -0
  214. glean/api_client/models/documentvisibility.py +21 -0
  215. glean/api_client/models/documentvisibilityoverride.py +30 -0
  216. glean/api_client/models/documentvisibilityupdateresult.py +35 -0
  217. glean/api_client/models/downloadpolicycsvop.py +18 -0
  218. glean/api_client/models/downloadreportcsvop.py +18 -0
  219. glean/api_client/models/editanswerrequest.py +117 -0
  220. glean/api_client/models/editcollectionitemrequest.py +37 -0
  221. glean/api_client/models/editcollectionitemresponse.py +15 -0
  222. glean/api_client/models/editcollectionrequest.py +76 -0
  223. glean/api_client/models/editcollectionresponse.py +162 -0
  224. glean/api_client/models/editpinrequest.py +30 -0
  225. glean/api_client/models/employeeinfodefinition.py +198 -0
  226. glean/api_client/models/employeeteaminfo.py +30 -0
  227. glean/api_client/models/entitiessortorder.py +16 -0
  228. glean/api_client/models/entityrelationship.py +24 -0
  229. glean/api_client/models/entitytype.py +12 -0
  230. glean/api_client/models/errormessage.py +20 -0
  231. glean/api_client/models/eventclassification.py +25 -0
  232. glean/api_client/models/eventclassificationname.py +10 -0
  233. glean/api_client/models/eventstrategyname.py +18 -0
  234. glean/api_client/models/externalsharingoptions.py +82 -0
  235. glean/api_client/models/externalshortcut.py +69 -0
  236. glean/api_client/models/extractedqna.py +30 -0
  237. glean/api_client/models/facetbucket.py +30 -0
  238. glean/api_client/models/facetbucketfilter.py +21 -0
  239. glean/api_client/models/facetfilter.py +26 -0
  240. glean/api_client/models/facetfilterset.py +19 -0
  241. glean/api_client/models/facetfiltervalue.py +45 -0
  242. glean/api_client/models/facetresult.py +40 -0
  243. glean/api_client/models/facetvalue.py +33 -0
  244. glean/api_client/models/favoriteinfo.py +33 -0
  245. glean/api_client/models/feedback.py +220 -0
  246. glean/api_client/models/feedbackchatexchange.py +53 -0
  247. glean/api_client/models/feedbackop.py +29 -0
  248. glean/api_client/models/feedentry.py +185 -0
  249. glean/api_client/models/feedrequest.py +65 -0
  250. glean/api_client/models/feedrequestoptions.py +59 -0
  251. glean/api_client/models/feedresponse.py +50 -0
  252. glean/api_client/models/feedresult.py +64 -0
  253. glean/api_client/models/followupaction.py +57 -0
  254. glean/api_client/models/generatedattachment.py +51 -0
  255. glean/api_client/models/generatedattachmentcontent.py +28 -0
  256. glean/api_client/models/generatedqna.py +76 -0
  257. glean/api_client/models/get_rest_api_v1_tools_listop.py +22 -0
  258. glean/api_client/models/getagentop.py +29 -0
  259. glean/api_client/models/getagentschemasop.py +29 -0
  260. glean/api_client/models/getanswererror.py +29 -0
  261. glean/api_client/models/getanswerrequest.py +22 -0
  262. glean/api_client/models/getanswerresponse.py +22 -0
  263. glean/api_client/models/getchatapplicationop.py +32 -0
  264. glean/api_client/models/getchatapplicationrequest.py +15 -0
  265. glean/api_client/models/getchatapplicationresponse.py +14 -0
  266. glean/api_client/models/getchatfilesop.py +29 -0
  267. glean/api_client/models/getchatfilesrequest.py +17 -0
  268. glean/api_client/models/getchatfilesresponse.py +17 -0
  269. glean/api_client/models/getchatop.py +29 -0
  270. glean/api_client/models/getchatrequest.py +15 -0
  271. glean/api_client/models/getchatresponse.py +18 -0
  272. glean/api_client/models/getcollectionrequest.py +36 -0
  273. glean/api_client/models/getcollectionresponse.py +32 -0
  274. glean/api_client/models/getdatasourceconfigrequest.py +19 -0
  275. glean/api_client/models/getdlpreportresponse.py +17 -0
  276. glean/api_client/models/getdocpermissionsrequest.py +17 -0
  277. glean/api_client/models/getdocpermissionsresponse.py +19 -0
  278. glean/api_client/models/getdocumentcountrequest.py +19 -0
  279. glean/api_client/models/getdocumentcountresponse.py +23 -0
  280. glean/api_client/models/getdocumentsbyfacetsrequest.py +30 -0
  281. glean/api_client/models/getdocumentsbyfacetsresponse.py +30 -0
  282. glean/api_client/models/getdocumentsrequest.py +36 -0
  283. glean/api_client/models/getdocumentsresponse.py +17 -0
  284. glean/api_client/models/getdocumentstatusrequest.py +30 -0
  285. glean/api_client/models/getdocumentstatusresponse.py +42 -0
  286. glean/api_client/models/getdocumentvisibilityoverridesresponse.py +22 -0
  287. glean/api_client/models/getdocvisibilityop.py +22 -0
  288. glean/api_client/models/getpinrequest.py +16 -0
  289. glean/api_client/models/getpinresponse.py +15 -0
  290. glean/api_client/models/getpolicyop.py +27 -0
  291. glean/api_client/models/getreportstatusop.py +18 -0
  292. glean/api_client/models/getshortcutrequest_union.py +31 -0
  293. glean/api_client/models/getshortcutresponse.py +19 -0
  294. glean/api_client/models/getusercountrequest.py +19 -0
  295. glean/api_client/models/getusercountresponse.py +21 -0
  296. glean/api_client/models/gleanassistinsightsresponse.py +46 -0
  297. glean/api_client/models/gleandataerror.py +44 -0
  298. glean/api_client/models/grantpermission.py +22 -0
  299. glean/api_client/models/greenlistusersrequest.py +25 -0
  300. glean/api_client/models/group.py +42 -0
  301. glean/api_client/models/grouptype.py +17 -0
  302. glean/api_client/models/hotword.py +18 -0
  303. glean/api_client/models/hotwordproximity.py +18 -0
  304. glean/api_client/models/iconconfig.py +67 -0
  305. glean/api_client/models/indexdocumentrequest.py +26 -0
  306. glean/api_client/models/indexdocumentsrequest.py +32 -0
  307. glean/api_client/models/indexemployeerequest.py +29 -0
  308. glean/api_client/models/indexgrouprequest.py +34 -0
  309. glean/api_client/models/indexingshortcut.py +57 -0
  310. glean/api_client/models/indexmembershiprequest.py +34 -0
  311. glean/api_client/models/indexstatus.py +27 -0
  312. glean/api_client/models/indexteamrequest.py +26 -0
  313. glean/api_client/models/indexuserrequest.py +34 -0
  314. glean/api_client/models/inputoptions.py +82 -0
  315. glean/api_client/models/insightsagentsrequestoptions.py +17 -0
  316. glean/api_client/models/insightsaiapprequestoptions.py +17 -0
  317. glean/api_client/models/insightsassistantrequest.py +21 -0
  318. glean/api_client/models/insightschatsummary.py +38 -0
  319. glean/api_client/models/insightsoverviewrequest.py +21 -0
  320. glean/api_client/models/insightsoverviewresponse.py +118 -0
  321. glean/api_client/models/insightsrequest.py +126 -0
  322. glean/api_client/models/insightsresponse.py +118 -0
  323. glean/api_client/models/insightssearchsummary.py +38 -0
  324. glean/api_client/models/invalidoperatorvalueerror.py +21 -0
  325. glean/api_client/models/inviteinfo.py +58 -0
  326. glean/api_client/models/labeledcountinfo.py +25 -0
  327. glean/api_client/models/listanswersrequest.py +17 -0
  328. glean/api_client/models/listanswersresponse.py +18 -0
  329. glean/api_client/models/listchatsop.py +22 -0
  330. glean/api_client/models/listchatsresponse.py +18 -0
  331. glean/api_client/models/listcollectionsrequest.py +37 -0
  332. glean/api_client/models/listcollectionsresponse.py +17 -0
  333. glean/api_client/models/listdlpreportsresponse.py +15 -0
  334. glean/api_client/models/listentitiesrequest.py +97 -0
  335. glean/api_client/models/listentitiesresponse.py +66 -0
  336. glean/api_client/models/listpinsop.py +13 -0
  337. glean/api_client/models/listpinsresponse.py +17 -0
  338. glean/api_client/models/listpoliciesop.py +30 -0
  339. glean/api_client/models/listshortcutspaginatedrequest.py +49 -0
  340. glean/api_client/models/listshortcutspaginatedresponse.py +31 -0
  341. glean/api_client/models/listverificationsop.py +20 -0
  342. glean/api_client/models/manualfeedbackinfo.py +166 -0
  343. glean/api_client/models/manualfeedbacksidebysideinfo.py +77 -0
  344. glean/api_client/models/meeting.py +37 -0
  345. glean/api_client/models/message.py +33 -0
  346. glean/api_client/models/messagesrequest.py +84 -0
  347. glean/api_client/models/messagesresponse.py +29 -0
  348. glean/api_client/models/objectdefinition.py +76 -0
  349. glean/api_client/models/objectpermissions.py +17 -0
  350. glean/api_client/models/operatormetadata.py +50 -0
  351. glean/api_client/models/operatorscope.py +18 -0
  352. glean/api_client/models/peoplerequest.py +69 -0
  353. glean/api_client/models/peopleresponse.py +31 -0
  354. glean/api_client/models/peragentinsight.py +55 -0
  355. glean/api_client/models/period.py +41 -0
  356. glean/api_client/models/permissions.py +67 -0
  357. glean/api_client/models/permissionsgroupintersectiondefinition.py +21 -0
  358. glean/api_client/models/person.py +36 -0
  359. glean/api_client/models/persondistance.py +26 -0
  360. glean/api_client/models/personmetadata.py +295 -0
  361. glean/api_client/models/personobject.py +21 -0
  362. glean/api_client/models/personteam.py +53 -0
  363. glean/api_client/models/persontoteamrelationship.py +53 -0
  364. glean/api_client/models/peruserassistantinsight.py +51 -0
  365. glean/api_client/models/peruserinsight.py +47 -0
  366. glean/api_client/models/pindocument.py +55 -0
  367. glean/api_client/models/pinrequest.py +30 -0
  368. glean/api_client/models/possiblevalue.py +25 -0
  369. glean/api_client/models/post_api_index_v1_debug_datasource_documentop.py +25 -0
  370. glean/api_client/models/post_api_index_v1_debug_datasource_documentsop.py +25 -0
  371. glean/api_client/models/post_api_index_v1_debug_datasource_statusop.py +18 -0
  372. glean/api_client/models/post_api_index_v1_debug_datasource_userop.py +25 -0
  373. glean/api_client/models/processalldocumentsrequest.py +20 -0
  374. glean/api_client/models/processallmembershipsrequest.py +20 -0
  375. glean/api_client/models/processinghistoryevent.py +26 -0
  376. glean/api_client/models/prompttemplate.py +88 -0
  377. glean/api_client/models/prompttemplateresult.py +35 -0
  378. glean/api_client/models/propertydefinition.py +82 -0
  379. glean/api_client/models/propertygroup.py +26 -0
  380. glean/api_client/models/queryinsight.py +45 -0
  381. glean/api_client/models/queryinsightsresponse.py +46 -0
  382. glean/api_client/models/querysuggestion.py +61 -0
  383. glean/api_client/models/querysuggestionlist.py +21 -0
  384. glean/api_client/models/quicklink.py +58 -0
  385. glean/api_client/models/reaction.py +33 -0
  386. glean/api_client/models/readpermission.py +22 -0
  387. glean/api_client/models/recommendationsrequest.py +64 -0
  388. glean/api_client/models/recommendationsrequestoptions.py +47 -0
  389. glean/api_client/models/referencerange.py +26 -0
  390. glean/api_client/models/relateddocuments.py +72 -0
  391. glean/api_client/models/relatedobject.py +35 -0
  392. glean/api_client/models/relatedobjectedge.py +15 -0
  393. glean/api_client/models/relatedquestion.py +29 -0
  394. glean/api_client/models/reminder.py +36 -0
  395. glean/api_client/models/reminderrequest.py +34 -0
  396. glean/api_client/models/reportstatusresponse.py +30 -0
  397. glean/api_client/models/restrictionfilters.py +20 -0
  398. glean/api_client/models/resultsdescription.py +25 -0
  399. glean/api_client/models/resultsresponse.py +59 -0
  400. glean/api_client/models/resulttab.py +34 -0
  401. glean/api_client/models/rotatetokenresponse.py +33 -0
  402. glean/api_client/models/scopetype.py +11 -0
  403. glean/api_client/models/searchagentsrequest.py +16 -0
  404. glean/api_client/models/searchagentsresponse.py +15 -0
  405. glean/api_client/models/searchproviderinfo.py +29 -0
  406. glean/api_client/models/searchrequest.py +95 -0
  407. glean/api_client/models/searchrequestinputdetails.py +19 -0
  408. glean/api_client/models/searchrequestoptions.py +140 -0
  409. glean/api_client/models/searchresponse.py +120 -0
  410. glean/api_client/models/searchresponsemetadata.py +102 -0
  411. glean/api_client/models/searchresult.py +149 -0
  412. glean/api_client/models/searchresultprominenceenum.py +15 -0
  413. glean/api_client/models/searchresultsnippet.py +52 -0
  414. glean/api_client/models/searchwarning.py +51 -0
  415. glean/api_client/models/sectiontype.py +15 -0
  416. glean/api_client/models/security.py +25 -0
  417. glean/api_client/models/seenfeedbackinfo.py +17 -0
  418. glean/api_client/models/sensitivecontentoptions.py +39 -0
  419. glean/api_client/models/sensitiveexpression.py +22 -0
  420. glean/api_client/models/sensitiveinfotype.py +35 -0
  421. glean/api_client/models/sessioninfo.py +35 -0
  422. glean/api_client/models/share.py +33 -0
  423. glean/api_client/models/sharingoptions.py +71 -0
  424. glean/api_client/models/shortcut.py +140 -0
  425. glean/api_client/models/shortcuterror.py +25 -0
  426. glean/api_client/models/shortcutinsight.py +27 -0
  427. glean/api_client/models/shortcutinsightsresponse.py +39 -0
  428. glean/api_client/models/shortcutmutableproperties.py +61 -0
  429. glean/api_client/models/shortcutspaginationmetadata.py +25 -0
  430. glean/api_client/models/sidebysideimplementation.py +69 -0
  431. glean/api_client/models/socialnetwork.py +27 -0
  432. glean/api_client/models/socialnetworkdefinition.py +31 -0
  433. glean/api_client/models/sortoptions.py +24 -0
  434. glean/api_client/models/structuredlink.py +34 -0
  435. glean/api_client/models/structuredlocation.py +61 -0
  436. glean/api_client/models/structuredresult.py +156 -0
  437. glean/api_client/models/structuredtext.py +25 -0
  438. glean/api_client/models/structuredtextitem.py +32 -0
  439. glean/api_client/models/structuredtextmutableproperties.py +13 -0
  440. glean/api_client/models/summarizerequest.py +49 -0
  441. glean/api_client/models/summarizeresponse.py +34 -0
  442. glean/api_client/models/summary.py +22 -0
  443. glean/api_client/models/team.py +146 -0
  444. glean/api_client/models/teamemail.py +25 -0
  445. glean/api_client/models/teaminfodefinition.py +87 -0
  446. glean/api_client/models/teammember.py +31 -0
  447. glean/api_client/models/textrange.py +48 -0
  448. glean/api_client/models/thumbnail.py +22 -0
  449. glean/api_client/models/timeinterval.py +20 -0
  450. glean/api_client/models/timepoint.py +22 -0
  451. glean/api_client/models/timerange.py +30 -0
  452. glean/api_client/models/tool.py +46 -0
  453. glean/api_client/models/toolinfo.py +23 -0
  454. glean/api_client/models/toolmetadata.py +171 -0
  455. glean/api_client/models/toolparameter.py +58 -0
  456. glean/api_client/models/toolscallparameter.py +31 -0
  457. glean/api_client/models/toolscallrequest.py +22 -0
  458. glean/api_client/models/toolscallresponse.py +24 -0
  459. glean/api_client/models/toolsets.py +30 -0
  460. glean/api_client/models/toolslistresponse.py +15 -0
  461. glean/api_client/models/ugctype.py +13 -0
  462. glean/api_client/models/unpin.py +16 -0
  463. glean/api_client/models/updateannouncementrequest.py +110 -0
  464. glean/api_client/models/updatedlpconfigrequest.py +22 -0
  465. glean/api_client/models/updatedlpconfigresponse.py +21 -0
  466. glean/api_client/models/updatedlpreportrequest.py +42 -0
  467. glean/api_client/models/updatedlpreportresponse.py +15 -0
  468. glean/api_client/models/updatedocumentvisibilityoverridesrequest.py +22 -0
  469. glean/api_client/models/updatedocumentvisibilityoverridesresponse.py +20 -0
  470. glean/api_client/models/updatepermissionsrequest.py +47 -0
  471. glean/api_client/models/updatepolicyop.py +28 -0
  472. glean/api_client/models/updateshortcutrequest.py +66 -0
  473. glean/api_client/models/updateshortcutresponse.py +19 -0
  474. glean/api_client/models/updatetype.py +13 -0
  475. glean/api_client/models/uploadchatfilesop.py +32 -0
  476. glean/api_client/models/uploadchatfilesrequest.py +45 -0
  477. glean/api_client/models/uploadchatfilesresponse.py +17 -0
  478. glean/api_client/models/uploadshortcutsrequest.py +44 -0
  479. glean/api_client/models/uploadstatusenum.py +12 -0
  480. glean/api_client/models/user.py +22 -0
  481. glean/api_client/models/useractivity.py +52 -0
  482. glean/api_client/models/useractivityinsight.py +47 -0
  483. glean/api_client/models/usergeneratedcontentid.py +16 -0
  484. glean/api_client/models/userinsightsresponse.py +53 -0
  485. glean/api_client/models/userreferencedefinition.py +29 -0
  486. glean/api_client/models/userrole.py +14 -0
  487. glean/api_client/models/userrolespecification.py +34 -0
  488. glean/api_client/models/userstatusresponse.py +38 -0
  489. glean/api_client/models/userviewinfo.py +27 -0
  490. glean/api_client/models/verification.py +34 -0
  491. glean/api_client/models/verificationfeed.py +17 -0
  492. glean/api_client/models/verificationmetadata.py +62 -0
  493. glean/api_client/models/verifyrequest.py +31 -0
  494. glean/api_client/models/viewerinfo.py +40 -0
  495. glean/api_client/models/workflow.py +49 -0
  496. glean/api_client/models/workflowfeedbackinfo.py +25 -0
  497. glean/api_client/models/workflowresult.py +14 -0
  498. glean/api_client/models/writeactionparameter.py +55 -0
  499. glean/api_client/models/writepermission.py +37 -0
  500. glean/api_client/people.py +1668 -0
  501. glean/api_client/pins.py +911 -0
  502. glean/api_client/policies.py +925 -0
  503. glean/api_client/py.typed +1 -0
  504. glean/api_client/reports.py +521 -0
  505. glean/api_client/sdk.py +209 -0
  506. glean/api_client/sdkconfiguration.py +49 -0
  507. glean/api_client/search.py +1286 -0
  508. glean/api_client/tools.py +365 -0
  509. glean/api_client/types/__init__.py +21 -0
  510. glean/api_client/types/basemodel.py +39 -0
  511. glean/api_client/utils/__init__.py +200 -0
  512. glean/api_client/utils/annotations.py +79 -0
  513. glean/api_client/utils/datetimes.py +23 -0
  514. glean/api_client/utils/enums.py +74 -0
  515. glean/api_client/utils/eventstreaming.py +248 -0
  516. glean/api_client/utils/forms.py +223 -0
  517. glean/api_client/utils/headers.py +136 -0
  518. glean/api_client/utils/logger.py +27 -0
  519. glean/api_client/utils/metadata.py +118 -0
  520. glean/api_client/utils/queryparams.py +205 -0
  521. glean/api_client/utils/requestbodies.py +66 -0
  522. glean/api_client/utils/retries.py +217 -0
  523. glean/api_client/utils/security.py +192 -0
  524. glean/api_client/utils/serializers.py +249 -0
  525. glean/api_client/utils/unmarshal_json_response.py +24 -0
  526. glean/api_client/utils/url.py +155 -0
  527. glean/api_client/utils/values.py +137 -0
  528. glean/api_client/visibilityoverrides.py +379 -0
  529. glean_api_client-0.11.18.dist-info/METADATA +991 -0
  530. glean_api_client-0.11.18.dist-info/RECORD +532 -0
  531. glean_api_client-0.11.18.dist-info/WHEEL +4 -0
  532. glean_api_client-0.11.18.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,17 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from ._version import (
4
+ __title__,
5
+ __version__,
6
+ __openapi_doc_version__,
7
+ __gen_version__,
8
+ __user_agent__,
9
+ )
10
+ from .sdk import *
11
+ from .sdkconfiguration import *
12
+
13
+
14
+ VERSION: str = __version__
15
+ OPENAPI_DOC_VERSION = __openapi_doc_version__
16
+ SPEAKEASY_GENERATOR_VERSION = __gen_version__
17
+ USER_AGENT = __user_agent__
@@ -0,0 +1,5 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from .sdkhooks import *
4
+ from .types import *
5
+ from .registration import *
@@ -0,0 +1,92 @@
1
+ """Hook to fix multipart form file field names that incorrectly have '[]' suffix."""
2
+
3
+ from typing import Any, Dict, List, Tuple
4
+ from .types import SDKInitHook
5
+ from glean.api_client.httpclient import HttpClient
6
+ from glean.api_client.utils import forms
7
+
8
+
9
+ class MultipartFileFieldFixHook(SDKInitHook):
10
+ """
11
+ Fixes multipart form serialization where file field names incorrectly have '[]' suffix.
12
+
13
+ Speakeasy sometimes generates code that adds '[]' to file field names in multipart forms,
14
+ but this is incorrect. File fields should not have the array suffix, only regular form
15
+ fields should use this convention.
16
+
17
+ This hook patches the serialize_multipart_form function to fix the issue at the source.
18
+ """
19
+
20
+ def sdk_init(self, base_url: str, client: HttpClient) -> Tuple[str, HttpClient]:
21
+ """Initialize the SDK and patch the multipart form serialization."""
22
+ self._patch_multipart_serialization()
23
+ return base_url, client
24
+
25
+ def _patch_multipart_serialization(self):
26
+ """Patch the serialize_multipart_form function to fix file field names."""
27
+ # Store reference to original function
28
+ original_serialize_multipart_form = forms.serialize_multipart_form
29
+
30
+ def fixed_serialize_multipart_form(
31
+ media_type: str, request: Any
32
+ ) -> Tuple[str, Dict[str, Any], List[Tuple[str, Any]]]:
33
+ """Fixed version of serialize_multipart_form that doesn't add '[]' to file field names."""
34
+ # Call the original function
35
+ result_media_type, form_data, files_list = (
36
+ original_serialize_multipart_form(media_type, request)
37
+ )
38
+
39
+ # Fix file field names in the files list
40
+ fixed_files = []
41
+ for item in files_list:
42
+ if isinstance(item, tuple) and len(item) >= 2:
43
+ field_name = item[0]
44
+ file_data = item[1]
45
+
46
+ # Remove '[]' suffix from file field names only
47
+ # We can identify file fields by checking if the data looks like file content
48
+ if field_name.endswith("[]") and self._is_file_field_data(
49
+ file_data
50
+ ):
51
+ fixed_field_name = field_name[:-2] # Remove '[]' suffix
52
+ fixed_item = (fixed_field_name,) + item[1:]
53
+ fixed_files.append(fixed_item)
54
+ else:
55
+ fixed_files.append(item)
56
+ else:
57
+ fixed_files.append(item)
58
+
59
+ return result_media_type, form_data, fixed_files
60
+
61
+ # Replace the original function with our fixed version
62
+ forms.serialize_multipart_form = fixed_serialize_multipart_form
63
+
64
+ def _is_file_field_data(self, file_data: Any) -> bool:
65
+ """
66
+ Determine if the data represents file field content.
67
+
68
+ File fields typically have tuple format: (filename, content) or (filename, content, content_type)
69
+ where content is bytes, file-like object, or similar.
70
+ """
71
+ if isinstance(file_data, tuple) and len(file_data) >= 2:
72
+ # Check the structure: (filename, content, [optional content_type])
73
+ filename = file_data[0]
74
+ content = file_data[1]
75
+
76
+ # If filename is empty, this is likely JSON content, not a file
77
+ if filename == "":
78
+ return False
79
+
80
+ # File content is typically bytes, string, or file-like object
81
+ # But exclude empty strings and None values
82
+ if content is None or content == "":
83
+ return False
84
+
85
+ return (
86
+ isinstance(content, (bytes, str))
87
+ or hasattr(content, "read") # File-like object
88
+ or (
89
+ hasattr(content, "__iter__") and not isinstance(content, str)
90
+ ) # Iterable but not string
91
+ )
92
+ return False
@@ -0,0 +1,17 @@
1
+ from .types import Hooks
2
+ from .multipart_fix_hook import MultipartFileFieldFixHook
3
+
4
+
5
+ # This file is only ever generated once on the first generation and then is free to be modified.
6
+ # Any hooks you wish to add should be registered in the init_hooks function. Feel free to define them
7
+ # in this file or in separate files in the hooks folder.
8
+
9
+
10
+ def init_hooks(hooks: Hooks):
11
+ # pylint: disable=unused-argument
12
+ """Add hooks by calling hooks.register{sdk_init/before_request/after_success/after_error}Hook
13
+ with an instance of a hook that implements that specific Hook interface
14
+ Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance"""
15
+
16
+ # Register hook to fix multipart file field names that incorrectly have '[]' suffix
17
+ hooks.register_sdk_init_hook(MultipartFileFieldFixHook())
@@ -0,0 +1,76 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ import httpx
4
+ from .types import (
5
+ SDKInitHook,
6
+ BeforeRequestContext,
7
+ BeforeRequestHook,
8
+ AfterSuccessContext,
9
+ AfterSuccessHook,
10
+ AfterErrorContext,
11
+ AfterErrorHook,
12
+ Hooks,
13
+ )
14
+ from .registration import init_hooks
15
+ from typing import List, Optional, Tuple
16
+ from glean.api_client.httpclient import HttpClient
17
+
18
+
19
+ class SDKHooks(Hooks):
20
+ def __init__(self) -> None:
21
+ self.sdk_init_hooks: List[SDKInitHook] = []
22
+ self.before_request_hooks: List[BeforeRequestHook] = []
23
+ self.after_success_hooks: List[AfterSuccessHook] = []
24
+ self.after_error_hooks: List[AfterErrorHook] = []
25
+ init_hooks(self)
26
+
27
+ def register_sdk_init_hook(self, hook: SDKInitHook) -> None:
28
+ self.sdk_init_hooks.append(hook)
29
+
30
+ def register_before_request_hook(self, hook: BeforeRequestHook) -> None:
31
+ self.before_request_hooks.append(hook)
32
+
33
+ def register_after_success_hook(self, hook: AfterSuccessHook) -> None:
34
+ self.after_success_hooks.append(hook)
35
+
36
+ def register_after_error_hook(self, hook: AfterErrorHook) -> None:
37
+ self.after_error_hooks.append(hook)
38
+
39
+ def sdk_init(self, base_url: str, client: HttpClient) -> Tuple[str, HttpClient]:
40
+ for hook in self.sdk_init_hooks:
41
+ base_url, client = hook.sdk_init(base_url, client)
42
+ return base_url, client
43
+
44
+ def before_request(
45
+ self, hook_ctx: BeforeRequestContext, request: httpx.Request
46
+ ) -> httpx.Request:
47
+ for hook in self.before_request_hooks:
48
+ out = hook.before_request(hook_ctx, request)
49
+ if isinstance(out, Exception):
50
+ raise out
51
+ request = out
52
+
53
+ return request
54
+
55
+ def after_success(
56
+ self, hook_ctx: AfterSuccessContext, response: httpx.Response
57
+ ) -> httpx.Response:
58
+ for hook in self.after_success_hooks:
59
+ out = hook.after_success(hook_ctx, response)
60
+ if isinstance(out, Exception):
61
+ raise out
62
+ response = out
63
+ return response
64
+
65
+ def after_error(
66
+ self,
67
+ hook_ctx: AfterErrorContext,
68
+ response: Optional[httpx.Response],
69
+ error: Optional[Exception],
70
+ ) -> Tuple[Optional[httpx.Response], Optional[Exception]]:
71
+ for hook in self.after_error_hooks:
72
+ result = hook.after_error(hook_ctx, response, error)
73
+ if isinstance(result, Exception):
74
+ raise result
75
+ response, error = result
76
+ return response, error
@@ -0,0 +1,113 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from abc import ABC, abstractmethod
4
+ from glean.api_client.httpclient import HttpClient
5
+ from glean.api_client.sdkconfiguration import SDKConfiguration
6
+ import httpx
7
+ from typing import Any, Callable, List, Optional, Tuple, Union
8
+
9
+
10
+ class HookContext:
11
+ config: SDKConfiguration
12
+ base_url: str
13
+ operation_id: str
14
+ oauth2_scopes: Optional[List[str]] = None
15
+ security_source: Optional[Union[Any, Callable[[], Any]]] = None
16
+
17
+ def __init__(
18
+ self,
19
+ config: SDKConfiguration,
20
+ base_url: str,
21
+ operation_id: str,
22
+ oauth2_scopes: Optional[List[str]],
23
+ security_source: Optional[Union[Any, Callable[[], Any]]],
24
+ ):
25
+ self.config = config
26
+ self.base_url = base_url
27
+ self.operation_id = operation_id
28
+ self.oauth2_scopes = oauth2_scopes
29
+ self.security_source = security_source
30
+
31
+
32
+ class BeforeRequestContext(HookContext):
33
+ def __init__(self, hook_ctx: HookContext):
34
+ super().__init__(
35
+ hook_ctx.config,
36
+ hook_ctx.base_url,
37
+ hook_ctx.operation_id,
38
+ hook_ctx.oauth2_scopes,
39
+ hook_ctx.security_source,
40
+ )
41
+
42
+
43
+ class AfterSuccessContext(HookContext):
44
+ def __init__(self, hook_ctx: HookContext):
45
+ super().__init__(
46
+ hook_ctx.config,
47
+ hook_ctx.base_url,
48
+ hook_ctx.operation_id,
49
+ hook_ctx.oauth2_scopes,
50
+ hook_ctx.security_source,
51
+ )
52
+
53
+
54
+ class AfterErrorContext(HookContext):
55
+ def __init__(self, hook_ctx: HookContext):
56
+ super().__init__(
57
+ hook_ctx.config,
58
+ hook_ctx.base_url,
59
+ hook_ctx.operation_id,
60
+ hook_ctx.oauth2_scopes,
61
+ hook_ctx.security_source,
62
+ )
63
+
64
+
65
+ class SDKInitHook(ABC):
66
+ @abstractmethod
67
+ def sdk_init(self, base_url: str, client: HttpClient) -> Tuple[str, HttpClient]:
68
+ pass
69
+
70
+
71
+ class BeforeRequestHook(ABC):
72
+ @abstractmethod
73
+ def before_request(
74
+ self, hook_ctx: BeforeRequestContext, request: httpx.Request
75
+ ) -> Union[httpx.Request, Exception]:
76
+ pass
77
+
78
+
79
+ class AfterSuccessHook(ABC):
80
+ @abstractmethod
81
+ def after_success(
82
+ self, hook_ctx: AfterSuccessContext, response: httpx.Response
83
+ ) -> Union[httpx.Response, Exception]:
84
+ pass
85
+
86
+
87
+ class AfterErrorHook(ABC):
88
+ @abstractmethod
89
+ def after_error(
90
+ self,
91
+ hook_ctx: AfterErrorContext,
92
+ response: Optional[httpx.Response],
93
+ error: Optional[Exception],
94
+ ) -> Union[Tuple[Optional[httpx.Response], Optional[Exception]], Exception]:
95
+ pass
96
+
97
+
98
+ class Hooks(ABC):
99
+ @abstractmethod
100
+ def register_sdk_init_hook(self, hook: SDKInitHook):
101
+ pass
102
+
103
+ @abstractmethod
104
+ def register_before_request_hook(self, hook: BeforeRequestHook):
105
+ pass
106
+
107
+ @abstractmethod
108
+ def register_after_success_hook(self, hook: AfterSuccessHook):
109
+ pass
110
+
111
+ @abstractmethod
112
+ def register_after_error_hook(self, hook: AfterErrorHook):
113
+ pass
@@ -0,0 +1,15 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ import importlib.metadata
4
+
5
+ __title__: str = "glean"
6
+ __version__: str = "0.11.18"
7
+ __openapi_doc_version__: str = "0.9.0"
8
+ __gen_version__: str = "2.743.2"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.11.18 2.743.2 0.9.0 glean"
10
+
11
+ try:
12
+ if __package__ is not None:
13
+ __version__ = importlib.metadata.version(__package__)
14
+ except importlib.metadata.PackageNotFoundError:
15
+ pass