@gleanwork/api-client 0.4.0 → 0.4.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 (173) hide show
  1. package/FUNCTIONS.md +1 -1
  2. package/REACT_QUERY.md +3 -3
  3. package/README.md +11 -11
  4. package/dist/commonjs/__tests__/activity.test.js +2 -2
  5. package/dist/commonjs/__tests__/activity.test.js.map +1 -1
  6. package/dist/commonjs/__tests__/adminsearch.test.js +1 -1
  7. package/dist/commonjs/__tests__/adminsearch.test.js.map +1 -1
  8. package/dist/commonjs/__tests__/agents.test.js +4 -4
  9. package/dist/commonjs/__tests__/agents.test.js.map +1 -1
  10. package/dist/commonjs/__tests__/announcements.test.js +3 -3
  11. package/dist/commonjs/__tests__/announcements.test.js.map +1 -1
  12. package/dist/commonjs/__tests__/answers.test.js +5 -5
  13. package/dist/commonjs/__tests__/answers.test.js.map +1 -1
  14. package/dist/commonjs/__tests__/chat.test.js +18 -18
  15. package/dist/commonjs/__tests__/chat.test.js.map +1 -1
  16. package/dist/commonjs/__tests__/clientauthentication.test.js +1 -1
  17. package/dist/commonjs/__tests__/clientauthentication.test.js.map +1 -1
  18. package/dist/commonjs/__tests__/clientdocuments.test.js +4 -4
  19. package/dist/commonjs/__tests__/clientdocuments.test.js.map +1 -1
  20. package/dist/commonjs/__tests__/clientsearch.test.js +3 -3
  21. package/dist/commonjs/__tests__/clientsearch.test.js.map +1 -1
  22. package/dist/commonjs/__tests__/clientshortcuts.test.js +5 -5
  23. package/dist/commonjs/__tests__/clientshortcuts.test.js.map +1 -1
  24. package/dist/commonjs/__tests__/collections.test.js +8 -8
  25. package/dist/commonjs/__tests__/collections.test.js.map +1 -1
  26. package/dist/commonjs/__tests__/datasources.test.js +2 -2
  27. package/dist/commonjs/__tests__/datasources.test.js.map +1 -1
  28. package/dist/commonjs/__tests__/entities.test.js +2 -2
  29. package/dist/commonjs/__tests__/entities.test.js.map +1 -1
  30. package/dist/commonjs/__tests__/indexingauthentication.test.js +1 -1
  31. package/dist/commonjs/__tests__/indexingauthentication.test.js.map +1 -1
  32. package/dist/commonjs/__tests__/indexingdocuments.test.js +8 -8
  33. package/dist/commonjs/__tests__/indexingdocuments.test.js.map +1 -1
  34. package/dist/commonjs/__tests__/indexingpeople.test.js +2 -2
  35. package/dist/commonjs/__tests__/indexingpeople.test.js.map +1 -1
  36. package/dist/commonjs/__tests__/insights.test.js +1 -1
  37. package/dist/commonjs/__tests__/insights.test.js.map +1 -1
  38. package/dist/commonjs/__tests__/messages.test.js +1 -1
  39. package/dist/commonjs/__tests__/messages.test.js.map +1 -1
  40. package/dist/commonjs/__tests__/permissions.test.js +12 -12
  41. package/dist/commonjs/__tests__/permissions.test.js.map +1 -1
  42. package/dist/commonjs/__tests__/pins.test.js +5 -5
  43. package/dist/commonjs/__tests__/pins.test.js.map +1 -1
  44. package/dist/commonjs/__tests__/policies.test.js +2 -2
  45. package/dist/commonjs/__tests__/policies.test.js.map +1 -1
  46. package/dist/commonjs/__tests__/search.test.js +1 -1
  47. package/dist/commonjs/__tests__/search.test.js.map +1 -1
  48. package/dist/commonjs/__tests__/verification.test.js +3 -3
  49. package/dist/commonjs/__tests__/verification.test.js.map +1 -1
  50. package/dist/commonjs/lib/config.d.ts +2 -2
  51. package/dist/commonjs/lib/config.js +2 -2
  52. package/dist/commonjs/lib/env.d.ts +1 -1
  53. package/dist/commonjs/lib/env.d.ts.map +1 -1
  54. package/dist/commonjs/lib/env.js +1 -1
  55. package/dist/commonjs/lib/env.js.map +1 -1
  56. package/dist/commonjs/lib/security.js +2 -2
  57. package/dist/commonjs/lib/security.js.map +1 -1
  58. package/dist/commonjs/models/components/security.d.ts +2 -2
  59. package/dist/commonjs/models/components/security.d.ts.map +1 -1
  60. package/dist/commonjs/models/components/security.js +11 -2
  61. package/dist/commonjs/models/components/security.js.map +1 -1
  62. package/dist/esm/__tests__/activity.test.js +2 -2
  63. package/dist/esm/__tests__/activity.test.js.map +1 -1
  64. package/dist/esm/__tests__/adminsearch.test.js +1 -1
  65. package/dist/esm/__tests__/adminsearch.test.js.map +1 -1
  66. package/dist/esm/__tests__/agents.test.js +4 -4
  67. package/dist/esm/__tests__/agents.test.js.map +1 -1
  68. package/dist/esm/__tests__/announcements.test.js +3 -3
  69. package/dist/esm/__tests__/announcements.test.js.map +1 -1
  70. package/dist/esm/__tests__/answers.test.js +5 -5
  71. package/dist/esm/__tests__/answers.test.js.map +1 -1
  72. package/dist/esm/__tests__/chat.test.js +18 -18
  73. package/dist/esm/__tests__/chat.test.js.map +1 -1
  74. package/dist/esm/__tests__/clientauthentication.test.js +1 -1
  75. package/dist/esm/__tests__/clientauthentication.test.js.map +1 -1
  76. package/dist/esm/__tests__/clientdocuments.test.js +4 -4
  77. package/dist/esm/__tests__/clientdocuments.test.js.map +1 -1
  78. package/dist/esm/__tests__/clientsearch.test.js +3 -3
  79. package/dist/esm/__tests__/clientsearch.test.js.map +1 -1
  80. package/dist/esm/__tests__/clientshortcuts.test.js +5 -5
  81. package/dist/esm/__tests__/clientshortcuts.test.js.map +1 -1
  82. package/dist/esm/__tests__/collections.test.js +8 -8
  83. package/dist/esm/__tests__/collections.test.js.map +1 -1
  84. package/dist/esm/__tests__/datasources.test.js +2 -2
  85. package/dist/esm/__tests__/datasources.test.js.map +1 -1
  86. package/dist/esm/__tests__/entities.test.js +2 -2
  87. package/dist/esm/__tests__/entities.test.js.map +1 -1
  88. package/dist/esm/__tests__/indexingauthentication.test.js +1 -1
  89. package/dist/esm/__tests__/indexingauthentication.test.js.map +1 -1
  90. package/dist/esm/__tests__/indexingdocuments.test.js +8 -8
  91. package/dist/esm/__tests__/indexingdocuments.test.js.map +1 -1
  92. package/dist/esm/__tests__/indexingpeople.test.js +2 -2
  93. package/dist/esm/__tests__/indexingpeople.test.js.map +1 -1
  94. package/dist/esm/__tests__/insights.test.js +1 -1
  95. package/dist/esm/__tests__/insights.test.js.map +1 -1
  96. package/dist/esm/__tests__/messages.test.js +1 -1
  97. package/dist/esm/__tests__/messages.test.js.map +1 -1
  98. package/dist/esm/__tests__/permissions.test.js +12 -12
  99. package/dist/esm/__tests__/permissions.test.js.map +1 -1
  100. package/dist/esm/__tests__/pins.test.js +5 -5
  101. package/dist/esm/__tests__/pins.test.js.map +1 -1
  102. package/dist/esm/__tests__/policies.test.js +2 -2
  103. package/dist/esm/__tests__/policies.test.js.map +1 -1
  104. package/dist/esm/__tests__/search.test.js +1 -1
  105. package/dist/esm/__tests__/search.test.js.map +1 -1
  106. package/dist/esm/__tests__/verification.test.js +3 -3
  107. package/dist/esm/__tests__/verification.test.js.map +1 -1
  108. package/dist/esm/lib/config.d.ts +2 -2
  109. package/dist/esm/lib/config.js +2 -2
  110. package/dist/esm/lib/env.d.ts +1 -1
  111. package/dist/esm/lib/env.d.ts.map +1 -1
  112. package/dist/esm/lib/env.js +1 -1
  113. package/dist/esm/lib/env.js.map +1 -1
  114. package/dist/esm/lib/security.js +2 -2
  115. package/dist/esm/lib/security.js.map +1 -1
  116. package/dist/esm/models/components/security.d.ts +2 -2
  117. package/dist/esm/models/components/security.d.ts.map +1 -1
  118. package/dist/esm/models/components/security.js +11 -2
  119. package/dist/esm/models/components/security.js.map +1 -1
  120. package/docs/sdks/activity/README.md +4 -4
  121. package/docs/sdks/agents/README.md +10 -10
  122. package/docs/sdks/announcements/README.md +6097 -861
  123. package/docs/sdks/answers/README.md +10 -10
  124. package/docs/sdks/chat/README.md +20 -20
  125. package/docs/sdks/clientauthentication/README.md +2 -2
  126. package/docs/sdks/clientdocuments/README.md +8 -8
  127. package/docs/sdks/clientshortcuts/README.md +10 -10
  128. package/docs/sdks/collections/README.md +16 -16
  129. package/docs/sdks/datasource/README.md +2 -2
  130. package/docs/sdks/datasources/README.md +4 -4
  131. package/docs/sdks/entities/README.md +4 -4
  132. package/docs/sdks/indexingauthentication/README.md +2 -2
  133. package/docs/sdks/indexingdocuments/README.md +20 -20
  134. package/docs/sdks/indexingshortcuts/README.md +4 -4
  135. package/docs/sdks/insights/README.md +2 -2
  136. package/docs/sdks/messages/README.md +2 -2
  137. package/docs/sdks/people/README.md +18 -18
  138. package/docs/sdks/permissions/README.md +24 -24
  139. package/docs/sdks/pins/README.md +10 -10
  140. package/docs/sdks/policies/README.md +10 -10
  141. package/docs/sdks/reports/README.md +6 -6
  142. package/docs/sdks/search/README.md +10 -10
  143. package/docs/sdks/verification/README.md +6 -6
  144. package/docs/sdks/visibilityoverrides/README.md +4 -4
  145. package/jsr.json +1 -1
  146. package/package.json +1 -1
  147. package/src/__tests__/activity.test.ts +2 -2
  148. package/src/__tests__/adminsearch.test.ts +1 -1
  149. package/src/__tests__/agents.test.ts +4 -4
  150. package/src/__tests__/announcements.test.ts +3 -3
  151. package/src/__tests__/answers.test.ts +5 -5
  152. package/src/__tests__/chat.test.ts +18 -18
  153. package/src/__tests__/clientauthentication.test.ts +1 -1
  154. package/src/__tests__/clientdocuments.test.ts +4 -4
  155. package/src/__tests__/clientsearch.test.ts +3 -3
  156. package/src/__tests__/clientshortcuts.test.ts +5 -5
  157. package/src/__tests__/collections.test.ts +8 -8
  158. package/src/__tests__/datasources.test.ts +2 -2
  159. package/src/__tests__/entities.test.ts +2 -2
  160. package/src/__tests__/indexingauthentication.test.ts +1 -1
  161. package/src/__tests__/indexingdocuments.test.ts +8 -8
  162. package/src/__tests__/indexingpeople.test.ts +2 -2
  163. package/src/__tests__/insights.test.ts +1 -1
  164. package/src/__tests__/messages.test.ts +1 -1
  165. package/src/__tests__/permissions.test.ts +12 -12
  166. package/src/__tests__/pins.test.ts +5 -5
  167. package/src/__tests__/policies.test.ts +2 -2
  168. package/src/__tests__/search.test.ts +1 -1
  169. package/src/__tests__/verification.test.ts +3 -3
  170. package/src/lib/config.ts +2 -2
  171. package/src/lib/env.ts +2 -2
  172. package/src/lib/security.ts +2 -2
  173. package/src/models/components/security.ts +13 -4
