@betterportal/auth-workos 10.1.61 → 10.1.63

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 (68) hide show
  1. package/lib/bp-contracts/org.betterportal.auth.workos.json +668 -533
  2. package/lib/plugins/service-betterportal-auth-workos/.bp-generated/registry.d.ts.map +1 -1
  3. package/lib/plugins/service-betterportal-auth-workos/.bp-generated/registry.js +19 -48
  4. package/lib/plugins/service-betterportal-auth-workos/.bp-generated/registry.js.map +1 -1
  5. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/GET.d.ts +12 -0
  6. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/GET.d.ts.map +1 -1
  7. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/GET.js +8 -1
  8. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/GET.js.map +1 -1
  9. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/index.d.ts +0 -12
  10. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/index.d.ts.map +1 -1
  11. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/index.js +0 -6
  12. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/index.js.map +1 -1
  13. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/permissions/POST.d.ts +12 -0
  14. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/permissions/POST.d.ts.map +1 -1
  15. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/permissions/POST.js +8 -1
  16. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/permissions/POST.js.map +1 -1
  17. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/permissions/index.d.ts +0 -12
  18. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/permissions/index.d.ts.map +1 -1
  19. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/permissions/index.js +0 -6
  20. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/permissions/index.js.map +1 -1
  21. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/roles/POST.d.ts +12 -0
  22. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/roles/POST.d.ts.map +1 -1
  23. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/roles/POST.js +8 -1
  24. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/roles/POST.js.map +1 -1
  25. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/roles/index.d.ts +0 -12
  26. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/roles/index.d.ts.map +1 -1
  27. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/roles/index.js +0 -6
  28. package/lib/plugins/service-betterportal-auth-workos/bp-routes/.well-known/bp/config/workos-role-sync/roles/index.js.map +1 -1
  29. package/lib/plugins/service-betterportal-auth-workos/bp-routes/login/GET.d.ts +2 -0
  30. package/lib/plugins/service-betterportal-auth-workos/bp-routes/login/GET.d.ts.map +1 -1
  31. package/lib/plugins/service-betterportal-auth-workos/bp-routes/login/GET.js +2 -0
  32. package/lib/plugins/service-betterportal-auth-workos/bp-routes/login/GET.js.map +1 -1
  33. package/lib/plugins/service-betterportal-auth-workos/bp-routes/login/index.d.ts +1 -1
  34. package/lib/plugins/service-betterportal-auth-workos/bp-routes/login/index.d.ts.map +1 -1
  35. package/lib/plugins/service-betterportal-auth-workos/bp-routes/login/index.js +1 -1
  36. package/lib/plugins/service-betterportal-auth-workos/bp-routes/login/index.js.map +1 -1
  37. package/lib/plugins/service-betterportal-auth-workos/bp-routes/login/route.impl.d.ts.map +1 -1
  38. package/lib/plugins/service-betterportal-auth-workos/bp-routes/login/route.impl.js +5 -5
  39. package/lib/plugins/service-betterportal-auth-workos/bp-routes/login/route.impl.js.map +1 -1
  40. package/lib/plugins/service-betterportal-auth-workos/bp-routes/logout/GET.d.ts +2 -0
  41. package/lib/plugins/service-betterportal-auth-workos/bp-routes/logout/GET.d.ts.map +1 -1
  42. package/lib/plugins/service-betterportal-auth-workos/bp-routes/logout/GET.js +2 -0
  43. package/lib/plugins/service-betterportal-auth-workos/bp-routes/logout/GET.js.map +1 -1
  44. package/lib/plugins/service-betterportal-auth-workos/bp-routes/logout/index.d.ts +1 -1
  45. package/lib/plugins/service-betterportal-auth-workos/bp-routes/logout/index.d.ts.map +1 -1
  46. package/lib/plugins/service-betterportal-auth-workos/bp-routes/logout/index.js +1 -1
  47. package/lib/plugins/service-betterportal-auth-workos/bp-routes/logout/index.js.map +1 -1
  48. package/lib/plugins/service-betterportal-auth-workos/bp-routes/logout/route.impl.d.ts.map +1 -1
  49. package/lib/plugins/service-betterportal-auth-workos/bp-routes/logout/route.impl.js +2 -2
  50. package/lib/plugins/service-betterportal-auth-workos/bp-routes/logout/route.impl.js.map +1 -1
  51. package/lib/plugins/service-betterportal-auth-workos/bp-routes/refresh/POST.d.ts +3 -1
  52. package/lib/plugins/service-betterportal-auth-workos/bp-routes/refresh/POST.d.ts.map +1 -1
  53. package/lib/plugins/service-betterportal-auth-workos/bp-routes/refresh/POST.js +3 -1
  54. package/lib/plugins/service-betterportal-auth-workos/bp-routes/refresh/POST.js.map +1 -1
  55. package/lib/plugins/service-betterportal-auth-workos/bp-routes/refresh/index.d.ts +1 -1
  56. package/lib/plugins/service-betterportal-auth-workos/bp-routes/refresh/index.d.ts.map +1 -1
  57. package/lib/plugins/service-betterportal-auth-workos/bp-routes/refresh/index.js +1 -1
  58. package/lib/plugins/service-betterportal-auth-workos/bp-routes/refresh/index.js.map +1 -1
  59. package/lib/plugins/service-betterportal-auth-workos/bp-routes/refresh/route.impl.d.ts.map +1 -1
  60. package/lib/plugins/service-betterportal-auth-workos/bp-routes/refresh/route.impl.js +3 -3
  61. package/lib/plugins/service-betterportal-auth-workos/bp-routes/refresh/route.impl.js.map +1 -1
  62. package/lib/plugins/service-betterportal-auth-workos/index.d.ts +2 -2
  63. package/lib/plugins/service-betterportal-auth-workos/index.d.ts.map +1 -1
  64. package/lib/plugins/service-betterportal-auth-workos/index.js +3 -3
  65. package/lib/plugins/service-betterportal-auth-workos/index.js.map +1 -1
  66. package/lib/schemas/service-betterportal-auth-workos.json +1 -1
  67. package/lib/schemas/service-betterportal-auth-workos.plugin.json +1 -1
  68. package/package.json +3 -3
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "manifest": {
3
- "protocolVersion": 1,
3
+ "protocolVersion": 2,
4
4
  "pluginId": "org.betterportal.auth.workos",
5
5
  "title": "BetterPortal WorkOS",
6
6
  "description": "WorkOS-backed auth service for BetterPortal apps.",
7
- "version": "10.1.61",
7
+ "version": "10.1.63",
8
8
  "category": "service",
9
9
  "deploymentModes": [
10
10
  "self-hosted"
@@ -35,47 +35,75 @@
35
35
  "description": "Synchronize BetterPortal permissions and roles with WorkOS.",
36
36
  "path": "/.well-known/bp/config/workos-role-sync",
37
37
  "pathVariants": [],
38
- "methods": [
39
- "GET"
40
- ],
41
38
  "paramsSchema": {},
42
- "querySchema": {},
43
- "headersSchema": {},
44
- "bodySchema": {},
45
- "jsonResponseSchema": {},
46
- "metadataResponseSchema": {},
47
- "renderable": false,
48
- "raw": true,
49
- "html": {
50
- "renderers": {}
51
- },
52
- "auth": {
53
- "required": true,
54
- "callers": [
55
- "user"
56
- ],
57
- "permissions": [
58
- {
59
- "serviceId": "org.betterportal.auth.workos",
60
- "viewId": "workos-role-sync.index",
39
+ "operations": [
40
+ {
41
+ "operationId": "workos.roles.fragment.read",
42
+ "method": "GET",
43
+ "title": "WorkOS Role Sync",
44
+ "description": "Render the WorkOS role synchronization controls.",
45
+ "querySchema": {
46
+ "anyvaliVersion": "1.0",
47
+ "schemaVersion": "1.1",
48
+ "root": {
49
+ "kind": "object",
50
+ "properties": {
51
+ "tenantId": {
52
+ "kind": "string",
53
+ "minLength": 1
54
+ },
55
+ "appId": {
56
+ "kind": "string",
57
+ "minLength": 1
58
+ }
59
+ },
60
+ "required": [
61
+ "tenantId",
62
+ "appId"
63
+ ],
64
+ "unknownKeys": "strip"
65
+ },
66
+ "definitions": {},
67
+ "extensions": {}
68
+ },
69
+ "headersSchema": {},
70
+ "bodySchema": {},
71
+ "jsonResponseSchema": {},
72
+ "metadataResponseSchema": {},
73
+ "renderable": false,
74
+ "raw": true,
75
+ "html": {
76
+ "renderers": {}
77
+ },
78
+ "auth": {
79
+ "required": true,
80
+ "callers": [
81
+ "user"
82
+ ],
61
83
  "permissions": [
62
- "read"
84
+ {
85
+ "serviceId": "org.betterportal.auth.workos",
86
+ "viewId": "workos-role-sync.index",
87
+ "permissions": [
88
+ "read"
89
+ ]
90
+ }
63
91
  ]
92
+ },
93
+ "sitemap": {
94
+ "kind": "default"
95
+ },
96
+ "robots": [],
97
+ "role": "auth.roles.sync",
98
+ "dependencies": [],
99
+ "apiContracts": [],
100
+ "demoScenarios": [],
101
+ "cacheHints": {
102
+ "ttlSeconds": 0,
103
+ "varyBy": []
64
104
  }
65
- ]
66
- },
67
- "sitemap": {
68
- "kind": "default"
69
- },
70
- "robots": [],
71
- "role": "auth.roles.sync",
72
- "dependencies": [],
73
- "apiContracts": [],
74
- "demoScenarios": [],
75
- "cacheHints": {
76
- "ttlSeconds": 0,
77
- "varyBy": []
78
- }
105
+ }
106
+ ]
79
107
  },
80
108
  {
81
109
  "viewId": "workos-role-sync.permissions",
@@ -83,47 +111,75 @@
83
111
  "description": "Synchronize BetterPortal permissions to WorkOS.",
84
112
  "path": "/.well-known/bp/config/workos-role-sync/permissions",
85
113
  "pathVariants": [],
86
- "methods": [
87
- "POST"
88
- ],
89
114
  "paramsSchema": {},
90
- "querySchema": {},
91
- "headersSchema": {},
92
- "bodySchema": {},
93
- "jsonResponseSchema": {},
94
- "metadataResponseSchema": {},
95
- "renderable": false,
96
- "raw": true,
97
- "html": {
98
- "renderers": {}
99
- },
100
- "auth": {
101
- "required": true,
102
- "callers": [
103
- "user"
104
- ],
105
- "permissions": [
106
- {
107
- "serviceId": "org.betterportal.auth.workos",
108
- "viewId": "workos-role-sync.permissions",
115
+ "operations": [
116
+ {
117
+ "operationId": "workos.permissions.sync",
118
+ "method": "POST",
119
+ "title": "Sync WorkOS Permissions",
120
+ "description": "Synchronize BetterPortal permissions to WorkOS.",
121
+ "querySchema": {
122
+ "anyvaliVersion": "1.0",
123
+ "schemaVersion": "1.1",
124
+ "root": {
125
+ "kind": "object",
126
+ "properties": {
127
+ "tenantId": {
128
+ "kind": "string",
129
+ "minLength": 1
130
+ },
131
+ "appId": {
132
+ "kind": "string",
133
+ "minLength": 1
134
+ }
135
+ },
136
+ "required": [
137
+ "tenantId",
138
+ "appId"
139
+ ],
140
+ "unknownKeys": "strip"
141
+ },
142
+ "definitions": {},
143
+ "extensions": {}
144
+ },
145
+ "headersSchema": {},
146
+ "bodySchema": {},
147
+ "jsonResponseSchema": {},
148
+ "metadataResponseSchema": {},
149
+ "renderable": false,
150
+ "raw": true,
151
+ "html": {
152
+ "renderers": {}
153
+ },
154
+ "auth": {
155
+ "required": true,
156
+ "callers": [
157
+ "user"
158
+ ],
109
159
  "permissions": [
110
- "create"
160
+ {
161
+ "serviceId": "org.betterportal.auth.workos",
162
+ "viewId": "workos-role-sync.permissions",
163
+ "permissions": [
164
+ "create"
165
+ ]
166
+ }
111
167
  ]
168
+ },
169
+ "sitemap": {
170
+ "kind": "default"
171
+ },
172
+ "robots": [],
173
+ "role": "auth.roles.sync",
174
+ "dependencies": [],
175
+ "apiContracts": [],
176
+ "demoScenarios": [],
177
+ "cacheHints": {
178
+ "ttlSeconds": 0,
179
+ "varyBy": []
112
180
  }
113
- ]
114
- },
115
- "sitemap": {
116
- "kind": "default"
117
- },
118
- "robots": [],
119
- "role": "auth.roles.sync",
120
- "dependencies": [],
121
- "apiContracts": [],
122
- "demoScenarios": [],
123
- "cacheHints": {
124
- "ttlSeconds": 0,
125
- "varyBy": []
126
- }
181
+ }
182
+ ]
127
183
  },
128
184
  {
129
185
  "viewId": "workos-role-sync.roles",
@@ -131,47 +187,75 @@
131
187
  "description": "Synchronize WorkOS roles into BetterPortal.",
132
188
  "path": "/.well-known/bp/config/workos-role-sync/roles",
133
189
  "pathVariants": [],
134
- "methods": [
135
- "POST"
136
- ],
137
190
  "paramsSchema": {},
138
- "querySchema": {},
139
- "headersSchema": {},
140
- "bodySchema": {},
141
- "jsonResponseSchema": {},
142
- "metadataResponseSchema": {},
143
- "renderable": false,
144
- "raw": true,
145
- "html": {
146
- "renderers": {}
147
- },
148
- "auth": {
149
- "required": true,
150
- "callers": [
151
- "user"
152
- ],
153
- "permissions": [
154
- {
155
- "serviceId": "org.betterportal.auth.workos",
156
- "viewId": "workos-role-sync.roles",
191
+ "operations": [
192
+ {
193
+ "operationId": "workos.roles.sync",
194
+ "method": "POST",
195
+ "title": "Sync WorkOS Roles",
196
+ "description": "Synchronize WorkOS roles into BetterPortal.",
197
+ "querySchema": {
198
+ "anyvaliVersion": "1.0",
199
+ "schemaVersion": "1.1",
200
+ "root": {
201
+ "kind": "object",
202
+ "properties": {
203
+ "tenantId": {
204
+ "kind": "string",
205
+ "minLength": 1
206
+ },
207
+ "appId": {
208
+ "kind": "string",
209
+ "minLength": 1
210
+ }
211
+ },
212
+ "required": [
213
+ "tenantId",
214
+ "appId"
215
+ ],
216
+ "unknownKeys": "strip"
217
+ },
218
+ "definitions": {},
219
+ "extensions": {}
220
+ },
221
+ "headersSchema": {},
222
+ "bodySchema": {},
223
+ "jsonResponseSchema": {},
224
+ "metadataResponseSchema": {},
225
+ "renderable": false,
226
+ "raw": true,
227
+ "html": {
228
+ "renderers": {}
229
+ },
230
+ "auth": {
231
+ "required": true,
232
+ "callers": [
233
+ "user"
234
+ ],
157
235
  "permissions": [
158
- "update"
236
+ {
237
+ "serviceId": "org.betterportal.auth.workos",
238
+ "viewId": "workos-role-sync.roles",
239
+ "permissions": [
240
+ "update"
241
+ ]
242
+ }
159
243
  ]
244
+ },
245
+ "sitemap": {
246
+ "kind": "default"
247
+ },
248
+ "robots": [],
249
+ "role": "auth.roles.sync",
250
+ "dependencies": [],
251
+ "apiContracts": [],
252
+ "demoScenarios": [],
253
+ "cacheHints": {
254
+ "ttlSeconds": 0,
255
+ "varyBy": []
160
256
  }
161
- ]
162
- },
163
- "sitemap": {
164
- "kind": "default"
165
- },
166
- "robots": [],
167
- "role": "auth.roles.sync",
168
- "dependencies": [],
169
- "apiContracts": [],
170
- "demoScenarios": [],
171
- "cacheHints": {
172
- "ttlSeconds": 0,
173
- "varyBy": []
174
- }
257
+ }
258
+ ]
175
259
  },
176
260
  {
177
261
  "viewId": "login.index",
@@ -179,269 +263,274 @@
179
263
  "description": "Authenticate with WorkOS AuthKit and store BetterPortal auth headers.",
180
264
  "path": "/login",
181
265
  "pathVariants": [],
182
- "methods": [
183
- "GET"
184
- ],
185
266
  "paramsSchema": {},
186
- "querySchema": {
187
- "anyvaliVersion": "1.0",
188
- "schemaVersion": "1.1",
189
- "root": {
190
- "kind": "object",
191
- "properties": {
192
- "action": {
193
- "kind": "optional",
194
- "inner": {
195
- "kind": "string"
196
- }
197
- },
198
- "code": {
199
- "kind": "optional",
200
- "inner": {
201
- "kind": "string"
202
- }
203
- },
204
- "state": {
205
- "kind": "optional",
206
- "inner": {
207
- "kind": "string"
208
- }
209
- },
210
- "next": {
211
- "kind": "optional",
212
- "inner": {
213
- "kind": "string"
214
- }
215
- },
216
- "redirect": {
217
- "kind": "optional",
218
- "inner": {
219
- "kind": "string"
220
- }
221
- },
222
- "error": {
223
- "kind": "optional",
224
- "inner": {
225
- "kind": "string"
226
- }
267
+ "operations": [
268
+ {
269
+ "operationId": "auth.login",
270
+ "method": "GET",
271
+ "title": "WorkOS Login",
272
+ "description": "Authenticate with WorkOS AuthKit and store BetterPortal auth headers.",
273
+ "querySchema": {
274
+ "anyvaliVersion": "1.0",
275
+ "schemaVersion": "1.1",
276
+ "root": {
277
+ "kind": "object",
278
+ "properties": {
279
+ "action": {
280
+ "kind": "optional",
281
+ "inner": {
282
+ "kind": "string"
283
+ }
284
+ },
285
+ "code": {
286
+ "kind": "optional",
287
+ "inner": {
288
+ "kind": "string"
289
+ }
290
+ },
291
+ "state": {
292
+ "kind": "optional",
293
+ "inner": {
294
+ "kind": "string"
295
+ }
296
+ },
297
+ "next": {
298
+ "kind": "optional",
299
+ "inner": {
300
+ "kind": "string"
301
+ }
302
+ },
303
+ "redirect": {
304
+ "kind": "optional",
305
+ "inner": {
306
+ "kind": "string"
307
+ }
308
+ },
309
+ "error": {
310
+ "kind": "optional",
311
+ "inner": {
312
+ "kind": "string"
313
+ }
314
+ },
315
+ "error_description": {
316
+ "kind": "optional",
317
+ "inner": {
318
+ "kind": "string"
319
+ }
320
+ }
321
+ },
322
+ "required": [],
323
+ "unknownKeys": "strip"
227
324
  },
228
- "error_description": {
229
- "kind": "optional",
230
- "inner": {
231
- "kind": "string"
232
- }
233
- }
325
+ "definitions": {},
326
+ "extensions": {}
234
327
  },
235
- "required": [],
236
- "unknownKeys": "strip"
237
- },
238
- "definitions": {},
239
- "extensions": {}
240
- },
241
- "headersSchema": {
242
- "anyvaliVersion": "1.0",
243
- "schemaVersion": "1.1",
244
- "root": {
245
- "kind": "object",
246
- "properties": {},
247
- "required": [],
248
- "unknownKeys": "strip"
249
- },
250
- "definitions": {},
251
- "extensions": {}
252
- },
253
- "bodySchema": {},
254
- "jsonResponseSchema": {
255
- "anyvaliVersion": "1.0",
256
- "schemaVersion": "1.1",
257
- "root": {
258
- "kind": "object",
259
- "properties": {
260
- "status": {
261
- "kind": "enum",
262
- "values": [
263
- "ok",
264
- "error"
265
- ]
266
- },
267
- "message": {
268
- "kind": "optional",
269
- "inner": {
270
- "kind": "string"
271
- }
272
- },
273
- "authorizationUrl": {
274
- "kind": "optional",
275
- "inner": {
276
- "kind": "string"
277
- }
278
- },
279
- "loginUI": {
280
- "kind": "enum",
281
- "values": [
282
- "default",
283
- "clean",
284
- "redirect"
285
- ],
286
- "default": "default"
287
- },
288
- "alreadyLoggedIn": {
289
- "kind": "optional",
290
- "inner": {
291
- "kind": "bool"
292
- }
293
- },
294
- "loggedOut": {
295
- "kind": "optional",
296
- "inner": {
297
- "kind": "bool"
298
- }
299
- },
300
- "signedIn": {
301
- "kind": "optional",
302
- "inner": {
303
- "kind": "bool"
304
- }
305
- },
306
- "nextUrl": {
307
- "kind": "optional",
308
- "inner": {
309
- "kind": "string"
310
- }
328
+ "headersSchema": {
329
+ "anyvaliVersion": "1.0",
330
+ "schemaVersion": "1.1",
331
+ "root": {
332
+ "kind": "object",
333
+ "properties": {},
334
+ "required": [],
335
+ "unknownKeys": "strip"
311
336
  },
312
- "user": {
313
- "kind": "optional",
314
- "inner": {
315
- "kind": "object",
316
- "properties": {
317
- "id": {
318
- "kind": "optional",
319
- "inner": {
320
- "kind": "string"
321
- }
322
- },
323
- "name": {
324
- "kind": "optional",
325
- "inner": {
326
- "kind": "string"
327
- }
328
- },
329
- "email": {
330
- "kind": "optional",
331
- "inner": {
332
- "kind": "string"
333
- }
334
- },
335
- "picture": {
336
- "kind": "optional",
337
- "inner": {
338
- "kind": "string"
339
- }
337
+ "definitions": {},
338
+ "extensions": {}
339
+ },
340
+ "bodySchema": {},
341
+ "jsonResponseSchema": {
342
+ "anyvaliVersion": "1.0",
343
+ "schemaVersion": "1.1",
344
+ "root": {
345
+ "kind": "object",
346
+ "properties": {
347
+ "status": {
348
+ "kind": "enum",
349
+ "values": [
350
+ "ok",
351
+ "error"
352
+ ]
353
+ },
354
+ "message": {
355
+ "kind": "optional",
356
+ "inner": {
357
+ "kind": "string"
340
358
  }
341
359
  },
342
- "required": [],
343
- "unknownKeys": "strip"
344
- }
345
- }
360
+ "authorizationUrl": {
361
+ "kind": "optional",
362
+ "inner": {
363
+ "kind": "string"
364
+ }
365
+ },
366
+ "loginUI": {
367
+ "kind": "enum",
368
+ "values": [
369
+ "default",
370
+ "clean",
371
+ "redirect"
372
+ ],
373
+ "default": "default"
374
+ },
375
+ "alreadyLoggedIn": {
376
+ "kind": "optional",
377
+ "inner": {
378
+ "kind": "bool"
379
+ }
380
+ },
381
+ "loggedOut": {
382
+ "kind": "optional",
383
+ "inner": {
384
+ "kind": "bool"
385
+ }
386
+ },
387
+ "signedIn": {
388
+ "kind": "optional",
389
+ "inner": {
390
+ "kind": "bool"
391
+ }
392
+ },
393
+ "nextUrl": {
394
+ "kind": "optional",
395
+ "inner": {
396
+ "kind": "string"
397
+ }
398
+ },
399
+ "user": {
400
+ "kind": "optional",
401
+ "inner": {
402
+ "kind": "object",
403
+ "properties": {
404
+ "id": {
405
+ "kind": "optional",
406
+ "inner": {
407
+ "kind": "string"
408
+ }
409
+ },
410
+ "name": {
411
+ "kind": "optional",
412
+ "inner": {
413
+ "kind": "string"
414
+ }
415
+ },
416
+ "email": {
417
+ "kind": "optional",
418
+ "inner": {
419
+ "kind": "string"
420
+ }
421
+ },
422
+ "picture": {
423
+ "kind": "optional",
424
+ "inner": {
425
+ "kind": "string"
426
+ }
427
+ }
428
+ },
429
+ "required": [],
430
+ "unknownKeys": "strip"
431
+ }
432
+ }
433
+ },
434
+ "required": [
435
+ "status",
436
+ "loginUI"
437
+ ],
438
+ "unknownKeys": "strip"
439
+ },
440
+ "definitions": {},
441
+ "extensions": {}
346
442
  },
347
- "required": [
348
- "status",
349
- "loginUI"
350
- ],
351
- "unknownKeys": "strip"
352
- },
353
- "definitions": {},
354
- "extensions": {}
355
- },
356
- "metadataResponseSchema": {},
357
- "renderable": true,
358
- "html": {
359
- "renderers": {
360
- "bootstrap5": {
361
- "defaultRenderer": "default",
362
- "renderModes": [
363
- "page",
364
- "fragment"
365
- ],
366
- "slots": [
367
- "main",
368
- "background.monitor",
369
- "nav.profile"
370
- ],
371
- "renderers": [
372
- {
373
- "id": "default",
374
- "title": "Default Content",
375
- "slotId": "main",
443
+ "metadataResponseSchema": {},
444
+ "renderable": true,
445
+ "html": {
446
+ "renderers": {
447
+ "bootstrap5": {
448
+ "defaultRenderer": "default",
376
449
  "renderModes": [
377
450
  "page",
378
451
  "fragment"
452
+ ],
453
+ "slots": [
454
+ "main",
455
+ "background.monitor",
456
+ "nav.profile"
457
+ ],
458
+ "renderers": [
459
+ {
460
+ "id": "default",
461
+ "title": "Default Content",
462
+ "slotId": "main",
463
+ "renderModes": [
464
+ "page",
465
+ "fragment"
466
+ ]
467
+ },
468
+ {
469
+ "id": "background.monitor",
470
+ "title": "background.monitor",
471
+ "slotId": "background.monitor",
472
+ "renderModes": [
473
+ "fragment"
474
+ ]
475
+ },
476
+ {
477
+ "id": "nav.profile",
478
+ "title": "nav.profile",
479
+ "slotId": "nav.profile",
480
+ "renderModes": [
481
+ "fragment"
482
+ ]
483
+ }
379
484
  ]
380
485
  },
381
- {
382
- "id": "background.monitor",
383
- "title": "background.monitor",
384
- "slotId": "background.monitor",
385
- "renderModes": [
386
- "fragment"
387
- ]
388
- },
389
- {
390
- "id": "nav.profile",
391
- "title": "nav.profile",
392
- "slotId": "nav.profile",
486
+ "embedded": {
487
+ "defaultRenderer": "default",
393
488
  "renderModes": [
394
489
  "fragment"
490
+ ],
491
+ "slots": [
492
+ "background.monitor"
493
+ ],
494
+ "renderers": [
495
+ {
496
+ "id": "background.monitor",
497
+ "title": "background.monitor",
498
+ "slotId": "background.monitor",
499
+ "renderModes": [
500
+ "fragment"
501
+ ]
502
+ }
395
503
  ]
396
504
  }
397
- ]
505
+ }
398
506
  },
399
- "embedded": {
400
- "defaultRenderer": "default",
401
- "renderModes": [
402
- "fragment"
507
+ "auth": {
508
+ "required": false,
509
+ "callers": [
510
+ "user"
403
511
  ],
404
- "slots": [
405
- "background.monitor"
406
- ],
407
- "renderers": [
408
- {
409
- "id": "background.monitor",
410
- "title": "background.monitor",
411
- "slotId": "background.monitor",
412
- "renderModes": [
413
- "fragment"
414
- ]
415
- }
416
- ]
512
+ "permissions": []
513
+ },
514
+ "sitemap": {
515
+ "kind": "default"
516
+ },
517
+ "robots": [],
518
+ "role": "auth.login",
519
+ "dependencies": [
520
+ "auth.logout",
521
+ "auth.refresh"
522
+ ],
523
+ "chrome": {
524
+ "fullScreen": true
525
+ },
526
+ "apiContracts": [],
527
+ "demoScenarios": [],
528
+ "cacheHints": {
529
+ "ttlSeconds": 0,
530
+ "varyBy": []
417
531
  }
418
532
  }
419
- },
420
- "auth": {
421
- "required": false,
422
- "callers": [
423
- "user"
424
- ],
425
- "permissions": []
426
- },
427
- "sitemap": {
428
- "kind": "default"
429
- },
430
- "robots": [],
431
- "role": "auth.login",
432
- "dependencies": [
433
- "logout.index",
434
- "refresh.index"
435
- ],
436
- "chrome": {
437
- "fullScreen": true
438
- },
439
- "apiContracts": [],
440
- "demoScenarios": [],
441
- "cacheHints": {
442
- "ttlSeconds": 0,
443
- "varyBy": []
444
- }
533
+ ]
445
534
  },
446
535
  {
447
536
  "viewId": "logout.index",
@@ -449,90 +538,95 @@
449
538
  "description": "Clear the stored WorkOS bearer token.",
450
539
  "path": "/logout",
451
540
  "pathVariants": [],
452
- "methods": [
453
- "GET"
454
- ],
455
541
  "paramsSchema": {},
456
- "querySchema": {
457
- "anyvaliVersion": "1.0",
458
- "schemaVersion": "1.1",
459
- "root": {
460
- "kind": "object",
461
- "properties": {
462
- "next": {
463
- "kind": "optional",
464
- "inner": {
465
- "kind": "string"
466
- }
542
+ "operations": [
543
+ {
544
+ "operationId": "auth.logout",
545
+ "method": "GET",
546
+ "title": "WorkOS Logout",
547
+ "description": "Clear the stored WorkOS bearer token.",
548
+ "querySchema": {
549
+ "anyvaliVersion": "1.0",
550
+ "schemaVersion": "1.1",
551
+ "root": {
552
+ "kind": "object",
553
+ "properties": {
554
+ "next": {
555
+ "kind": "optional",
556
+ "inner": {
557
+ "kind": "string"
558
+ }
559
+ },
560
+ "redirect": {
561
+ "kind": "optional",
562
+ "inner": {
563
+ "kind": "string"
564
+ }
565
+ }
566
+ },
567
+ "required": [],
568
+ "unknownKeys": "strip"
467
569
  },
468
- "redirect": {
469
- "kind": "optional",
470
- "inner": {
471
- "kind": "string"
472
- }
473
- }
570
+ "definitions": {},
571
+ "extensions": {}
474
572
  },
475
- "required": [],
476
- "unknownKeys": "strip"
477
- },
478
- "definitions": {},
479
- "extensions": {}
480
- },
481
- "headersSchema": {},
482
- "bodySchema": {},
483
- "jsonResponseSchema": {
484
- "anyvaliVersion": "1.0",
485
- "schemaVersion": "1.1",
486
- "root": {
487
- "kind": "object",
488
- "properties": {
489
- "status": {
490
- "kind": "enum",
491
- "values": [
492
- "ok"
493
- ]
494
- },
495
- "message": {
496
- "kind": "string"
573
+ "headersSchema": {},
574
+ "bodySchema": {},
575
+ "jsonResponseSchema": {
576
+ "anyvaliVersion": "1.0",
577
+ "schemaVersion": "1.1",
578
+ "root": {
579
+ "kind": "object",
580
+ "properties": {
581
+ "status": {
582
+ "kind": "enum",
583
+ "values": [
584
+ "ok"
585
+ ]
586
+ },
587
+ "message": {
588
+ "kind": "string"
589
+ },
590
+ "nextUrl": {
591
+ "kind": "string"
592
+ }
593
+ },
594
+ "required": [
595
+ "status",
596
+ "message",
597
+ "nextUrl"
598
+ ],
599
+ "unknownKeys": "strip"
497
600
  },
498
- "nextUrl": {
499
- "kind": "string"
500
- }
601
+ "definitions": {},
602
+ "extensions": {}
501
603
  },
502
- "required": [
503
- "status",
504
- "message",
505
- "nextUrl"
506
- ],
507
- "unknownKeys": "strip"
508
- },
509
- "definitions": {},
510
- "extensions": {}
511
- },
512
- "metadataResponseSchema": {},
513
- "renderable": false,
514
- "html": {
515
- "renderers": {}
516
- },
517
- "auth": {
518
- "required": false,
519
- "callers": [
520
- "user"
521
- ],
522
- "permissions": []
523
- },
524
- "sitemap": {
525
- "kind": "default"
526
- },
527
- "robots": [],
528
- "role": "auth.logout",
529
- "dependencies": [],
530
- "apiContracts": [],
531
- "demoScenarios": [],
532
- "cacheHints": {
533
- "ttlSeconds": 0,
534
- "varyBy": []
535
- }
604
+ "metadataResponseSchema": {},
605
+ "renderable": false,
606
+ "html": {
607
+ "renderers": {}
608
+ },
609
+ "auth": {
610
+ "required": false,
611
+ "callers": [
612
+ "user"
613
+ ],
614
+ "permissions": []
615
+ },
616
+ "sitemap": {
617
+ "kind": "default"
618
+ },
619
+ "robots": [],
620
+ "role": "auth.logout",
621
+ "dependencies": [],
622
+ "apiContracts": [],
623
+ "demoScenarios": [],
624
+ "cacheHints": {
625
+ "ttlSeconds": 0,
626
+ "varyBy": []
627
+ }
628
+ }
629
+ ]
536
630
  },
537
631
  {
538
632
  "viewId": "refresh.index",
@@ -540,97 +634,120 @@
540
634
  "description": "Refresh BetterPortal tokens using a WorkOS-backed BP refresh token.",
541
635
  "path": "/refresh",
542
636
  "pathVariants": [],
543
- "methods": [
544
- "POST"
545
- ],
546
637
  "paramsSchema": {},
547
- "querySchema": {},
548
- "headersSchema": {},
549
- "bodySchema": {
550
- "anyvaliVersion": "1.0",
551
- "schemaVersion": "1.1",
552
- "root": {
553
- "kind": "object",
554
- "properties": {
555
- "refreshToken": {
556
- "kind": "optional",
557
- "inner": {
558
- "kind": "string",
559
- "minLength": 1
560
- }
561
- }
562
- },
563
- "required": [],
564
- "unknownKeys": "strip"
565
- },
566
- "definitions": {},
567
- "extensions": {}
568
- },
569
- "jsonResponseSchema": {
570
- "anyvaliVersion": "1.0",
571
- "schemaVersion": "1.1",
572
- "root": {
573
- "kind": "object",
574
- "properties": {
575
- "status": {
576
- "kind": "enum",
577
- "values": [
578
- "ok",
579
- "error"
580
- ]
638
+ "operations": [
639
+ {
640
+ "operationId": "auth.refresh",
641
+ "method": "POST",
642
+ "title": "WorkOS Refresh",
643
+ "description": "Refresh BetterPortal tokens using a WorkOS-backed BP refresh token.",
644
+ "querySchema": {},
645
+ "headersSchema": {
646
+ "anyvaliVersion": "1.0",
647
+ "schemaVersion": "1.1",
648
+ "root": {
649
+ "kind": "object",
650
+ "properties": {
651
+ "x-bp-refresh": {
652
+ "kind": "optional",
653
+ "inner": {
654
+ "kind": "string"
655
+ }
656
+ }
657
+ },
658
+ "required": [],
659
+ "unknownKeys": "strip"
581
660
  },
582
- "message": {
583
- "kind": "optional",
584
- "inner": {
585
- "kind": "string"
586
- }
661
+ "definitions": {},
662
+ "extensions": {}
663
+ },
664
+ "bodySchema": {
665
+ "anyvaliVersion": "1.0",
666
+ "schemaVersion": "1.1",
667
+ "root": {
668
+ "kind": "object",
669
+ "properties": {
670
+ "refreshToken": {
671
+ "kind": "optional",
672
+ "inner": {
673
+ "kind": "string",
674
+ "minLength": 1
675
+ }
676
+ }
677
+ },
678
+ "required": [],
679
+ "unknownKeys": "strip"
587
680
  },
588
- "accessToken": {
589
- "kind": "optional",
590
- "inner": {
591
- "kind": "string"
592
- }
681
+ "definitions": {},
682
+ "extensions": {}
683
+ },
684
+ "jsonResponseSchema": {
685
+ "anyvaliVersion": "1.0",
686
+ "schemaVersion": "1.1",
687
+ "root": {
688
+ "kind": "object",
689
+ "properties": {
690
+ "status": {
691
+ "kind": "enum",
692
+ "values": [
693
+ "ok",
694
+ "error"
695
+ ]
696
+ },
697
+ "message": {
698
+ "kind": "optional",
699
+ "inner": {
700
+ "kind": "string"
701
+ }
702
+ },
703
+ "accessToken": {
704
+ "kind": "optional",
705
+ "inner": {
706
+ "kind": "string"
707
+ }
708
+ },
709
+ "expiresInSeconds": {
710
+ "kind": "optional",
711
+ "inner": {
712
+ "kind": "int",
713
+ "min": 1
714
+ }
715
+ }
716
+ },
717
+ "required": [
718
+ "status"
719
+ ],
720
+ "unknownKeys": "strip"
593
721
  },
594
- "expiresInSeconds": {
595
- "kind": "optional",
596
- "inner": {
597
- "kind": "int",
598
- "min": 1
599
- }
600
- }
722
+ "definitions": {},
723
+ "extensions": {}
601
724
  },
602
- "required": [
603
- "status"
604
- ],
605
- "unknownKeys": "strip"
606
- },
607
- "definitions": {},
608
- "extensions": {}
609
- },
610
- "metadataResponseSchema": {},
611
- "renderable": false,
612
- "html": {
613
- "renderers": {}
614
- },
615
- "auth": {
616
- "required": false,
617
- "callers": [
618
- "user"
619
- ],
620
- "permissions": []
621
- },
622
- "sitemap": {
623
- "kind": "default"
624
- },
625
- "robots": [],
626
- "role": "auth.refresh",
627
- "dependencies": [],
628
- "apiContracts": [],
629
- "demoScenarios": [],
630
- "cacheHints": {
631
- "ttlSeconds": 0,
632
- "varyBy": []
633
- }
725
+ "metadataResponseSchema": {},
726
+ "renderable": false,
727
+ "html": {
728
+ "renderers": {}
729
+ },
730
+ "auth": {
731
+ "required": false,
732
+ "callers": [
733
+ "user"
734
+ ],
735
+ "permissions": []
736
+ },
737
+ "sitemap": {
738
+ "kind": "default"
739
+ },
740
+ "robots": [],
741
+ "role": "auth.refresh",
742
+ "dependencies": [],
743
+ "apiContracts": [],
744
+ "demoScenarios": [],
745
+ "cacheHints": {
746
+ "ttlSeconds": 0,
747
+ "varyBy": []
748
+ }
749
+ }
750
+ ]
634
751
  }
635
752
  ],
636
753
  "configSchemas": [
@@ -863,8 +980,11 @@
863
980
  "viewId": "workos-role-sync.index",
864
981
  "path": "/.well-known/bp/config/workos-role-sync",
865
982
  "pathVariants": [],
866
- "methods": [
867
- "GET"
983
+ "operations": [
984
+ {
985
+ "operationId": "workos.roles.fragment.read",
986
+ "method": "GET"
987
+ }
868
988
  ],
869
989
  "paramNames": [],
870
990
  "renderers": [],
@@ -876,8 +996,11 @@
876
996
  "viewId": "workos-role-sync.permissions",
877
997
  "path": "/.well-known/bp/config/workos-role-sync/permissions",
878
998
  "pathVariants": [],
879
- "methods": [
880
- "POST"
999
+ "operations": [
1000
+ {
1001
+ "operationId": "workos.permissions.sync",
1002
+ "method": "POST"
1003
+ }
881
1004
  ],
882
1005
  "paramNames": [],
883
1006
  "renderers": [],
@@ -889,8 +1012,11 @@
889
1012
  "viewId": "workos-role-sync.roles",
890
1013
  "path": "/.well-known/bp/config/workos-role-sync/roles",
891
1014
  "pathVariants": [],
892
- "methods": [
893
- "POST"
1015
+ "operations": [
1016
+ {
1017
+ "operationId": "workos.roles.sync",
1018
+ "method": "POST"
1019
+ }
894
1020
  ],
895
1021
  "paramNames": [],
896
1022
  "renderers": [],
@@ -902,8 +1028,11 @@
902
1028
  "viewId": "login.index",
903
1029
  "path": "/login",
904
1030
  "pathVariants": [],
905
- "methods": [
906
- "GET"
1031
+ "operations": [
1032
+ {
1033
+ "operationId": "auth.login",
1034
+ "method": "GET"
1035
+ }
907
1036
  ],
908
1037
  "paramNames": [],
909
1038
  "renderers": [
@@ -934,8 +1063,11 @@
934
1063
  "viewId": "logout.index",
935
1064
  "path": "/logout",
936
1065
  "pathVariants": [],
937
- "methods": [
938
- "GET"
1066
+ "operations": [
1067
+ {
1068
+ "operationId": "auth.logout",
1069
+ "method": "GET"
1070
+ }
939
1071
  ],
940
1072
  "paramNames": [],
941
1073
  "renderers": [],
@@ -947,8 +1079,11 @@
947
1079
  "viewId": "refresh.index",
948
1080
  "path": "/refresh",
949
1081
  "pathVariants": [],
950
- "methods": [
951
- "POST"
1082
+ "operations": [
1083
+ {
1084
+ "operationId": "auth.refresh",
1085
+ "method": "POST"
1086
+ }
952
1087
  ],
953
1088
  "paramNames": [],
954
1089
  "renderers": [],