Skip to content

Commit 060e95d

Browse files
committed
fix: readd OauthScope
1 parent 3a59484 commit 060e95d

File tree

2 files changed

+97
-0
lines changed

2 files changed

+97
-0
lines changed

.fernignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
README.md
44

55
# Oauth Helpers
6+
src/api/types/OAuthScope.ts
67
src/index.ts
78
src/oauth.ts
89
src/wrapper

src/api/types/OAuthScope.ts

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
export type OauthScope =
6+
/**
7+
* read details about the authorized user */
8+
| "authorized_user:read"
9+
/**
10+
* read assets on the site */
11+
| "assets:read"
12+
/**
13+
* write assets on a site */
14+
| "assets:write"
15+
/**
16+
* read collections and items for a site */
17+
| "cms:read"
18+
/**
19+
* write to collections and items for a site */
20+
| "cms:write"
21+
/**
22+
* read custom code on the site */
23+
| "custom_code:read"
24+
/**
25+
* modify custom code on the site */
26+
| "custom_code:write"
27+
/**
28+
* read ecommerce data */
29+
| "ecommerce:read"
30+
/**
31+
* edit ecommerce data */
32+
| "ecommerce:write"
33+
/**
34+
* read form data */
35+
| "forms:read"
36+
/**
37+
* write form data */
38+
| "forms:write"
39+
/**
40+
* read pages on the site */
41+
| "pages:read"
42+
/**
43+
* write to pages on the site */
44+
| "pages:write"
45+
/**
46+
* read sites on the site */
47+
| "sites:read"
48+
/**
49+
* modify pages on the site */
50+
| "sites:write"
51+
/**
52+
* read users on the site */
53+
| "users:read"
54+
/**
55+
* read site activity logs */
56+
| "site_activity:read"
57+
/**
58+
* modify users on the site */
59+
| "users:write"
60+
/**
61+
* read workspace resource data */
62+
| "workspace:read"
63+
/**
64+
* write workspace resource data */
65+
| "workspace:write"
66+
/**
67+
* read site configuration data */
68+
| "site_config:read"
69+
/**
70+
* write site configuration data */
71+
| "site_config:write";
72+
73+
export const OauthScope = {
74+
AuthorizedUserRead: "authorized_user:read",
75+
AssetsRead: "assets:read",
76+
AssetsWrite: "assets:write",
77+
CmsRead: "cms:read",
78+
CmsWrite: "cms:write",
79+
CustomCodeRead: "custom_code:read",
80+
CustomCodeWrite: "custom_code:write",
81+
EcommerceRead: "ecommerce:read",
82+
EcommerceWrite: "ecommerce:write",
83+
FormsRead: "forms:read",
84+
FormsWrite: "forms:write",
85+
PagesRead: "pages:read",
86+
PagesWrite: "pages:write",
87+
SitesRead: "sites:read",
88+
SitesWrite: "sites:write",
89+
UsersRead: "users:read",
90+
SiteActivityRead: "site_activity:read",
91+
UsersWrite: "users:write",
92+
WorkspaceRead: "workspace:read",
93+
WorkspaceWrite: "workspace:write",
94+
SiteConfigRead: "site_config:read",
95+
SiteConfigWrite: "site_config:write",
96+
} as const;

0 commit comments

Comments
 (0)