@@ -23,7 +23,7 @@ import { RFCDate } from "@gleanwork/api-client/types";
23
23
 
24
24
  const glean = new Glean({
25
25
  security: {
26
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
26
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
27
27
  },
28
28
  });
29
29
 
@@ -1383,7 +1383,7 @@ import { RFCDate } from "@gleanwork/api-client/types";
1383
1383
  // You can create one instance of it to use across an application.
1384
1384
  const glean = new GleanCore({
1385
1385
  security: {
1386
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
1386
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
1387
1387
  },
1388
1388
  });
1389
1389
 
@@ -2783,7 +2783,7 @@ import { Glean } from "@gleanwork/api-client";
2783
2783
 
2784
2784
  const glean = new Glean({
2785
2785
  security: {
2786
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
2786
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
2787
2787
  },
2788
2788
  });
2789
2789
 
@@ -2811,7 +2811,7 @@ import { clientAnswersDelete } from "@gleanwork/api-client/funcs/clientAnswersDe
2811
2811
  // You can create one instance of it to use across an application.
2812
2812
  const glean = new GleanCore({
2813
2813
  security: {
2814
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
2814
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
2815
2815
  },
2816
2816
  });
2817
2817
 
@@ -2881,7 +2881,7 @@ import { RFCDate } from "@gleanwork/api-client/types";
2881
2881
 
