effect-slack 0.1.0

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 (167) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +322 -0
  3. package/dist/Errors.d.ts +103 -0
  4. package/dist/Errors.d.ts.map +1 -0
  5. package/dist/Errors.js +84 -0
  6. package/dist/Errors.js.map +1 -0
  7. package/dist/Retry.d.ts +63 -0
  8. package/dist/Retry.d.ts.map +1 -0
  9. package/dist/Retry.js +77 -0
  10. package/dist/Retry.js.map +1 -0
  11. package/dist/SlackClient.d.ts +19 -0
  12. package/dist/SlackClient.d.ts.map +1 -0
  13. package/dist/SlackClient.js +21 -0
  14. package/dist/SlackClient.js.map +1 -0
  15. package/dist/SlackConfig.d.ts +26 -0
  16. package/dist/SlackConfig.d.ts.map +1 -0
  17. package/dist/SlackConfig.js +19 -0
  18. package/dist/SlackConfig.js.map +1 -0
  19. package/dist/SlackService.d.ts +32 -0
  20. package/dist/SlackService.d.ts.map +1 -0
  21. package/dist/SlackService.js +135 -0
  22. package/dist/SlackService.js.map +1 -0
  23. package/dist/generated/AdminService.d.ts +174 -0
  24. package/dist/generated/AdminService.d.ts.map +1 -0
  25. package/dist/generated/AdminService.js +1029 -0
  26. package/dist/generated/AdminService.js.map +1 -0
  27. package/dist/generated/ApiService.d.ts +18 -0
  28. package/dist/generated/ApiService.d.ts.map +1 -0
  29. package/dist/generated/ApiService.js +27 -0
  30. package/dist/generated/ApiService.js.map +1 -0
  31. package/dist/generated/AppsService.d.ts +33 -0
  32. package/dist/generated/AppsService.d.ts.map +1 -0
  33. package/dist/generated/AppsService.js +105 -0
  34. package/dist/generated/AppsService.js.map +1 -0
  35. package/dist/generated/AssistantService.d.ts +22 -0
  36. package/dist/generated/AssistantService.d.ts.map +1 -0
  37. package/dist/generated/AssistantService.js +49 -0
  38. package/dist/generated/AssistantService.js.map +1 -0
  39. package/dist/generated/AuthService.d.ts +22 -0
  40. package/dist/generated/AuthService.d.ts.map +1 -0
  41. package/dist/generated/AuthService.js +46 -0
  42. package/dist/generated/AuthService.js.map +1 -0
  43. package/dist/generated/BookmarksService.d.ts +21 -0
  44. package/dist/generated/BookmarksService.d.ts.map +1 -0
  45. package/dist/generated/BookmarksService.js +57 -0
  46. package/dist/generated/BookmarksService.js.map +1 -0
  47. package/dist/generated/BotsService.d.ts +18 -0
  48. package/dist/generated/BotsService.d.ts.map +1 -0
  49. package/dist/generated/BotsService.js +27 -0
  50. package/dist/generated/BotsService.js.map +1 -0
  51. package/dist/generated/CallsService.d.ts +25 -0
  52. package/dist/generated/CallsService.d.ts.map +1 -0
  53. package/dist/generated/CallsService.js +76 -0
  54. package/dist/generated/CallsService.js.map +1 -0
  55. package/dist/generated/CanvasesService.d.ts +27 -0
  56. package/dist/generated/CanvasesService.d.ts.map +1 -0
  57. package/dist/generated/CanvasesService.js +81 -0
  58. package/dist/generated/CanvasesService.js.map +1 -0
  59. package/dist/generated/ChatService.d.ts +32 -0
  60. package/dist/generated/ChatService.d.ts.map +1 -0
  61. package/dist/generated/ChatService.js +149 -0
  62. package/dist/generated/ChatService.js.map +1 -0
  63. package/dist/generated/ConversationsService.d.ts +51 -0
  64. package/dist/generated/ConversationsService.d.ts.map +1 -0
  65. package/dist/generated/ConversationsService.js +303 -0
  66. package/dist/generated/ConversationsService.js.map +1 -0
  67. package/dist/generated/DialogService.d.ts +18 -0
  68. package/dist/generated/DialogService.d.ts.map +1 -0
  69. package/dist/generated/DialogService.js +27 -0
  70. package/dist/generated/DialogService.js.map +1 -0
  71. package/dist/generated/DndService.d.ts +22 -0
  72. package/dist/generated/DndService.d.ts.map +1 -0
  73. package/dist/generated/DndService.js +67 -0
  74. package/dist/generated/DndService.js.map +1 -0
  75. package/dist/generated/EmojiService.d.ts +18 -0
  76. package/dist/generated/EmojiService.d.ts.map +1 -0
  77. package/dist/generated/EmojiService.js +27 -0
  78. package/dist/generated/EmojiService.js.map +1 -0
  79. package/dist/generated/EntityService.d.ts +18 -0
  80. package/dist/generated/EntityService.d.ts.map +1 -0
  81. package/dist/generated/EntityService.js +27 -0
  82. package/dist/generated/EntityService.js.map +1 -0
  83. package/dist/generated/FilesService.d.ts +37 -0
  84. package/dist/generated/FilesService.d.ts.map +1 -0
  85. package/dist/generated/FilesService.js +182 -0
  86. package/dist/generated/FilesService.js.map +1 -0
  87. package/dist/generated/FunctionsService.d.ts +19 -0
  88. package/dist/generated/FunctionsService.d.ts.map +1 -0
  89. package/dist/generated/FunctionsService.js +37 -0
  90. package/dist/generated/FunctionsService.js.map +1 -0
  91. package/dist/generated/MigrationService.d.ts +18 -0
  92. package/dist/generated/MigrationService.d.ts.map +1 -0
  93. package/dist/generated/MigrationService.js +27 -0
  94. package/dist/generated/MigrationService.js.map +1 -0
  95. package/dist/generated/OauthService.d.ts +22 -0
  96. package/dist/generated/OauthService.d.ts.map +1 -0
  97. package/dist/generated/OauthService.js +50 -0
  98. package/dist/generated/OauthService.js.map +1 -0
  99. package/dist/generated/OpenidService.d.ts +21 -0
  100. package/dist/generated/OpenidService.d.ts.map +1 -0
  101. package/dist/generated/OpenidService.js +39 -0
  102. package/dist/generated/OpenidService.js.map +1 -0
  103. package/dist/generated/PinsService.d.ts +20 -0
  104. package/dist/generated/PinsService.d.ts.map +1 -0
  105. package/dist/generated/PinsService.js +47 -0
  106. package/dist/generated/PinsService.js.map +1 -0
  107. package/dist/generated/ReactionsService.d.ts +21 -0
  108. package/dist/generated/ReactionsService.d.ts.map +1 -0
  109. package/dist/generated/ReactionsService.js +57 -0
  110. package/dist/generated/ReactionsService.js.map +1 -0
  111. package/dist/generated/RemindersService.d.ts +22 -0
  112. package/dist/generated/RemindersService.d.ts.map +1 -0
  113. package/dist/generated/RemindersService.js +67 -0
  114. package/dist/generated/RemindersService.js.map +1 -0
  115. package/dist/generated/RtmService.d.ts +19 -0
  116. package/dist/generated/RtmService.d.ts.map +1 -0
  117. package/dist/generated/RtmService.js +38 -0
  118. package/dist/generated/RtmService.js.map +1 -0
  119. package/dist/generated/SearchService.d.ts +20 -0
  120. package/dist/generated/SearchService.d.ts.map +1 -0
  121. package/dist/generated/SearchService.js +47 -0
  122. package/dist/generated/SearchService.js.map +1 -0
  123. package/dist/generated/SlackListsService.d.ts +35 -0
  124. package/dist/generated/SlackListsService.d.ts.map +1 -0
  125. package/dist/generated/SlackListsService.js +143 -0
  126. package/dist/generated/SlackListsService.js.map +1 -0
  127. package/dist/generated/StarsService.d.ts +20 -0
  128. package/dist/generated/StarsService.d.ts.map +1 -0
  129. package/dist/generated/StarsService.js +50 -0
  130. package/dist/generated/StarsService.js.map +1 -0
  131. package/dist/generated/TeamService.d.ts +34 -0
  132. package/dist/generated/TeamService.d.ts.map +1 -0
  133. package/dist/generated/TeamService.js +115 -0
  134. package/dist/generated/TeamService.js.map +1 -0
  135. package/dist/generated/ToolingService.d.ts +20 -0
  136. package/dist/generated/ToolingService.d.ts.map +1 -0
  137. package/dist/generated/ToolingService.js +29 -0
  138. package/dist/generated/ToolingService.js.map +1 -0
  139. package/dist/generated/UsergroupsService.d.ts +26 -0
  140. package/dist/generated/UsergroupsService.d.ts.map +1 -0
  141. package/dist/generated/UsergroupsService.js +89 -0
  142. package/dist/generated/UsergroupsService.js.map +1 -0
  143. package/dist/generated/UsersService.d.ts +33 -0
  144. package/dist/generated/UsersService.d.ts.map +1 -0
  145. package/dist/generated/UsersService.js +141 -0
  146. package/dist/generated/UsersService.js.map +1 -0
  147. package/dist/generated/ViewsService.d.ts +21 -0
  148. package/dist/generated/ViewsService.d.ts.map +1 -0
  149. package/dist/generated/ViewsService.js +57 -0
  150. package/dist/generated/ViewsService.js.map +1 -0
  151. package/dist/generated/WorkflowsService.d.ts +26 -0
  152. package/dist/generated/WorkflowsService.d.ts.map +1 -0
  153. package/dist/generated/WorkflowsService.js +92 -0
  154. package/dist/generated/WorkflowsService.js.map +1 -0
  155. package/dist/generated/index.d.ts +38 -0
  156. package/dist/generated/index.d.ts.map +1 -0
  157. package/dist/generated/index.js +38 -0
  158. package/dist/generated/index.js.map +1 -0
  159. package/dist/index.d.ts +8 -0
  160. package/dist/index.d.ts.map +1 -0
  161. package/dist/index.js +11 -0
  162. package/dist/index.js.map +1 -0
  163. package/dist/internal/errors.d.ts +13 -0
  164. package/dist/internal/errors.d.ts.map +1 -0
  165. package/dist/internal/errors.js +68 -0
  166. package/dist/internal/errors.js.map +1 -0
  167. package/package.json +80 -0
