-
Notifications
You must be signed in to change notification settings - Fork 14
/
mix.exs
executable file
·144 lines (135 loc) · 3.93 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
defmodule WorkOS.MixProject do
use Mix.Project
@version "1.1.0"
@source_url "https://github.com/workos/workos-elixir"
def project do
[
app: :workos,
version: @version,
name: "WorkOS SDK for Elixir",
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
docs: docs(),
deps: deps(),
source_ref: "#{@version}",
dialyzer: [
flags: [:unmatched_returns, :error_handling, :extra_return],
plt_file: {:no_warn, "plts/dialyzer.plt"},
plt_core_path: "plts",
plt_add_deps: :app_tree,
plt_add_apps: [:mix, :ex_unit]
]
]
end
defp description do
"""
Official Elixir SDK for interacting with the WorkOS API.
"""
end
defp package() do
[
description: description(),
licenses: ["MIT"],
maintainers: [
"Mark Tran",
"Laura Beatris",
"Blair Lunceford",
"Jacobia Johnson"
],
links: %{
"GitHub" => @source_url,
"WorkOS" => "https://workos.com",
"Elixir Example" => "https://github.com/workos/elixir-example-applications"
}
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:tesla, "~> 1.4"},
{:jason, "~> 1.4.1"},
{:hackney, "~> 1.9"},
{:plug_crypto, "~> 2.0"},
{:ex_doc, "~> 0.23", only: :dev, runtime: false},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:test, :dev], runtime: false}
]
end
defp docs() do
[
extras: [
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
groups_for_modules: groups_for_modules()
]
end
defp groups_for_modules() do
[
"Core API": [
WorkOS.AuditLogs,
WorkOS.DirectorySync,
WorkOS.Events,
WorkOS.OrganizationDomains,
WorkOS.Organizations,
WorkOS.Passwordless,
WorkOS.Portal,
WorkOS.SSO,
WorkOS.UserManagement,
WorkOS.Webhooks
],
"Response Structs": [
WorkOS.AuditLogs.Export,
WorkOS.DirectorySync.Directory,
WorkOS.DirectorySync.Directory.Group,
WorkOS.DirectorySync.Directory.User,
WorkOS.Events.Event,
WorkOS.Organizations.Organization,
WorkOS.Organizations.Organization.Domain,
WorkOS.OrganizationDomains.OrganizationDomain,
WorkOS.Passwordless.Session,
WorkOS.Passwordless.Session.Send,
WorkOS.Portal.Link,
WorkOS.SSO.Connection,
WorkOS.SSO.Connection.Domain,
WorkOS.SSO.Profile,
WorkOS.SSO.ProfileAndToken,
WorkOS.UserManagement.Authentication,
WorkOS.UserManagement.EmailVerification.SendVerificationEmail,
WorkOS.UserManagement.EmailVerification.VerifyEmail,
WorkOS.UserManagement.EnrollAuthFactor,
WorkOS.UserManagement.Invitation,
WorkOS.UserManagement.MagicAuth.SendMagicAuthCode,
WorkOS.UserManagement.MultiFactor.AuthenticationChallenge,
WorkOS.UserManagement.MultiFactor.AuthenticationFactor,
WorkOS.UserManagement.MultiFactor.EnrollAuthFactor,
WorkOS.UserManagement.MultiFactor.SMS,
WorkOS.UserManagement.MultiFactor.TOTP,
WorkOS.UserManagement.OrganizationMembership,
WorkOS.UserManagement.ResetPassword,
WorkOS.Webhooks.Event,
WorkOS.Empty,
WorkOS.Error,
WorkOS.List
],
"API Client": [
WorkOS.Client,
WorkOS.Client.TeslaClient
]
]
end
end