2882
2882
  const glean = new Glean({
2883
2883
  security: {
2884
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
2884
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
2885
2885
  },
2886
2886
  });
2887
2887
 
@@ -3829,7 +3829,7 @@ import { RFCDate } from "@gleanwork/api-client/types";
3829
3829
  // You can create one instance of it to use across an application.
3830
3830
  const glean = new GleanCore({
3831
3831
  security: {
3832
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
3832
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
3833
3833
  },
3834
3834
  });
3835
3835
 
@@ -4817,7 +4817,7 @@ import { Glean } from "@gleanwork/api-client";
4817
4817
 
4818
4818
  const glean = new Glean({
4819
4819
  security: {
4820
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
4820
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
4821
4821
  },
4822
4822
  });
4823
4823
 
@@ -4846,7 +4846,7 @@ import { clientAnswersRetrieve } from "@gleanwork/api-client/funcs/clientAnswers
4846
4846
  // You can create one instance of it to use across an application.
4847
4847
  const glean = new GleanCore({
4848
4848
  security: {
4849
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
4849
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
4850
4850
  },
4851
4851
  });
4852
4852
 
@@ -4916,7 +4916,7 @@ import { Glean } from "@gleanwork/api-client";
4916
4916
 
4917
4917
  const glean = new Glean({
4918
4918
  security: {
4919
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
4919
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
4920
4920
  },
4921
4921
  });