@@ -0,0 +1,115 @@
1
+ /**
2
+ * Generated Slack Team Service
3
+ * DO NOT EDIT - This file is auto-generated by scripts/generate-services.ts
4
+ */
5
+ import { Effect } from "effect";
6
+ import { SlackClient } from "../SlackClient.js";
7
+ import { mapSlackError, annotateSpanWithError } from "../internal/errors.js";
8
+ export class TeamService extends Effect.Service()("effect-slack/TeamService", {
9
+ effect: Effect.gen(function* () {
10
+ const client = yield* SlackClient;
11
+ /**
12
+ * Gets the access logs for the current team.
13
+ */
14
+ const accessLogs = (args) => Effect.tryPromise({
15
+ try: () => client.team.accessLogs(args),
16
+ catch: mapSlackError
17
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("TeamService.accessLogs", {
18
+ attributes: { "slack.method": "team.accessLogs" }
19
+ }));
20
+ /**
21
+ * Gets billable users information for the current team.
22
+ */
23
+ const billableInfo = (args) => Effect.tryPromise({
24
+ try: () => client.team.billableInfo(args),
25
+ catch: mapSlackError
26
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("TeamService.billableInfo", {
27
+ attributes: { "slack.method": "team.billableInfo" }
28
+ }));
29
+ /**
30
+ * Gets information about the current team.
31
+ */
32
+ const info = (args) => Effect.tryPromise({
33
+ try: () => client.team.info(args),
34
+ catch: mapSlackError
35
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("TeamService.info", {
36
+ attributes: { "slack.method": "team.info" }
37
+ }));
38
+ /**
39
+ * Gets the integration logs for the current team.
40
+ */
41
+ const integrationLogs = (args) => Effect.tryPromise({
42
+ try: () => client.team.integrationLogs(args),
43
+ catch: mapSlackError
44
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("TeamService.integrationLogs", {
45
+ attributes: { "slack.method": "team.integrationLogs" }
46
+ }));
47
+ /**
48
+ * Reads a workspace's billing plan information.
49
+ */
50
+ const BillingInfo = (args) => Effect.tryPromise({
51
+ try: () => client.team.billing.info(args),
52
+ catch: mapSlackError
53
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("TeamService.billing.info", {
54
+ attributes: { "slack.method": "team.billing.info" }
55
+ }));
56
+ /**
57
+ * Disconnect an external organization.
58
+ */
59
+ const ExternalTeamsDisconnect = (args) => Effect.tryPromise({
60
+ try: () => client.team.externalTeams.disconnect(args),
61
+ catch: mapSlackError
62
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("TeamService.externalTeams.disconnect", {
63
+ attributes: { "slack.method": "team.externalTeams.disconnect" }
64
+ }));
65
+ /**
66
+ * Returns a list of all the external teams connected and details about the connection.
67
+ */
68
+ const ExternalTeamsList = (args) => Effect.tryPromise({
69
+ try: () => client.team.externalTeams.list(args),
70
+ catch: mapSlackError
71
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("TeamService.externalTeams.list", {
72
+ attributes: { "slack.method": "team.externalTeams.list" }
73
+ }));
74
+ /**
75
+ * Retrieve a list of a workspace's team preferences.
76
+ */
77
+ const PreferencesList = (args) => Effect.tryPromise({
78
+ try: () => client.team.preferences.list(args),
79
+ catch: mapSlackError
80
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("TeamService.preferences.list", {
81
+ attributes: { "slack.method": "team.preferences.list" }
82
+ }));
83
+ /**
84
+ * Retrieve a team's profile.
85
+ */
86
+ const ProfileGet = (args) => Effect.tryPromise({
87
+ try: () => client.team.profile.get(args),
88
+ catch: mapSlackError
89
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("TeamService.profile.get", {
90
+ attributes: { "slack.method": "team.profile.get" }
91
+ }));
92
+ return {
93
+ accessLogs,
94
+ billableInfo,
95
+ info,
96
+ integrationLogs,
97
+ billing: {
98
+ info: BillingInfo
99
+ },
100
+ externalTeams: {
101
+ disconnect: ExternalTeamsDisconnect,
102
+ list: ExternalTeamsList
103
+ },
104
+ preferences: {
105
+ list: PreferencesList
106
+ },
107
+ profile: {
108
+ get: ProfileGet
109
+ }
110
+ };
111
+ }),
112
+ dependencies: [SlackClient.Default]
113
+ }) {
114
+ }
115
+ //# sourceMappingURL=TeamService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TeamService.js","sourceRoot":"","sources":["../../src/generated/TeamService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAqB/B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAmB,MAAM,uBAAuB,CAAA;AAE7F,MAAM,OAAO,WAAY,SAAQ,MAAM,CAAC,OAAO,EAAe,CAAC,0BAA0B,EAAE;IACzF,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;QAC1B,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,WAAW,CAAA;QAEjC;;WAEG;QACH,MAAM,UAAU,GAAG,CACjB,IAA8B,EACqB,EAAE,CACrD,MAAM,CAAC,UAAU,CAAC;YAChB,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YACvC,KAAK,EAAE,aAAa;SACrB,CAAC,CAAC,IAAI,CACL,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EACtC,MAAM,CAAC,QAAQ,CAAC,wBAAwB,EAAE;YACxC,UAAU,EAAE,EAAE,cAAc,EAAE,iBAAiB,EAAE;SAClD,CAAC,CACH,CAAA;QAEH;;WAEG;QACH,MAAM,YAAY,GAAG,CACnB,IAAgC,EACqB,EAAE,CACvD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AW,CAAC,IAAI,CAAC,IAAI,CAAC;YAC7C,KAAK,EAAE,aAAa;SACrB,CAAC,CAAC,IAAI,CACL,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EACtC,MAAM,CAAC,QAAQ,CAAC,8BAA8B,EAAE;YAC9C,UAAU,EAAE,EAAE,cAAc,EAAE,uBAAuB,EAAE;SACxD,CAAC,CACH,CAAA;QAEH;;WAEG;QACH,MAAM,UAAU,GAAG,CACjB,IAA8B,EACqB,EAAE,CACrD,MAAM,CAAC,UAAU,CAAC;YAChB,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC;YACxC,KAAK,EAAE,aAAa;SACrB,CAAC,CAAC,IAAI,CACL,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EACtC,MAAM,CAAC,QAAQ,CAAC,yBAAyB,EAAE;YACzC,UAAU,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;SACnD,CAAC,CACH,CAAA;QAEH,OAAO;YACL,UAAU;YACV,YAAY;YACZ,IAAI;YACJ,eAAe;YACf,OAAO,EAAE;gBACP,IAAI,EAAE,WAAW;aAClB;YACD,aAAa,EAAE;gBACb,UAAU,EAAE,uBAAuB;gBACnC,IAAI,EAAE,iBAAiB;aACxB;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,eAAe;aACtB;YACD,OAAO,EAAE;gBACP,GAAG,EAAE,UAAU;aAChB;SACO,CAAA;IACZ,CAAC,CAAC;IACF,YAAY,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC;CACpC,CAAC;CAAG"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Generated Slack Tooling Service
3
+ * DO NOT EDIT - This file is auto-generated by scripts/generate-services.ts
4
+ */
5
+ import { Effect } from "effect";
6
+ import type { ToolingTokensRotateArguments, ToolingTokensRotateResponse } from "@slack/web-api";
7
+ import { SlackClient } from "../SlackClient.js";
8
+ import { type SlackError } from "../internal/errors.js";
9
+ declare const ToolingService_base: Effect.Service.Class<ToolingService, "effect-slack/ToolingService", {
10
+ readonly effect: Effect.Effect<{
11
+ readonly tokens: {
12
+ readonly rotate: (args: ToolingTokensRotateArguments) => Effect.Effect<ToolingTokensRotateResponse, SlackError>;
13
+ };
14
+ }, never, SlackClient>;
15
+ readonly dependencies: readonly [import("effect/Layer").Layer<SlackClient, never, import("../SlackConfig.js").SlackConfig>];
16
+ }>;
17
+ export declare class ToolingService extends ToolingService_base {
18
+ }
19
+ export {};
20
+ //# sourceMappingURL=ToolingService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolingService.d.ts","sourceRoot":"","sources":["../../src/generated/ToolingService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,KAAK,EACV,4BAA4B,EAC5B,2BAA2B,EAC5B,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAwC,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAA;;;;oCAUjF,4BAA4B,KACjC,MAAM,CAAC,MAAM,CAAC,2BAA2B,EAAE,UAAU,CAAC;;;;;AAT7D,qBAAa,cAAe,SAAQ,mBA2BlC;CAAG"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Generated Slack Tooling Service
3
+ * DO NOT EDIT - This file is auto-generated by scripts/generate-services.ts
4
+ */
5
+ import { Effect } from "effect";
6
+ import { SlackClient } from "../SlackClient.js";
7
+ import { mapSlackError, annotateSpanWithError } from "../internal/errors.js";
8
+ export class ToolingService extends Effect.Service()("effect-slack/ToolingService", {
9
+ effect: Effect.gen(function* () {
10
+ const client = yield* SlackClient;
11
+ /**
12
+ * Exchanges a refresh token for a new app configuration token.
13
+ */
14
+ const TokensRotate = (args) => Effect.tryPromise({
15
+ try: () => client.tooling.tokens.rotate(args),
16
+ catch: mapSlackError
17
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("ToolingService.tokens.rotate", {
18
+ attributes: { "slack.method": "tooling.tokens.rotate" }
19
+ }));
20
+ return {
21
+ tokens: {
22
+ rotate: TokensRotate
23
+ }
24
+ };
25
+ }),
26
+ dependencies: [SlackClient.Default]
27
+ }) {
28
+ }
29
+ //# sourceMappingURL=ToolingService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolingService.js","sourceRoot":"","sources":["../../src/generated/ToolingService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAK/B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAmB,MAAM,uBAAuB,CAAA;AAE7F,MAAM,OAAO,cAAe,SAAQ,MAAM,CAAC,OAAO,EAAkB,CAAC,6BAA6B,EAAE;IAClG,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;QAC1B,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,WAAW,CAAA;QAEjC;;WAEG;QACH,MAAM,YAAY,GAAG,CACnB,IAAkC,EACsB,EAAE,CAC1D,MAAM,CAAC,UAAU,CAAC;YAChB,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;YAC7C,KAAK,EAAE,aAAa;SACrB,CAAC,CAAC,IAAI,CACL,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EACtC,MAAM,CAAC,QAAQ,CAAC,8BAA8B,EAAE;YAC9C,UAAU,EAAE,EAAE,cAAc,EAAE,uBAAuB,EAAE;SACxD,CAAC,CACH,CAAA;QAEH,OAAO;YACL,MAAM,EAAE;gBACN,MAAM,EAAE,YAAY;aACrB;SACO,CAAA;IACZ,CAAC,CAAC;IACF,YAAY,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC;CACpC,CAAC;CAAG"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Generated Slack Usergroups Service
3
+ * DO NOT EDIT - This file is auto-generated by scripts/generate-services.ts
4
+ */
5
+ import { Effect } from "effect";
6
+ import type { UsergroupsCreateArguments, UsergroupsCreateResponse, UsergroupsDisableArguments, UsergroupsDisableResponse, UsergroupsEnableArguments, UsergroupsEnableResponse, UsergroupsListArguments, UsergroupsListResponse, UsergroupsUpdateArguments, UsergroupsUpdateResponse, UsergroupsUsersListArguments, UsergroupsUsersListResponse, UsergroupsUsersUpdateArguments, UsergroupsUsersUpdateResponse } from "@slack/web-api";
7
+ import { SlackClient } from "../SlackClient.js";
8
+ import { type SlackError } from "../internal/errors.js";
9
+ declare const UsergroupsService_base: Effect.Service.Class<UsergroupsService, "effect-slack/UsergroupsService", {
10
+ readonly effect: Effect.Effect<{
11
+ readonly create: (args: UsergroupsCreateArguments) => Effect.Effect<UsergroupsCreateResponse, SlackError>;
12
+ readonly disable: (args: UsergroupsDisableArguments) => Effect.Effect<UsergroupsDisableResponse, SlackError>;
13
+ readonly enable: (args: UsergroupsEnableArguments) => Effect.Effect<UsergroupsEnableResponse, SlackError>;
14
+ readonly list: (args?: UsergroupsListArguments) => Effect.Effect<UsergroupsListResponse, SlackError>;
15
+ readonly update: (args: UsergroupsUpdateArguments) => Effect.Effect<UsergroupsUpdateResponse, SlackError>;
16
+ readonly users: {
17
+ readonly list: (args: UsergroupsUsersListArguments) => Effect.Effect<UsergroupsUsersListResponse, SlackError>;
18
+ readonly update: (args: UsergroupsUsersUpdateArguments) => Effect.Effect<UsergroupsUsersUpdateResponse, SlackError>;
19
+ };
20
+ }, never, SlackClient>;
21
+ readonly dependencies: readonly [import("effect/Layer").Layer<SlackClient, never, import("../SlackConfig.js").SlackConfig>];
22
+ }>;
23
+ export declare class UsergroupsService extends UsergroupsService_base {
24
+ }
25
+ export {};
26
+ //# sourceMappingURL=UsergroupsService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UsergroupsService.d.ts","sourceRoot":"","sources":["../../src/generated/UsergroupsService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,KAAK,EACV,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,4BAA4B,EAC5B,2BAA2B,EAC3B,8BAA8B,EAC9B,6BAA6B,EAC9B,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAwC,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAA;;;gCAUjF,yBAAyB,KAC9B,MAAM,CAAC,MAAM,CAAC,wBAAwB,EAAE,UAAU,CAAC;iCAe9C,0BAA0B,KAC/B,MAAM,CAAC,MAAM,CAAC,yBAAyB,EAAE,UAAU,CAAC;gCAe/C,yBAAyB,KAC9B,MAAM,CAAC,MAAM,CAAC,wBAAwB,EAAE,UAAU,CAAC;+BAe7C,uBAAuB,KAC7B,MAAM,CAAC,MAAM,CAAC,sBAAsB,EAAE,UAAU,CAAC;gCAe5C,yBAAyB,KAC9B,MAAM,CAAC,MAAM,CAAC,wBAAwB,EAAE,UAAU,CAAC;;kCAe9C,4BAA4B,KACjC,MAAM,CAAC,MAAM,CAAC,2BAA2B,EAAE,UAAU,CAAC;oCAejD,8BAA8B,KACnC,MAAM,CAAC,MAAM,CAAC,6BAA6B,EAAE,UAAU,CAAC;;;;;AAzG/D,qBAAa,iBAAkB,SAAQ,sBAiIrC;CAAG"}
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Generated Slack Usergroups Service
3
+ * DO NOT EDIT - This file is auto-generated by scripts/generate-services.ts
4
+ */
5
+ import { Effect } from "effect";
6
+ import { SlackClient } from "../SlackClient.js";
7
+ import { mapSlackError, annotateSpanWithError } from "../internal/errors.js";
8
+ export class UsergroupsService extends Effect.Service()("effect-slack/UsergroupsService", {
9
+ effect: Effect.gen(function* () {
10
+ const client = yield* SlackClient;
11
+ /**
12
+ * Create a User Group.
13
+ */
14
+ const create = (args) => Effect.tryPromise({
15
+ try: () => client.usergroups.create(args),
16
+ catch: mapSlackError
17
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("UsergroupsService.create", {
18
+ attributes: { "slack.method": "usergroups.create" }
19
+ }));
20
+ /**
21
+ * Disable an existing User Group.
22
+ */
23
+ const disable = (args) => Effect.tryPromise({
24
+ try: () => client.usergroups.disable(args),
25
+ catch: mapSlackError
26
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("UsergroupsService.disable", {
27
+ attributes: { "slack.method": "usergroups.disable" }
28
+ }));
29
+ /**
30
+ * Enable an existing User Group.
31
+ */
32
+ const enable = (args) => Effect.tryPromise({
33
+ try: () => client.usergroups.enable(args),
34
+ catch: mapSlackError
35
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("UsergroupsService.enable", {
36
+ attributes: { "slack.method": "usergroups.enable" }
37
+ }));
38
+ /**
39
+ * List all User Groups for a team.
40
+ */
41
+ const list = (args) => Effect.tryPromise({
42
+ try: () => client.usergroups.list(args),
43
+ catch: mapSlackError
44
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("UsergroupsService.list", {
45
+ attributes: { "slack.method": "usergroups.list" }
46
+ }));
47
+ /**
48
+ * Update an existing User Group.
49
+ */
50
+ const update = (args) => Effect.tryPromise({
51
+ try: () => client.usergroups.update(args),
52
+ catch: mapSlackError
53
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("UsergroupsService.update", {
54
+ attributes: { "slack.method": "usergroups.update" }
55
+ }));
56
+ /**
57
+ * List all users in a User Group.
58
+ */
59
+ const UsersList = (args) => Effect.tryPromise({
60
+ try: () => client.usergroups.users.list(args),
61
+ catch: mapSlackError
62
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("UsergroupsService.users.list", {
63
+ attributes: { "slack.method": "usergroups.users.list" }
64
+ }));
65
+ /**
66
+ * Update the list of users in a User Group.
67
+ */
68
+ const UsersUpdate = (args) => Effect.tryPromise({
69
+ try: () => client.usergroups.users.update(args),
70
+ catch: mapSlackError
71
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("UsergroupsService.users.update", {
72
+ attributes: { "slack.method": "usergroups.users.update" }
73
+ }));
74
+ return {
75
+ create,
76
+ disable,
77
+ enable,
78
+ list,
79
+ update,
80
+ users: {
81
+ list: UsersList,
82
+ update: UsersUpdate
83
+ }
84
+ };
85
+ }),
86
+ dependencies: [SlackClient.Default]
87
+ }) {
88
+ }
89
+ //# sourceMappingURL=UsergroupsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UsergroupsService.js","sourceRoot":"","sources":["../../src/generated/UsergroupsService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAiB/B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAmB,MAAM,uBAAuB,CAAA;AAE7F,MAAM,OAAO,iBAAkB,SAAQ,MAAM,CAAC,OAAO,EAAqB,CAAC,gCAAgC,EAAE;IAC3G,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;QAC1B,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,WAAW,CAAA;QAEjC;;WAEG;QACH,MAAM,MAAM,GAAG,CACb,IAA+B,EACsB,EAAE,CACvD,MAAM,CAAC,UAAU,CAAC;YAChB,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;YACzC,KAAK,EAAE,aAAa;SACrB,CAAC,CAAC,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EAAE,EAAE,cAAc,EAAE,yBAAyB,EAAE;SAC1D,CAAC,CACH,CAAA;QAEH,OAAO;YACL,MAAM;YACN,OAAO;YACP,MAAM;YACN,IAAI;YACJ,MAAM;YACN,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,MAAM,EAAE,WAAW;aACpB;SACO,CAAA;IACZ,CAAC,CAAC;IACF,YAAY,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC;CACpC,CAAC;CAAG"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Generated Slack Users Service
3
+ * DO NOT EDIT - This file is auto-generated by scripts/generate-services.ts
4
+ */
5
+ import { Effect } from "effect";
6
+ import type { UsersConversationsArguments, UsersConversationsResponse, UsersDeletePhotoArguments, UsersDeletePhotoResponse, UsersDiscoverableContactsLookupArguments, UsersDiscoverableContactsLookupResponse, UsersGetPresenceArguments, UsersGetPresenceResponse, UsersIdentityArguments, UsersIdentityResponse, UsersInfoArguments, UsersInfoResponse, UsersListArguments, UsersListResponse, UsersLookupByEmailArguments, UsersLookupByEmailResponse, UsersProfileGetArguments, UsersProfileGetResponse, UsersProfileSetArguments, UsersProfileSetResponse, UsersSetPhotoArguments, UsersSetPhotoResponse, UsersSetPresenceArguments, UsersSetPresenceResponse } from "@slack/web-api";
7
+ import { SlackClient } from "../SlackClient.js";
8
+ import { type SlackError } from "../internal/errors.js";
9
+ declare const UsersService_base: Effect.Service.Class<UsersService, "effect-slack/UsersService", {
10
+ readonly effect: Effect.Effect<{
11
+ readonly conversations: (args: UsersConversationsArguments) => Effect.Effect<UsersConversationsResponse, SlackError>;
12
+ readonly deletePhoto: (args: UsersDeletePhotoArguments) => Effect.Effect<UsersDeletePhotoResponse, SlackError>;
13
+ readonly getPresence: (args: UsersGetPresenceArguments) => Effect.Effect<UsersGetPresenceResponse, SlackError>;
14
+ readonly identity: (args: UsersIdentityArguments) => Effect.Effect<UsersIdentityResponse, SlackError>;
15
+ readonly info: (args: UsersInfoArguments) => Effect.Effect<UsersInfoResponse, SlackError>;
16
+ readonly list: (args: UsersListArguments) => Effect.Effect<UsersListResponse, SlackError>;
17
+ readonly lookupByEmail: (args: UsersLookupByEmailArguments) => Effect.Effect<UsersLookupByEmailResponse, SlackError>;
18
+ readonly setPhoto: (args: UsersSetPhotoArguments) => Effect.Effect<UsersSetPhotoResponse, SlackError>;
19
+ readonly setPresence: (args: UsersSetPresenceArguments) => Effect.Effect<UsersSetPresenceResponse, SlackError>;
20
+ readonly discoverableContacts: {
21
+ readonly lookup: (args: UsersDiscoverableContactsLookupArguments) => Effect.Effect<UsersDiscoverableContactsLookupResponse, SlackError>;
22
+ };
23
+ readonly profile: {
24
+ readonly get: (args: UsersProfileGetArguments) => Effect.Effect<UsersProfileGetResponse, SlackError>;
25
+ readonly set: (args: UsersProfileSetArguments) => Effect.Effect<UsersProfileSetResponse, SlackError>;
26
+ };
27
+ }, never, SlackClient>;
28
+ readonly dependencies: readonly [import("effect/Layer").Layer<SlackClient, never, import("../SlackConfig.js").SlackConfig>];
29
+ }>;
30
+ export declare class UsersService extends UsersService_base {
31
+ }
32
+ export {};
33
+ //# sourceMappingURL=UsersService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UsersService.d.ts","sourceRoot":"","sources":["../../src/generated/UsersService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,KAAK,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,yBAAyB,EACzB,wBAAwB,EACxB,wCAAwC,EACxC,uCAAuC,EACvC,yBAAyB,EACzB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,2BAA2B,EAC3B,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAwC,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAA;;;uCAUjF,2BAA2B,KAChC,MAAM,CAAC,MAAM,CAAC,0BAA0B,EAAE,UAAU,CAAC;qCAehD,yBAAyB,KAC9B,MAAM,CAAC,MAAM,CAAC,wBAAwB,EAAE,UAAU,CAAC;qCAe9C,yBAAyB,KAC9B,MAAM,CAAC,MAAM,CAAC,wBAAwB,EAAE,UAAU,CAAC;kCAe9C,sBAAsB,KAC3B,MAAM,CAAC,MAAM,CAAC,qBAAqB,EAAE,UAAU,CAAC;8BAe3C,kBAAkB,KACvB,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,UAAU,CAAC;8BAevC,kBAAkB,KACvB,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,UAAU,CAAC;uCAevC,2BAA2B,KAChC,MAAM,CAAC,MAAM,CAAC,0BAA0B,EAAE,UAAU,CAAC;kCAehD,sBAAsB,KAC3B,MAAM,CAAC,MAAM,CAAC,qBAAqB,EAAE,UAAU,CAAC;qCAe3C,yBAAyB,KAC9B,MAAM,CAAC,MAAM,CAAC,wBAAwB,EAAE,UAAU,CAAC;;oCAe9C,wCAAwC,KAC7C,MAAM,CAAC,MAAM,CAAC,uCAAuC,EAAE,UAAU,CAAC;;;iCAe7D,wBAAwB,KAC7B,MAAM,CAAC,MAAM,CAAC,uBAAuB,EAAE,UAAU,CAAC;iCAe7C,wBAAwB,KAC7B,MAAM,CAAC,MAAM,CAAC,uBAAuB,EAAE,UAAU,CAAC;;;;;AAzLzD,qBAAa,YAAa,SAAQ,iBAwNhC;CAAG"}
@@ -0,0 +1,141 @@
1
+ /**
2
+ * Generated Slack Users Service
3
+ * DO NOT EDIT - This file is auto-generated by scripts/generate-services.ts
4
+ */
5
+ import { Effect } from "effect";
6
+ import { SlackClient } from "../SlackClient.js";
7
+ import { mapSlackError, annotateSpanWithError } from "../internal/errors.js";
8
+ export class UsersService extends Effect.Service()("effect-slack/UsersService", {
9
+ effect: Effect.gen(function* () {
10
+ const client = yield* SlackClient;
11
+ /**
12
+ * List conversations the calling user may access.
13
+ */
14
+ const conversations = (args) => Effect.tryPromise({
15
+ try: () => client.users.conversations(args),
16
+ catch: mapSlackError
17
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("UsersService.conversations", {
18
+ attributes: { "slack.method": "users.conversations" }
19
+ }));
20
+ /**
21
+ * Delete the user profile photo.
22
+ */
23
+ const deletePhoto = (args) => Effect.tryPromise({
24
+ try: () => client.users.deletePhoto(args),
25
+ catch: mapSlackError
26
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("UsersService.deletePhoto", {
27
+ attributes: { "slack.method": "users.deletePhoto" }
28
+ }));
29
+ /**
30
+ * Gets user presence information.
31
+ */
32
+ const getPresence = (args) => Effect.tryPromise({
33
+ try: () => client.users.getPresence(args),
34
+ catch: mapSlackError
35
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("UsersService.getPresence", {
36
+ attributes: { "slack.method": "users.getPresence" }
37
+ }));
38
+ /**
39
+ * Get a user's identity.
40
+ */
41
+ const identity = (args) => Effect.tryPromise({
42
+ try: () => client.users.identity(args),
43
+ catch: mapSlackError
44
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("UsersService.identity", {
45
+ attributes: { "slack.method": "users.identity" }
46
+ }));
47
+ /**
48
+ * Gets information about a user.
49
+ */
50
+ const info = (args) => Effect.tryPromise({
51
+ try: () => client.users.info(args),
52
+ catch: mapSlackError
53
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("UsersService.info", {
54
+ attributes: { "slack.method": "users.info" }
55
+ }));
56
+ /**
57
+ * Lists all users in a Slack team.
58
+ */
59
+ const list = (args) => Effect.tryPromise({
60
+ try: () => client.users.list(args),
61
+ catch: mapSlackError
62
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("UsersService.list", {
63
+ attributes: { "slack.method": "users.list" }
64
+ }));
65
+ /**
66
+ * Find a user with an email address.
67
+ */
68
+ const lookupByEmail = (args) => Effect.tryPromise({
69
+ try: () => client.users.lookupByEmail(args),
70
+ catch: mapSlackError
71
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("UsersService.lookupByEmail", {
72
+ attributes: { "slack.method": "users.lookupByEmail" }
73
+ }));
74
+ /**
75
+ * Set the user profile photo.
76
+ */
77
+ const setPhoto = (args) => Effect.tryPromise({
78
+ try: () => client.users.setPhoto(args),
79
+ catch: mapSlackError
80
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("UsersService.setPhoto", {
81
+ attributes: { "slack.method": "users.setPhoto" }
82
+ }));
83
+ /**
84
+ * Manually sets user presence.
85
+ */
86
+ const setPresence = (args) => Effect.tryPromise({
87
+ try: () => client.users.setPresence(args),
88
+ catch: mapSlackError
89
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("UsersService.setPresence", {
90
+ attributes: { "slack.method": "users.setPresence" }
91
+ }));
92
+ /**
93
+ * Lookup an email address to see if someone is on Slack.
94
+ */
95
+ const DiscoverableContactsLookup = (args) => Effect.tryPromise({
96
+ try: () => client.users.discoverableContacts.lookup(args),
97
+ catch: mapSlackError
98
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("UsersService.discoverableContacts.lookup", {
99
+ attributes: { "slack.method": "users.discoverableContacts.lookup" }
100
+ }));
101
+ /**
102
+ * Retrieve a user's profile information, including their custom status.
103
+ */
104
+ const ProfileGet = (args) => Effect.tryPromise({
105
+ try: () => client.users.profile.get(args),
106
+ catch: mapSlackError
107
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("UsersService.profile.get", {
108
+ attributes: { "slack.method": "users.profile.get" }
109
+ }));
110
+ /**
111
+ * Set a user's profile information, including custom status.
112
+ */
113
+ const ProfileSet = (args) => Effect.tryPromise({
114
+ try: () => client.users.profile.set(args),
115
+ catch: mapSlackError
116
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("UsersService.profile.set", {
117
+ attributes: { "slack.method": "users.profile.set" }
118
+ }));
119
+ return {
120
+ conversations,
121
+ deletePhoto,
122
+ getPresence,
123
+ identity,
124
+ info,
125
+ list,
126
+ lookupByEmail,
127
+ setPhoto,
128
+ setPresence,
129
+ discoverableContacts: {
130
+ lookup: DiscoverableContactsLookup
131
+ },
132
+ profile: {
133
+ get: ProfileGet,
134
+ set: ProfileSet
135
+ }
136
+ };
137
+ }),
138
+ dependencies: [SlackClient.Default]
139
+ }) {
140
+ }
141
+ //# sourceMappingURL=UsersService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UsersService.js","sourceRoot":"","sources":["../../src/generated/UsersService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA2B/B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAmB,MAAM,uBAAuB,CAAA;AAE7F,MAAM,OAAO,YAAa,SAAQ,MAAM,CAAC,OAAO,EAAgB,CAAC,2BAA2B,EAAE;IAC5F,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;QAC1B,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,WAAW,CAAA;QAEjC;;WAEG;QACH,MAAM,aAAa,GAAG,CACpB,IAAiC,EACsB,EAAE,CACzD,MAAM,CAAC,UAAU,CAAC;YAChB,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC;YAC3C,KAAK,EAAE,aAAa;SACrB,CAAC,CAAC,IAAI,CACL,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EACtC,MAAM,CAAC,QAAQ,CAAC,4BAA4B,EAAE;YAC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AAE,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC;YACzC,KAAK,EAAE,aAAa;SACrB,CAAC,CAAC,IAAI,CACL,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EACtC,MAAM,CAAC,QAAQ,CAAC,0BAA0B,EAAE;YAC1C,UAAU,EAAE,EAAE,cAAc,EAAE,mBAAmB,EAAE;SACpD,CAAC,CACH,CAAA;QAEH;;WAEG;QACH,MAAM,UAAU,GAAG,CACjB,IAA8B,EACsB,EAAE,CACtD,MAAM,CAAC,UAAU,CAAC;YAChB,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC;YACzC,KAAK,EAAE,aAAa;SACrB,CAAC,CAAC,IAAI,CACL,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EACtC,MAAM,CAAC,QAAQ,CAAC,0BAA0B,EAAE;YAC1C,UAAU,EAAE,EAAE,cAAc,EAAE,mBAAmB,EAAE;SACpD,CAAC,CACH,CAAA;QAEH,OAAO;YACL,aAAa;YACb,WAAW;YACX,WAAW;YACX,QAAQ;YACR,IAAI;YACJ,IAAI;YACJ,aAAa;YACb,QAAQ;YACR,WAAW;YACX,oBAAoB,EAAE;gBACpB,MAAM,EAAE,0BAA0B;aACnC;YACD,OAAO,EAAE;gBACP,GAAG,EAAE,UAAU;gBACf,GAAG,EAAE,UAAU;aAChB;SACO,CAAA;IACZ,CAAC,CAAC;IACF,YAAY,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC;CACpC,CAAC;CAAG"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Generated Slack Views Service
3
+ * DO NOT EDIT - This file is auto-generated by scripts/generate-services.ts
4
+ */
5
+ import { Effect } from "effect";
6
+ import type { ViewsOpenArguments, ViewsOpenResponse, ViewsPublishArguments, ViewsPublishResponse, ViewsPushArguments, ViewsPushResponse, ViewsUpdateArguments, ViewsUpdateResponse } from "@slack/web-api";
7
+ import { SlackClient } from "../SlackClient.js";
8
+ import { type SlackError } from "../internal/errors.js";
9
+ declare const ViewsService_base: Effect.Service.Class<ViewsService, "effect-slack/ViewsService", {
10
+ readonly effect: Effect.Effect<{
11
+ readonly open: (args: ViewsOpenArguments) => Effect.Effect<ViewsOpenResponse, SlackError>;
12
+ readonly publish: (args: ViewsPublishArguments) => Effect.Effect<ViewsPublishResponse, SlackError>;
13
+ readonly push: (args: ViewsPushArguments) => Effect.Effect<ViewsPushResponse, SlackError>;
14
+ readonly update: (args: ViewsUpdateArguments) => Effect.Effect<ViewsUpdateResponse, SlackError>;
15
+ }, never, SlackClient>;
16
+ readonly dependencies: readonly [import("effect/Layer").Layer<SlackClient, never, import("../SlackConfig.js").SlackConfig>];
17
+ }>;
18
+ export declare class ViewsService extends ViewsService_base {
19
+ }
20
+ export {};
21
+ //# sourceMappingURL=ViewsService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewsService.d.ts","sourceRoot":"","sources":["../../src/generated/ViewsService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAwC,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAA;;;8BAUjF,kBAAkB,KACvB,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,UAAU,CAAC;iCAevC,qBAAqB,KAC1B,MAAM,CAAC,MAAM,CAAC,oBAAoB,EAAE,UAAU,CAAC;8BAe1C,kBAAkB,KACvB,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,UAAU,CAAC;gCAevC,oBAAoB,KACzB,MAAM,CAAC,MAAM,CAAC,mBAAmB,EAAE,UAAU,CAAC;;;;AAzDrD,qBAAa,YAAa,SAAQ,iBA4EhC;CAAG"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Generated Slack Views Service
3
+ * DO NOT EDIT - This file is auto-generated by scripts/generate-services.ts
4
+ */
5
+ import { Effect } from "effect";
6
+ import { SlackClient } from "../SlackClient.js";
7
+ import { mapSlackError, annotateSpanWithError } from "../internal/errors.js";
8
+ export class ViewsService extends Effect.Service()("effect-slack/ViewsService", {
9
+ effect: Effect.gen(function* () {
10
+ const client = yield* SlackClient;
11
+ /**
12
+ * Open a view for a user.
13
+ */
14
+ const open = (args) => Effect.tryPromise({
15
+ try: () => client.views.open(args),
16
+ catch: mapSlackError
17
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("ViewsService.open", {
18
+ attributes: { "slack.method": "views.open" }
19
+ }));
20
+ /**
21
+ * Publish a static view for a user.
22
+ */
23
+ const publish = (args) => Effect.tryPromise({
24
+ try: () => client.views.publish(args),
25
+ catch: mapSlackError
26
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("ViewsService.publish", {
27
+ attributes: { "slack.method": "views.publish" }
28
+ }));
29
+ /**
30
+ * Push a view onto the stack of a root view.
31
+ */
32
+ const push = (args) => Effect.tryPromise({
33
+ try: () => client.views.push(args),
34
+ catch: mapSlackError
35
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("ViewsService.push", {
36
+ attributes: { "slack.method": "views.push" }
37
+ }));
38
+ /**
39
+ * Update an existing view.
40
+ */
41
+ const update = (args) => Effect.tryPromise({
42
+ try: () => client.views.update(args),
43
+ catch: mapSlackError
44
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("ViewsService.update", {
45
+ attributes: { "slack.method": "views.update" }
46
+ }));
47
+ return {
48
+ open,
49
+ publish,
50
+ push,
51
+ update
52
+ };
53
+ }),
54
+ dependencies: [SlackClient.Default]
55
+ }) {
56
+ }
57
+ //# sourceMappingURL=ViewsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewsService.js","sourceRoot":"","sources":["../../src/generated/ViewsService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAW/B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAmB,MAAM,uBAAuB,CAAA;AAE7F,MAAM,OAAO,YAAa,SAAQ,MAAM,CAAC,OAAO,EAAgB,CAAC,2BAA2B,EAAE;IAC5F,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;QAC1B,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,WAAW,CAAA;QAEjC;;WAEG;QACH,MAAM,IAAI,GAAG,CACX,IAAwB,EACsB,EAAE,CAChD,MAAM,CAAC,UAAU,CAAC;YAChB,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;YAClC,KAAK,EAAE,aAAa;SACrB,CAAC,CAAC,IAAI,CACL,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EACtC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,EAAE;YACnC,UAAU,EAAE,EAAE,cAAc,EAAE,YAAY,EAAE;SAC7C,CAAC,CACH,CAAA;QAEH;;WAEG;QACH,MAAM,OAAO,GAAG,CACd,IAA2B,EACsB,EAAE,CACnD,MAAM,CAAC,UAAU,CAAC;YAChB,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;YACrC,KAAK,EAAE,aAAa;SACrB,CAAC,CAAC,IAAI,CACL,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EACtC,MAAM,CAAC,QAAQ,CAAC,sBAAsB,EAAE;YACtC,UAAU,EAAE,EAAE,cAAc,EAAE,eAAe,EAAE;SAChD,CAAC,CACH,CAAA;QAEH;;WAEG;QACH,MAAM,IAAI,GAAG,CACX,IAAwB,EACsB,EAAE,CAChD,MAAM,CAAC,UAAU,CAAC;YAChB,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;YAClC,KAAK,EAAE,aAAa;SACrB,CAAC,CAAC,IAAI,CACL,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EACtC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,EAAE;YACnC,UAAU,EAAE,EAAE,cAAc,EAAE,YAAY,EAAE;SAC7C,CAAC,CACH,CAAA;QAEH;;WAEG;QACH,MAAM,MAAM,GAAG,CACb,IAA0B,EACsB,EAAE,CAClD,MAAM,CAAC,UAAU,CAAC;YAChB,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;YACpC,KAAK,EAAE,aAAa;SACrB,CAAC,CAAC,IAAI,CACL,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EACtC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,EAAE;YACrC,UAAU,EAAE,EAAE,cAAc,EAAE,cAAc,EAAE;SAC/C,CAAC,CACH,CAAA;QAEH,OAAO;YACL,IAAI;YACJ,OAAO;YACP,IAAI;YACJ,MAAM;SACE,CAAA;IACZ,CAAC,CAAC;IACF,YAAY,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC;CACpC,CAAC;CAAG"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Generated Slack Workflows Service
3
+ * DO NOT EDIT - This file is auto-generated by scripts/generate-services.ts
4
+ */
5
+ import { Effect } from "effect";
6
+ import type { WebAPICallResult, WorkflowsFeaturedAddArguments, WorkflowsFeaturedListArguments, WorkflowsFeaturedListResponse, WorkflowsFeaturedRemoveArguments, WorkflowsFeaturedSetArguments, WorkflowsStepCompletedArguments, WorkflowsStepCompletedResponse, WorkflowsStepFailedArguments, WorkflowsStepFailedResponse, WorkflowsUpdateStepArguments, WorkflowsUpdateStepResponse } from "@slack/web-api";
7
+ import { SlackClient } from "../SlackClient.js";
8
+ import { type SlackError } from "../internal/errors.js";
9
+ declare const WorkflowsService_base: Effect.Service.Class<WorkflowsService, "effect-slack/WorkflowsService", {
10
+ readonly effect: Effect.Effect<{
11
+ readonly stepCompleted: (args: WorkflowsStepCompletedArguments) => Effect.Effect<WorkflowsStepCompletedResponse, SlackError>;
12
+ readonly stepFailed: (args: WorkflowsStepFailedArguments) => Effect.Effect<WorkflowsStepFailedResponse, SlackError>;
13
+ readonly updateStep: (args: WorkflowsUpdateStepArguments) => Effect.Effect<WorkflowsUpdateStepResponse, SlackError>;
14
+ readonly featured: {
15
+ readonly add: (args: WorkflowsFeaturedAddArguments) => Effect.Effect<WebAPICallResult, SlackError>;
16
+ readonly list: (args: WorkflowsFeaturedListArguments) => Effect.Effect<WorkflowsFeaturedListResponse, SlackError>;
17
+ readonly remove: (args: WorkflowsFeaturedRemoveArguments) => Effect.Effect<WebAPICallResult, SlackError>;
18
+ readonly set: (args: WorkflowsFeaturedSetArguments) => Effect.Effect<WebAPICallResult, SlackError>;
19
+ };
20
+ }, never, SlackClient>;
21
+ readonly dependencies: readonly [import("effect/Layer").Layer<SlackClient, never, import("../SlackConfig.js").SlackConfig>];
22
+ }>;
23
+ export declare class WorkflowsService extends WorkflowsService_base {
24
+ }
25
+ export {};
26
+ //# sourceMappingURL=WorkflowsService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkflowsService.d.ts","sourceRoot":"","sources":["../../src/generated/WorkflowsService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,KAAK,EACV,gBAAgB,EAChB,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,EAC7B,gCAAgC,EAChC,6BAA6B,EAC7B,+BAA+B,EAC/B,8BAA8B,EAC9B,4BAA4B,EAC5B,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC5B,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAwC,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAA;;;uCAWjF,+BAA+B,KACpC,MAAM,CAAC,MAAM,CAAC,8BAA8B,EAAE,UAAU,CAAC;oCAgBpD,4BAA4B,KACjC,MAAM,CAAC,MAAM,CAAC,2BAA2B,EAAE,UAAU,CAAC;oCAgBjD,4BAA4B,KACjC,MAAM,CAAC,MAAM,CAAC,2BAA2B,EAAE,UAAU,CAAC;;iCAejD,6BAA6B,KAClC,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,UAAU,CAAC;kCAetC,8BAA8B,KACnC,MAAM,CAAC,MAAM,CAAC,6BAA6B,EAAE,UAAU,CAAC;oCAenD,gCAAgC,KACrC,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,UAAU,CAAC;iCAetC,6BAA6B,KAClC,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,UAAU,CAAC;;;;;AA5GlD,qBAAa,gBAAiB,SAAQ,qBAoIpC;CAAG"}