4922
4922
 
@@ -4942,7 +4942,7 @@ import { clientAnswersList } from "@gleanwork/api-client/funcs/clientAnswersList
4942
4942
  // You can create one instance of it to use across an application.
4943
4943
  const glean = new GleanCore({
4944
4944
  security: {
4945
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
4945
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
4946
4946
  },
4947
4947
  });
4948
4948
 
@@ -27,7 +27,7 @@ import { Glean } from "@gleanwork/api-client";
27
27
 
28
28
  const glean = new Glean({
29
29
  security: {
30
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
30
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
31
31
  },
32
32
  });
33
33
 
@@ -63,7 +63,7 @@ import { clientChatCreate } from "@gleanwork/api-client/funcs/clientChatCreate.j
63
63
  // You can create one instance of it to use across an application.
64
64
  const glean = new GleanCore({
65
65
  security: {
66
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
66
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
67
67
  },
68
68
  });
69
69
 
@@ -141,7 +141,7 @@ import { Glean } from "@gleanwork/api-client";
141
141
 
142
142
  const glean = new Glean({
143
143
  security: {
144
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
144
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
145
145
  },
146
146
  });
147
147
 
@@ -166,7 +166,7 @@ import { clientChatDeleteAll } from "@gleanwork/api-client/funcs/clientChatDelet
166
166
  // You can create one instance of it to use across an application.
167
167
  const glean = new GleanCore({
168
168
  security: {
169
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
169
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
170
170
  },
171
171
  });
172
172
 
@@ -232,7 +232,7 @@ import { Glean } from "@gleanwork/api-client";
232
232
 
233
233
  const glean = new Glean({
234
234
  security: {
235
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
235
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
236
236
  },
237
237
  });
238
238
 
@@ -259,7 +259,7 @@ import { clientChatDelete } from "@gleanwork/api-client/funcs/clientChatDelete.j
259
259
  // You can create one instance of it to use across an application.
260
260
  const glean = new GleanCore({
261
261
  security: {
262
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
262
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
263
263
  },
264
264
  });
265
265
 
@@ -328,7 +328,7 @@ import { Glean } from "@gleanwork/api-client";
328
328
 
329
329
  const glean = new Glean({
330
330
  security: {
331
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
331
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
332
332
  },
333
333
  });
334
334
 
@@ -356,7 +356,7 @@ import { clientChatRetrieve } from "@gleanwork/api-client/funcs/clientChatRetrie
356
356
  // You can create one instance of it to use across an application.
357
357
  const glean = new GleanCore({
358
358
  security: {
359
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
359
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
360
360
  },
361
361
  });
362
362
 
@@ -426,7 +426,7 @@ import { Glean } from "@gleanwork/api-client";
426
426
 
427
427
  const glean = new Glean({
428
428
  security: {
429
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
429
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
430
430
  },
431
431
  });
432
432
 
@@ -452,7 +452,7 @@ import { clientChatList } from "@gleanwork/api-client/funcs/clientChatList.js";
452
452
  // You can create one instance of it to use across an application.
453
453
  const glean = new GleanCore({
454
454
  security: {
455
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
455
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
456
456
  },
457
457
  });
458
458
 
@@ -519,7 +519,7 @@ import { Glean } from "@gleanwork/api-client";
519
519
 
520
520
  const glean = new Glean({
521
521
  security: {
522
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
522
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
523
523
  },
524
524
  });
525
525
 
@@ -547,7 +547,7 @@ import { clientChatRetrieveApplication } from "@gleanwork/api-client/funcs/clien
547
547
  // You can create one instance of it to use across an application.
548
548
  const glean = new GleanCore({
549
549
  security: {
550
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
550
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
551
551
  },
552
552
  });
553
553
 
@@ -618,7 +618,7 @@ import { openAsBlob } from "node:fs";
618
618
 
619
619
  const glean = new Glean({
620
620
  security: {
621
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
621
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
622
622
  },
623
623
  });
624
624
 
@@ -652,7 +652,7 @@ import { openAsBlob } from "node:fs";
652
652
  // You can create one instance of it to use across an application.
653
653
  const glean = new GleanCore({
654
654
  security: {
655
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
655
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
656
656
  },
657
657
  });
658
658
 
@@ -727,7 +727,7 @@ import { Glean } from "@gleanwork/api-client";
727
727
 
728
728
  const glean = new Glean({
729
729
  security: {
730
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
730
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
731
731
  },
732
732
  });
733
733
 
@@ -757,7 +757,7 @@ import { clientChatRetrieveFiles } from "@gleanwork/api-client/funcs/clientChatR
757
757
  // You can create one instance of it to use across an application.
758
758
  const glean = new GleanCore({
759
759
  security: {
760
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
760
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
761
761
  },
762
762
  });
763
763
 
@@ -829,7 +829,7 @@ import { Glean } from "@gleanwork/api-client";
829
829
 
830
830
  const glean = new Glean({
831
831
  security: {
832
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
832
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
833
833
  },
834
834
  });
835
835
 
@@ -860,7 +860,7 @@ import { clientChatDeleteFiles } from "@gleanwork/api-client/funcs/clientChatDel
860
860
  // You can create one instance of it to use across an application.
861
861
  const glean = new GleanCore({
862
862
  security: {
863
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
863
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
864
864
  },
865
865
  });
866
866
 
@@ -933,7 +933,7 @@ import { Glean } from "@gleanwork/api-client";
933
933
 
934
934
  const glean = new Glean({
935
935
  security: {
936
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
936
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
937
937
  },
938
938
  });
939
939
 
@@ -969,7 +969,7 @@ import { clientChatCreateStream } from "@gleanwork/api-client/funcs/clientChatCr
969
969
  // You can create one instance of it to use across an application.
970
970
  const glean = new GleanCore({
971
971
  security: {
972
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
972
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
973
973
  },
974
974
  });
975
975
 
@@ -18,7 +18,7 @@ import { Glean } from "@gleanwork/api-client";
18
18
 
19
19
  const glean = new Glean({
20
20
  security: {
21
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
21
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
22
22
  },
23
23
  });
24
24
 
@@ -44,7 +44,7 @@ import { clientAuthenticationCreateToken } from "@gleanwork/api-client/funcs/cli
44
44
  // You can create one instance of it to use across an application.
45
45
  const glean = new GleanCore({
46
46
  security: {
47
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
47
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
48
48
  },
49
49
  });
50
50
 
@@ -21,7 +21,7 @@ import { Glean } from "@gleanwork/api-client";
21
21
 
22
22
  const glean = new Glean({
23
23
  security: {
24
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
24
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
25
25
  },
26
26
  });
27
27
 
@@ -47,7 +47,7 @@ import { clientDocumentsRetrievePermissions } from "@gleanwork/api-client/funcs/
47
47
  // You can create one instance of it to use across an application.
48
48
  const glean = new GleanCore({
49
49
  security: {
50
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
50
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
51
51
  },
52
52
  });
53
53
 
@@ -114,7 +114,7 @@ import { Glean } from "@gleanwork/api-client";
114
114
 
115
115
  const glean = new Glean({
116
116
  security: {
117
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
117
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
118
118
  },
119
119
  });
120
120
 
@@ -140,7 +140,7 @@ import { clientDocumentsRetrieve } from "@gleanwork/api-client/funcs/clientDocum
140
140
  // You can create one instance of it to use across an application.
141
141
  const glean = new GleanCore({
142
142
  security: {
143
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
143
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
144
144
  },
145
145
  });
146
146
 
@@ -207,7 +207,7 @@ import { Glean } from "@gleanwork/api-client";
207
207
 
208
208
  const glean = new Glean({
209
209
  security: {
210
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
210
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
211
211
  },
212
212
  });
213
213
 
@@ -270,7 +270,7 @@ import { clientDocumentsRetrieveByFacets } from "@gleanwork/api-client/funcs/cli
270
270
  // You can create one instance of it to use across an application.
271
271
  const glean = new GleanCore({
272
272
  security: {
273
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
273
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
274
274
  },
275
275
  });
276
276
 
@@ -374,7 +374,7 @@ import { Glean } from "@gleanwork/api-client";
374
374
 
375
375
  const glean = new Glean({
376
376
  security: {
377
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
377
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
378
378
  },
379
379
  });
380
380
 
@@ -406,7 +406,7 @@ import { clientDocumentsSummarize } from "@gleanwork/api-client/funcs/clientDocu
406
406
  // You can create one instance of it to use across an application.
407
407
  const glean = new GleanCore({
408
408
  security: {
409
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
409
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
410
410
  },
411
411
  });
412
412
 
@@ -23,7 +23,7 @@ import { RFCDate } from "@gleanwork/api-client/types";
23
23
 
24
24
  const glean = new Glean({
25
25
  security: {
26
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
26
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
27
27
  },
28
28
  });
29
29
 
@@ -1635,7 +1635,7 @@ import { RFCDate } from "@gleanwork/api-client/types";
1635
1635
  // You can create one instance of it to use across an application.
1636
1636
  const glean = new GleanCore({
1637
1637
  security: {
1638
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
1638
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
1639
1639
  },
1640
1640
  });
1641
1641
 
@@ -3287,7 +3287,7 @@ import { Glean } from "@gleanwork/api-client";
3287
3287
 
3288
3288
  const glean = new Glean({
3289
3289
  security: {
3290
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
3290
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
3291
3291
  },
3292
3292
  });
3293
3293
 
@@ -3314,7 +3314,7 @@ import { clientShortcutsDelete } from "@gleanwork/api-client/funcs/clientShortcu
3314
3314
  // You can create one instance of it to use across an application.
3315
3315
  const glean = new GleanCore({
3316
3316
  security: {
3317
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
3317
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
3318
3318
  },
3319
3319
  });
3320
3320
 
@@ -3382,7 +3382,7 @@ import { Glean } from "@gleanwork/api-client";
3382
3382
 
3383
3383
  const glean = new Glean({
3384
3384
  security: {
3385
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
3385
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
3386
3386
  },
3387
3387
  });
3388
3388
 
@@ -3410,7 +3410,7 @@ import { clientShortcutsRetrieve } from "@gleanwork/api-client/funcs/clientShort
3410
3410
  // You can create one instance of it to use across an application.
3411
3411
  const glean = new GleanCore({
3412
3412
  security: {
3413
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
3413
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
3414
3414
  },
3415
3415
  });
3416
3416
 
@@ -3479,7 +3479,7 @@ import { Glean } from "@gleanwork/api-client";
3479
3479
 
3480
3480
  const glean = new Glean({
3481
3481
  security: {
3482
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
3482
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
3483
3483
  },
3484
3484
  });
3485
3485
 
@@ -3522,7 +3522,7 @@ import { clientShortcutsList } from "@gleanwork/api-client/funcs/clientShortcuts
3522
3522
  // You can create one instance of it to use across an application.
3523
3523
  const glean = new GleanCore({
3524
3524
  security: {
3525
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
3525
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
3526
3526
  },
3527
3527
  });
3528
3528
 
@@ -3607,7 +3607,7 @@ import { RFCDate } from "@gleanwork/api-client/types";
3607
3607
 
3608
3608
  const glean = new Glean({
3609
3609
  security: {
3610
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
3610
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
3611
3611
  },
3612
3612
  });
3613
3613
 
@@ -6475,7 +6475,7 @@ import { RFCDate } from "@gleanwork/api-client/types";
6475
6475
  // You can create one instance of it to use across an application.
6476
6476
  const glean = new GleanCore({
6477
6477
  security: {
6478
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
6478
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
6479
6479
  },
6480
6480
  });
6481
6481
 
@@ -25,7 +25,7 @@ import { Glean } from "@gleanwork/api-client";
25
25
 
26
26
  const glean = new Glean({
27
27
  security: {
28
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
28
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
29
29
  },
30
30
  });
31
31
 
@@ -53,7 +53,7 @@ import { clientCollectionsAddItems } from "@gleanwork/api-client/funcs/clientCol
53
53
  // You can create one instance of it to use across an application.
54
54
  const glean = new GleanCore({
55
55
  security: {
56
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
56
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
57
57
  },
58
58
  });
59
59
 
@@ -123,7 +123,7 @@ import { RFCDate } from "@gleanwork/api-client/types";
123
123
 
124
124
  const glean = new Glean({
125
125
  security: {
126
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
126
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
127
127
  },
128
128
  });
129
129
 
@@ -801,7 +801,7 @@ import { RFCDate } from "@gleanwork/api-client/types";
801
801
  // You can create one instance of it to use across an application.
802
802
  const glean = new GleanCore({
803
803
  security: {
804
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
804
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
805
805
  },
806
806
  });
807
807
 
@@ -1520,7 +1520,7 @@ import { Glean } from "@gleanwork/api-client";
1520
1520
 
1521
1521
  const glean = new Glean({
1522
1522
  security: {
1523
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
1523
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
1524
1524
  },
1525
1525
  });
1526
1526
 
@@ -1551,7 +1551,7 @@ import { clientCollectionsDelete } from "@gleanwork/api-client/funcs/clientColle
1551
1551
  // You can create one instance of it to use across an application.
1552
1552
  const glean = new GleanCore({
1553
1553
  security: {
1554
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
1554
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
1555
1555
  },
1556
1556
  });
1557
1557
 
@@ -1624,7 +1624,7 @@ import { Glean } from "@gleanwork/api-client";
1624
1624
 
1625
1625
  const glean = new Glean({
1626
1626
  security: {
1627
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
1627
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
1628
1628
  },
1629
1629
  });
1630
1630
 
@@ -1653,7 +1653,7 @@ import { clientCollectionsDeleteItem } from "@gleanwork/api-client/funcs/clientC
1653
1653
  // You can create one instance of it to use across an application.
1654
1654
  const glean = new GleanCore({
1655
1655
  security: {
1656
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
1656
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
1657
1657
  },
1658
1658
  });
1659
1659
 
@@ -1724,7 +1724,7 @@ import { RFCDate } from "@gleanwork/api-client/types";
1724
1724
 
1725
1725
  const glean = new Glean({
1726
1726
  security: {
1727
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
1727
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
1728
1728
  },
1729
1729
  });
1730
1730
 
@@ -2803,7 +2803,7 @@ import { RFCDate } from "@gleanwork/api-client/types";
2803
2803
  // You can create one instance of it to use across an application.
2804
2804
  const glean = new GleanCore({
2805
2805
  security: {
2806
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
2806
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
2807
2807
  },
2808
2808
  });
2809
2809
 
@@ -3923,7 +3923,7 @@ import { Glean } from "@gleanwork/api-client";
3923
3923
 
3924
3924
  const glean = new Glean({
3925
3925
  security: {
3926
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
3926
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
3927
3927
  },
3928
3928
  });
3929
3929
 
@@ -3952,7 +3952,7 @@ import { clientCollectionsUpdateItem } from "@gleanwork/api-client/funcs/clientC
3952
3952
  // You can create one instance of it to use across an application.
3953
3953
  const glean = new GleanCore({
3954
3954
  security: {
3955
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
3955
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
3956
3956
  },
3957
3957
  });
3958
3958
 
@@ -4022,7 +4022,7 @@ import { Glean } from "@gleanwork/api-client";
4022
4022
 
4023
4023
  const glean = new Glean({
4024
4024
  security: {
4025
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
4025
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
4026
4026
  },
4027
4027
  });
4028
4028
 
@@ -4050,7 +4050,7 @@ import { clientCollectionsRetrieve } from "@gleanwork/api-client/funcs/clientCol
4050
4050
  // You can create one instance of it to use across an application.
4051
4051
  const glean = new GleanCore({
4052
4052
  security: {
4053
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
4053
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
4054
4054
  },
4055
4055
  });
4056
4056
 
@@ -4119,7 +4119,7 @@ import { Glean } from "@gleanwork/api-client";
4119
4119
 
4120
4120
  const glean = new Glean({
4121
4121
  security: {
4122
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
4122
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
4123
4123
  },
4124
4124
  });
4125
4125
 
@@ -4145,7 +4145,7 @@ import { clientCollectionsList } from "@gleanwork/api-client/funcs/clientCollect
4145
4145
  // You can create one instance of it to use across an application.
4146
4146
  const glean = new GleanCore({
4147
4147
  security: {
4148
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
4148
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
4149
4149
  },
4150
4150
  });
4151
4151
 
@@ -22,7 +22,7 @@ import { Glean } from "@gleanwork/api-client";
22
22
 
23
23
  const glean = new Glean({
24
24
  security: {
25
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
25
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
26
26
  },
27
27
  });
28
28
 
@@ -48,7 +48,7 @@ import { indexingDatasourceStatus } from "@gleanwork/api-client/funcs/indexingDa
48
48
  // You can create one instance of it to use across an application.
49
49
  const glean = new GleanCore({
50
50
  security: {
51
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
51
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
52
52
  },
53
53
  });
54
54
 
@@ -19,7 +19,7 @@ import { Glean } from "@gleanwork/api-client";
19
19
 
20
20
  const glean = new Glean({
21
21
  security: {
22
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
22
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
23
23
  },
24
24
  });
25
25
 
@@ -57,7 +57,7 @@ import { indexingDatasourcesAdd } from "@gleanwork/api-client/funcs/indexingData
57
57
  // You can create one instance of it to use across an application.
58
58
  const glean = new GleanCore({
59
59
  security: {
60
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
60
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
61
61
  },
62
62
  });
63
63
 
@@ -136,7 +136,7 @@ import { Glean } from "@gleanwork/api-client";
136
136
 
137
137
  const glean = new Glean({
138
138
  security: {
139
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
139
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
140
140
  },
141
141
  });
142
142
 
@@ -164,7 +164,7 @@ import { indexingDatasourcesRetrieveConfig } from "@gleanwork/api-client/funcs/i
164
164
  // You can create one instance of it to use across an application.
165
165
  const glean = new GleanCore({
166
166
  security: {
167
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
167
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
168
168
  },
169
169
  });
170
170
 
@@ -19,7 +19,7 @@ import { Glean } from "@gleanwork/api-client";
19
19
 
20
20
  const glean = new Glean({
21
21
  security: {
22
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
22
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
23
23
  },
24
24
  });
25
25
 
@@ -62,7 +62,7 @@ import { clientEntitiesList } from "@gleanwork/api-client/funcs/clientEntitiesLi
62
62
  // You can create one instance of it to use across an application.
63
63
  const glean = new GleanCore({
64
64
  security: {
65
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
65
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
66
66
  },
67
67
  });
68
68
 
@@ -146,7 +146,7 @@ import { Glean } from "@gleanwork/api-client";
146
146
 
147
147
  const glean = new Glean({
148
148
  security: {
149
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
149
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
150
150
  },
151
151
  });
152
152
 
@@ -177,7 +177,7 @@ import { clientEntitiesReadPeople } from "@gleanwork/api-client/funcs/clientEnti
177
177
  // You can create one instance of it to use across an application.
178
178
  const glean = new GleanCore({
179
179
  security: {
180
- actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
180
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
181
181
  },
182
182
  });
183
183