@workos/openapi-spec 0.8.0 → 0.10.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.
@@ -0,0 +1,11 @@
1
+ //#region src/policy/services.generated.d.ts
2
+ declare const services: readonly ["AdminPortal", "ApiKeys", "AuditLogs", "Authorization", "ClientApi", "Connect", "DirectorySync", "Events", "FeatureFlags", "Groups", "MultiFactorAuth", "OrganizationDomains", "OrganizationMembership", "Organizations", "Pipes", "PipesProvider", "Radar", "SSO", "UserManagement", "Vault", "Webhooks", "Widgets"];
3
+ type ServiceName = (typeof services)[number];
4
+ interface ServiceEndpoint {
5
+ method: string;
6
+ path: string;
7
+ name?: string;
8
+ }
9
+ declare const serviceEndpoints: Record<string, ServiceEndpoint[]>;
10
+ //#endregion
11
+ export { ServiceEndpoint, ServiceName, serviceEndpoints, services };
@@ -0,0 +1,1027 @@
1
+ //#region src/policy/services.generated.ts
2
+ const services = [
3
+ "AdminPortal",
4
+ "ApiKeys",
5
+ "AuditLogs",
6
+ "Authorization",
7
+ "ClientApi",
8
+ "Connect",
9
+ "DirectorySync",
10
+ "Events",
11
+ "FeatureFlags",
12
+ "Groups",
13
+ "MultiFactorAuth",
14
+ "OrganizationDomains",
15
+ "OrganizationMembership",
16
+ "Organizations",
17
+ "Pipes",
18
+ "PipesProvider",
19
+ "Radar",
20
+ "SSO",
21
+ "UserManagement",
22
+ "Vault",
23
+ "Webhooks",
24
+ "Widgets"
25
+ ];
26
+ const serviceEndpoints = {
27
+ "AdminPortal": [{
28
+ "method": "POST",
29
+ "path": "/portal/generate_link",
30
+ "name": "generate_link"
31
+ }],
32
+ "ApiKeys": [
33
+ {
34
+ "method": "DELETE",
35
+ "path": "/api_keys/{id}",
36
+ "name": "delete_api_key"
37
+ },
38
+ {
39
+ "method": "POST",
40
+ "path": "/api_keys/{id}/expire",
41
+ "name": "create_api_key_expire"
42
+ },
43
+ {
44
+ "method": "POST",
45
+ "path": "/api_keys/validations",
46
+ "name": "create_validation"
47
+ },
48
+ {
49
+ "method": "GET",
50
+ "path": "/organizations/{organizationId}/api_keys",
51
+ "name": "list_organization_api_keys"
52
+ },
53
+ {
54
+ "method": "POST",
55
+ "path": "/organizations/{organizationId}/api_keys",
56
+ "name": "create_organization_api_key"
57
+ }
58
+ ],
59
+ "AuditLogs": [
60
+ {
61
+ "method": "GET",
62
+ "path": "/audit_logs/actions",
63
+ "name": "list_actions"
64
+ },
65
+ {
66
+ "method": "GET",
67
+ "path": "/audit_logs/actions/{actionName}/schemas",
68
+ "name": "list_action_schemas"
69
+ },
70
+ {
71
+ "method": "POST",
72
+ "path": "/audit_logs/actions/{actionName}/schemas",
73
+ "name": "create_schema"
74
+ },
75
+ {
76
+ "method": "POST",
77
+ "path": "/audit_logs/events",
78
+ "name": "create_event"
79
+ },
80
+ {
81
+ "method": "POST",
82
+ "path": "/audit_logs/exports",
83
+ "name": "create_export"
84
+ },
85
+ {
86
+ "method": "GET",
87
+ "path": "/audit_logs/exports/{auditLogExportId}",
88
+ "name": "get_export"
89
+ },
90
+ {
91
+ "method": "GET",
92
+ "path": "/organizations/{id}/audit_logs_retention",
93
+ "name": "get_organization_audit_logs_retention"
94
+ },
95
+ {
96
+ "method": "PUT",
97
+ "path": "/organizations/{id}/audit_logs_retention",
98
+ "name": "update_organization_audit_logs_retention"
99
+ }
100
+ ],
101
+ "Authorization": [
102
+ {
103
+ "method": "DELETE",
104
+ "path": "/authorization/groups/{group_id}/role_assignments",
105
+ "name": "delete_group_role_assignments"
106
+ },
107
+ {
108
+ "method": "GET",
109
+ "path": "/authorization/groups/{group_id}/role_assignments",
110
+ "name": "list_group_role_assignments"
111
+ },
112
+ {
113
+ "method": "POST",
114
+ "path": "/authorization/groups/{group_id}/role_assignments",
115
+ "name": "create_group_role_assignment"
116
+ },
117
+ {
118
+ "method": "PUT",
119
+ "path": "/authorization/groups/{group_id}/role_assignments",
120
+ "name": "update_group_role_assignments"
121
+ },
122
+ {
123
+ "method": "DELETE",
124
+ "path": "/authorization/groups/{group_id}/role_assignments/{role_assignment_id}",
125
+ "name": "delete_group_role_assignment"
126
+ },
127
+ {
128
+ "method": "GET",
129
+ "path": "/authorization/groups/{group_id}/role_assignments/{role_assignment_id}",
130
+ "name": "get_group_role_assignment"
131
+ },
132
+ {
133
+ "method": "POST",
134
+ "path": "/authorization/organization_memberships/{organization_membership_id}/check",
135
+ "name": "check"
136
+ },
137
+ {
138
+ "method": "GET",
139
+ "path": "/authorization/organization_memberships/{organization_membership_id}/resources",
140
+ "name": "list_resources_for_membership"
141
+ },
142
+ {
143
+ "method": "GET",
144
+ "path": "/authorization/organization_memberships/{organization_membership_id}/resources/{resource_id}/permissions",
145
+ "name": "list_effective_permissions"
146
+ },
147
+ {
148
+ "method": "GET",
149
+ "path": "/authorization/organization_memberships/{organization_membership_id}/resources/{resource_type_slug}/{external_id}/permissions",
150
+ "name": "list_effective_permissions_by_external_id"
151
+ },
152
+ {
153
+ "method": "DELETE",
154
+ "path": "/authorization/organization_memberships/{organization_membership_id}/role_assignments",
155
+ "name": "remove_role"
156
+ },
157
+ {
158
+ "method": "GET",
159
+ "path": "/authorization/organization_memberships/{organization_membership_id}/role_assignments",
160
+ "name": "list_role_assignments"
161
+ },
162
+ {
163
+ "method": "POST",
164
+ "path": "/authorization/organization_memberships/{organization_membership_id}/role_assignments",
165
+ "name": "assign_role"
166
+ },
167
+ {
168
+ "method": "DELETE",
169
+ "path": "/authorization/organization_memberships/{organization_membership_id}/role_assignments/{role_assignment_id}",
170
+ "name": "remove_role_assignment"
171
+ },
172
+ {
173
+ "method": "DELETE",
174
+ "path": "/authorization/organizations/{organization_id}/resources/{resource_type_slug}/{external_id}",
175
+ "name": "delete_resource_by_external_id"
176
+ },
177
+ {
178
+ "method": "GET",
179
+ "path": "/authorization/organizations/{organization_id}/resources/{resource_type_slug}/{external_id}",
180
+ "name": "get_resource_by_external_id"
181
+ },
182
+ {
183
+ "method": "PATCH",
184
+ "path": "/authorization/organizations/{organization_id}/resources/{resource_type_slug}/{external_id}",
185
+ "name": "update_resource_by_external_id"
186
+ },
187
+ {
188
+ "method": "GET",
189
+ "path": "/authorization/organizations/{organization_id}/resources/{resource_type_slug}/{external_id}/organization_memberships",
190
+ "name": "list_memberships_for_resource_by_external_id"
191
+ },
192
+ {
193
+ "method": "GET",
194
+ "path": "/authorization/organizations/{organization_id}/resources/{resource_type_slug}/{external_id}/role_assignments",
195
+ "name": "list_role_assignments_for_resource_by_external_id"
196
+ },
197
+ {
198
+ "method": "GET",
199
+ "path": "/authorization/organizations/{organizationId}/roles",
200
+ "name": "list_organization_roles"
201
+ },
202
+ {
203
+ "method": "POST",
204
+ "path": "/authorization/organizations/{organizationId}/roles",
205
+ "name": "create_organization_role"
206
+ },
207
+ {
208
+ "method": "DELETE",
209
+ "path": "/authorization/organizations/{organizationId}/roles/{slug}",
210
+ "name": "delete_organization_role"
211
+ },
212
+ {
213
+ "method": "GET",
214
+ "path": "/authorization/organizations/{organizationId}/roles/{slug}",
215
+ "name": "get_organization_role"
216
+ },
217
+ {
218
+ "method": "PATCH",
219
+ "path": "/authorization/organizations/{organizationId}/roles/{slug}",
220
+ "name": "update_organization_role"
221
+ },
222
+ {
223
+ "method": "POST",
224
+ "path": "/authorization/organizations/{organizationId}/roles/{slug}/permissions",
225
+ "name": "add_organization_role_permission"
226
+ },
227
+ {
228
+ "method": "PUT",
229
+ "path": "/authorization/organizations/{organizationId}/roles/{slug}/permissions",
230
+ "name": "set_organization_role_permissions"
231
+ },
232
+ {
233
+ "method": "DELETE",
234
+ "path": "/authorization/organizations/{organizationId}/roles/{slug}/permissions/{permissionSlug}",
235
+ "name": "remove_organization_role_permission"
236
+ },
237
+ {
238
+ "method": "GET",
239
+ "path": "/authorization/permissions",
240
+ "name": "list_permissions"
241
+ },
242
+ {
243
+ "method": "POST",
244
+ "path": "/authorization/permissions",
245
+ "name": "create_permission"
246
+ },
247
+ {
248
+ "method": "DELETE",
249
+ "path": "/authorization/permissions/{slug}",
250
+ "name": "delete_permission"
251
+ },
252
+ {
253
+ "method": "GET",
254
+ "path": "/authorization/permissions/{slug}",
255
+ "name": "get_permission"
256
+ },
257
+ {
258
+ "method": "PATCH",
259
+ "path": "/authorization/permissions/{slug}",
260
+ "name": "update_permission"
261
+ },
262
+ {
263
+ "method": "GET",
264
+ "path": "/authorization/resources",
265
+ "name": "list_resources"
266
+ },
267
+ {
268
+ "method": "POST",
269
+ "path": "/authorization/resources",
270
+ "name": "create_resource"
271
+ },
272
+ {
273
+ "method": "DELETE",
274
+ "path": "/authorization/resources/{resource_id}",
275
+ "name": "delete_resource"
276
+ },
277
+ {
278
+ "method": "GET",
279
+ "path": "/authorization/resources/{resource_id}",
280
+ "name": "get_resource"
281
+ },
282
+ {
283
+ "method": "PATCH",
284
+ "path": "/authorization/resources/{resource_id}",
285
+ "name": "update_resource"
286
+ },
287
+ {
288
+ "method": "GET",
289
+ "path": "/authorization/resources/{resource_id}/organization_memberships",
290
+ "name": "list_memberships_for_resource"
291
+ },
292
+ {
293
+ "method": "GET",
294
+ "path": "/authorization/resources/{resource_id}/role_assignments",
295
+ "name": "list_role_assignments_for_resource"
296
+ },
297
+ {
298
+ "method": "GET",
299
+ "path": "/authorization/roles",
300
+ "name": "list_environment_roles"
301
+ },
302
+ {
303
+ "method": "POST",
304
+ "path": "/authorization/roles",
305
+ "name": "create_environment_role"
306
+ },
307
+ {
308
+ "method": "GET",
309
+ "path": "/authorization/roles/{slug}",
310
+ "name": "get_environment_role"
311
+ },
312
+ {
313
+ "method": "PATCH",
314
+ "path": "/authorization/roles/{slug}",
315
+ "name": "update_environment_role"
316
+ },
317
+ {
318
+ "method": "POST",
319
+ "path": "/authorization/roles/{slug}/permissions",
320
+ "name": "add_environment_role_permission"
321
+ },
322
+ {
323
+ "method": "PUT",
324
+ "path": "/authorization/roles/{slug}/permissions",
325
+ "name": "set_environment_role_permissions"
326
+ }
327
+ ],
328
+ "ClientApi": [{
329
+ "method": "POST",
330
+ "path": "/client/token",
331
+ "name": "create_token"
332
+ }],
333
+ "Connect": [
334
+ {
335
+ "method": "POST",
336
+ "path": "/authkit/oauth2/complete",
337
+ "name": "complete_oauth2"
338
+ },
339
+ {
340
+ "method": "GET",
341
+ "path": "/connect/applications",
342
+ "name": "list_applications"
343
+ },
344
+ {
345
+ "method": "POST",
346
+ "path": "/connect/applications",
347
+ "name": "create_application"
348
+ },
349
+ {
350
+ "method": "DELETE",
351
+ "path": "/connect/applications/{id}",
352
+ "name": "delete_application"
353
+ },
354
+ {
355
+ "method": "GET",
356
+ "path": "/connect/applications/{id}",
357
+ "name": "get_application"
358
+ },
359
+ {
360
+ "method": "PUT",
361
+ "path": "/connect/applications/{id}",
362
+ "name": "update_application"
363
+ },
364
+ {
365
+ "method": "GET",
366
+ "path": "/connect/applications/{id}/client_secrets",
367
+ "name": "list_application_client_secrets"
368
+ },
369
+ {
370
+ "method": "POST",
371
+ "path": "/connect/applications/{id}/client_secrets",
372
+ "name": "create_application_client_secret"
373
+ },
374
+ {
375
+ "method": "DELETE",
376
+ "path": "/connect/client_secrets/{id}",
377
+ "name": "delete_client_secret"
378
+ }
379
+ ],
380
+ "DirectorySync": [
381
+ {
382
+ "method": "GET",
383
+ "path": "/directories",
384
+ "name": "list_directories"
385
+ },
386
+ {
387
+ "method": "DELETE",
388
+ "path": "/directories/{id}",
389
+ "name": "delete_directory"
390
+ },
391
+ {
392
+ "method": "GET",
393
+ "path": "/directories/{id}",
394
+ "name": "get_directory"
395
+ },
396
+ {
397
+ "method": "GET",
398
+ "path": "/directory_groups",
399
+ "name": "list_groups"
400
+ },
401
+ {
402
+ "method": "GET",
403
+ "path": "/directory_groups/{id}",
404
+ "name": "get_group"
405
+ },
406
+ {
407
+ "method": "GET",
408
+ "path": "/directory_users",
409
+ "name": "list_users"
410
+ },
411
+ {
412
+ "method": "GET",
413
+ "path": "/directory_users/{id}",
414
+ "name": "get_user"
415
+ }
416
+ ],
417
+ "Events": [{
418
+ "method": "GET",
419
+ "path": "/events",
420
+ "name": "list_events"
421
+ }],
422
+ "FeatureFlags": [
423
+ {
424
+ "method": "GET",
425
+ "path": "/feature-flags",
426
+ "name": "list_feature_flags"
427
+ },
428
+ {
429
+ "method": "GET",
430
+ "path": "/feature-flags/{slug}",
431
+ "name": "get_feature_flag"
432
+ },
433
+ {
434
+ "method": "PUT",
435
+ "path": "/feature-flags/{slug}/disable",
436
+ "name": "disable_feature_flag"
437
+ },
438
+ {
439
+ "method": "PUT",
440
+ "path": "/feature-flags/{slug}/enable",
441
+ "name": "enable_feature_flag"
442
+ },
443
+ {
444
+ "method": "DELETE",
445
+ "path": "/feature-flags/{slug}/targets/{resourceId}",
446
+ "name": "remove_flag_target"
447
+ },
448
+ {
449
+ "method": "POST",
450
+ "path": "/feature-flags/{slug}/targets/{resourceId}",
451
+ "name": "add_flag_target"
452
+ },
453
+ {
454
+ "method": "GET",
455
+ "path": "/organizations/{organizationId}/feature-flags",
456
+ "name": "list_organization_feature_flags"
457
+ },
458
+ {
459
+ "method": "GET",
460
+ "path": "/user_management/users/{userId}/feature-flags",
461
+ "name": "list_user_feature_flags"
462
+ }
463
+ ],
464
+ "Groups": [
465
+ {
466
+ "method": "GET",
467
+ "path": "/organizations/{organizationId}/groups",
468
+ "name": "list_organization_groups"
469
+ },
470
+ {
471
+ "method": "POST",
472
+ "path": "/organizations/{organizationId}/groups",
473
+ "name": "create_organization_group"
474
+ },
475
+ {
476
+ "method": "DELETE",
477
+ "path": "/organizations/{organizationId}/groups/{groupId}",
478
+ "name": "delete_organization_group"
479
+ },
480
+ {
481
+ "method": "GET",
482
+ "path": "/organizations/{organizationId}/groups/{groupId}",
483
+ "name": "get_organization_group"
484
+ },
485
+ {
486
+ "method": "PATCH",
487
+ "path": "/organizations/{organizationId}/groups/{groupId}",
488
+ "name": "update_organization_group"
489
+ },
490
+ {
491
+ "method": "GET",
492
+ "path": "/organizations/{organizationId}/groups/{groupId}/organization-memberships",
493
+ "name": "list_group_organization_memberships"
494
+ },
495
+ {
496
+ "method": "POST",
497
+ "path": "/organizations/{organizationId}/groups/{groupId}/organization-memberships",
498
+ "name": "create_group_organization_membership"
499
+ },
500
+ {
501
+ "method": "DELETE",
502
+ "path": "/organizations/{organizationId}/groups/{groupId}/organization-memberships/{omId}",
503
+ "name": "delete_group_organization_membership"
504
+ }
505
+ ],
506
+ "MultiFactorAuth": [
507
+ {
508
+ "method": "POST",
509
+ "path": "/auth/challenges/{id}/verify",
510
+ "name": "verify_challenge"
511
+ },
512
+ {
513
+ "method": "DELETE",
514
+ "path": "/auth/factors/{id}",
515
+ "name": "delete_factor"
516
+ },
517
+ {
518
+ "method": "GET",
519
+ "path": "/auth/factors/{id}",
520
+ "name": "get_factor"
521
+ },
522
+ {
523
+ "method": "POST",
524
+ "path": "/auth/factors/{id}/challenge",
525
+ "name": "challenge_factor"
526
+ },
527
+ {
528
+ "method": "POST",
529
+ "path": "/auth/factors/enroll",
530
+ "name": "enroll_factor"
531
+ },
532
+ {
533
+ "method": "GET",
534
+ "path": "/user_management/users/{userlandUserId}/auth_factors",
535
+ "name": "list_user_auth_factors"
536
+ },
537
+ {
538
+ "method": "POST",
539
+ "path": "/user_management/users/{userlandUserId}/auth_factors",
540
+ "name": "create_user_auth_factor"
541
+ }
542
+ ],
543
+ "OrganizationDomains": [
544
+ {
545
+ "method": "POST",
546
+ "path": "/organization_domains",
547
+ "name": "create_organization_domain"
548
+ },
549
+ {
550
+ "method": "DELETE",
551
+ "path": "/organization_domains/{id}",
552
+ "name": "delete_organization_domain"
553
+ },
554
+ {
555
+ "method": "GET",
556
+ "path": "/organization_domains/{id}",
557
+ "name": "get_organization_domain"
558
+ },
559
+ {
560
+ "method": "POST",
561
+ "path": "/organization_domains/{id}/verify",
562
+ "name": "verify_organization_domain"
563
+ }
564
+ ],
565
+ "OrganizationMembership": [
566
+ {
567
+ "method": "GET",
568
+ "path": "/user_management/organization_memberships",
569
+ "name": "list_organization_memberships"
570
+ },
571
+ {
572
+ "method": "POST",
573
+ "path": "/user_management/organization_memberships",
574
+ "name": "create_organization_membership"
575
+ },
576
+ {
577
+ "method": "DELETE",
578
+ "path": "/user_management/organization_memberships/{id}",
579
+ "name": "delete_organization_membership"
580
+ },
581
+ {
582
+ "method": "GET",
583
+ "path": "/user_management/organization_memberships/{id}",
584
+ "name": "get_organization_membership"
585
+ },
586
+ {
587
+ "method": "PUT",
588
+ "path": "/user_management/organization_memberships/{id}",
589
+ "name": "update_organization_membership"
590
+ },
591
+ {
592
+ "method": "PUT",
593
+ "path": "/user_management/organization_memberships/{id}/deactivate",
594
+ "name": "deactivate_organization_membership"
595
+ },
596
+ {
597
+ "method": "PUT",
598
+ "path": "/user_management/organization_memberships/{id}/reactivate",
599
+ "name": "reactivate_organization_membership"
600
+ },
601
+ {
602
+ "method": "GET",
603
+ "path": "/user_management/organization_memberships/{omId}/groups",
604
+ "name": "list_organization_membership_groups"
605
+ }
606
+ ],
607
+ "Organizations": [
608
+ {
609
+ "method": "GET",
610
+ "path": "/organizations",
611
+ "name": "list_organizations"
612
+ },
613
+ {
614
+ "method": "POST",
615
+ "path": "/organizations",
616
+ "name": "create_organization"
617
+ },
618
+ {
619
+ "method": "DELETE",
620
+ "path": "/organizations/{id}",
621
+ "name": "delete_organization"
622
+ },
623
+ {
624
+ "method": "GET",
625
+ "path": "/organizations/{id}",
626
+ "name": "get_organization"
627
+ },
628
+ {
629
+ "method": "PUT",
630
+ "path": "/organizations/{id}",
631
+ "name": "update_organization"
632
+ },
633
+ {
634
+ "method": "GET",
635
+ "path": "/organizations/{id}/audit_log_configuration",
636
+ "name": "get_audit_log_configuration"
637
+ },
638
+ {
639
+ "method": "GET",
640
+ "path": "/organizations/external_id/{external_id}",
641
+ "name": "get_organization_by_external_id"
642
+ }
643
+ ],
644
+ "Pipes": [
645
+ {
646
+ "method": "POST",
647
+ "path": "/data-integrations/{provider}/token",
648
+ "name": "get_access_token"
649
+ },
650
+ {
651
+ "method": "POST",
652
+ "path": "/data-integrations/{slug}/authorize",
653
+ "name": "authorize_data_integration"
654
+ },
655
+ {
656
+ "method": "DELETE",
657
+ "path": "/user_management/users/{user_id}/connected_accounts/{slug}",
658
+ "name": "delete_user_connected_account"
659
+ },
660
+ {
661
+ "method": "GET",
662
+ "path": "/user_management/users/{user_id}/connected_accounts/{slug}",
663
+ "name": "get_user_connected_account"
664
+ },
665
+ {
666
+ "method": "GET",
667
+ "path": "/user_management/users/{user_id}/data_providers",
668
+ "name": "list_user_data_providers"
669
+ }
670
+ ],
671
+ "PipesProvider": [{
672
+ "method": "GET",
673
+ "path": "/organizations/{organizationId}/data_integration_configurations",
674
+ "name": "list_organization_data_integration_configurations"
675
+ }, {
676
+ "method": "PUT",
677
+ "path": "/organizations/{organizationId}/data_integration_configurations/{slug}",
678
+ "name": "update_organization_data_integration_configuration"
679
+ }],
680
+ "Radar": [
681
+ {
682
+ "method": "POST",
683
+ "path": "/radar/attempts",
684
+ "name": "create_attempt"
685
+ },
686
+ {
687
+ "method": "PUT",
688
+ "path": "/radar/attempts/{id}",
689
+ "name": "update_attempt"
690
+ },
691
+ {
692
+ "method": "DELETE",
693
+ "path": "/radar/lists/{type}/{action}",
694
+ "name": "remove_list_entry"
695
+ },
696
+ {
697
+ "method": "POST",
698
+ "path": "/radar/lists/{type}/{action}",
699
+ "name": "add_list_entry"
700
+ }
701
+ ],
702
+ "SSO": [
703
+ {
704
+ "method": "GET",
705
+ "path": "/connections",
706
+ "name": "list_connections"
707
+ },
708
+ {
709
+ "method": "DELETE",
710
+ "path": "/connections/{id}",
711
+ "name": "delete_connection"
712
+ },
713
+ {
714
+ "method": "GET",
715
+ "path": "/connections/{id}",
716
+ "name": "get_connection"
717
+ },
718
+ {
719
+ "method": "GET",
720
+ "path": "/sso/authorize",
721
+ "name": "get_authorization_url"
722
+ },
723
+ {
724
+ "method": "GET",
725
+ "path": "/sso/logout",
726
+ "name": "get_logout_url"
727
+ },
728
+ {
729
+ "method": "POST",
730
+ "path": "/sso/logout/authorize",
731
+ "name": "authorize_logout"
732
+ },
733
+ {
734
+ "method": "GET",
735
+ "path": "/sso/profile",
736
+ "name": "get_profile"
737
+ },
738
+ {
739
+ "method": "POST",
740
+ "path": "/sso/token",
741
+ "name": "get_profile_and_token"
742
+ }
743
+ ],
744
+ "UserManagement": [
745
+ {
746
+ "method": "GET",
747
+ "path": "/sso/jwks/{clientId}",
748
+ "name": "get_jwks"
749
+ },
750
+ {
751
+ "method": "POST",
752
+ "path": "/user_management/authenticate",
753
+ "name": "create_authenticate"
754
+ },
755
+ {
756
+ "method": "GET",
757
+ "path": "/user_management/authorize",
758
+ "name": "get_authorization_url"
759
+ },
760
+ {
761
+ "method": "POST",
762
+ "path": "/user_management/authorize/device",
763
+ "name": "create_device"
764
+ },
765
+ {
766
+ "method": "POST",
767
+ "path": "/user_management/cors_origins",
768
+ "name": "create_cors_origin"
769
+ },
770
+ {
771
+ "method": "GET",
772
+ "path": "/user_management/email_verification/{id}",
773
+ "name": "get_email_verification"
774
+ },
775
+ {
776
+ "method": "GET",
777
+ "path": "/user_management/invitations",
778
+ "name": "list_invitations"
779
+ },
780
+ {
781
+ "method": "POST",
782
+ "path": "/user_management/invitations",
783
+ "name": "send_invitation"
784
+ },
785
+ {
786
+ "method": "GET",
787
+ "path": "/user_management/invitations/{id}",
788
+ "name": "get_invitation"
789
+ },
790
+ {
791
+ "method": "POST",
792
+ "path": "/user_management/invitations/{id}/accept",
793
+ "name": "accept_invitation"
794
+ },
795
+ {
796
+ "method": "POST",
797
+ "path": "/user_management/invitations/{id}/resend",
798
+ "name": "resend_invitation"
799
+ },
800
+ {
801
+ "method": "POST",
802
+ "path": "/user_management/invitations/{id}/revoke",
803
+ "name": "revoke_invitation"
804
+ },
805
+ {
806
+ "method": "GET",
807
+ "path": "/user_management/invitations/by_token/{token}",
808
+ "name": "find_invitation_by_token"
809
+ },
810
+ {
811
+ "method": "GET",
812
+ "path": "/user_management/jwt_template",
813
+ "name": "list_jwt_template"
814
+ },
815
+ {
816
+ "method": "PUT",
817
+ "path": "/user_management/jwt_template",
818
+ "name": "update_jwt_template"
819
+ },
820
+ {
821
+ "method": "POST",
822
+ "path": "/user_management/magic_auth",
823
+ "name": "create_magic_auth"
824
+ },
825
+ {
826
+ "method": "GET",
827
+ "path": "/user_management/magic_auth/{id}",
828
+ "name": "get_magic_auth"
829
+ },
830
+ {
831
+ "method": "POST",
832
+ "path": "/user_management/password_reset",
833
+ "name": "reset_password"
834
+ },
835
+ {
836
+ "method": "GET",
837
+ "path": "/user_management/password_reset/{id}",
838
+ "name": "get_password_reset"
839
+ },
840
+ {
841
+ "method": "POST",
842
+ "path": "/user_management/password_reset/confirm",
843
+ "name": "confirm_password_reset"
844
+ },
845
+ {
846
+ "method": "POST",
847
+ "path": "/user_management/redirect_uris",
848
+ "name": "create_redirect_uri"
849
+ },
850
+ {
851
+ "method": "GET",
852
+ "path": "/user_management/sessions/logout",
853
+ "name": "get_logout_url"
854
+ },
855
+ {
856
+ "method": "POST",
857
+ "path": "/user_management/sessions/revoke",
858
+ "name": "revoke_session"
859
+ },
860
+ {
861
+ "method": "GET",
862
+ "path": "/user_management/users",
863
+ "name": "list_users"
864
+ },
865
+ {
866
+ "method": "POST",
867
+ "path": "/user_management/users",
868
+ "name": "create_user"
869
+ },
870
+ {
871
+ "method": "DELETE",
872
+ "path": "/user_management/users/{id}",
873
+ "name": "delete_user"
874
+ },
875
+ {
876
+ "method": "GET",
877
+ "path": "/user_management/users/{id}",
878
+ "name": "get_user"
879
+ },
880
+ {
881
+ "method": "PUT",
882
+ "path": "/user_management/users/{id}",
883
+ "name": "update_user"
884
+ },
885
+ {
886
+ "method": "POST",
887
+ "path": "/user_management/users/{id}/email_change/confirm",
888
+ "name": "confirm_email_change"
889
+ },
890
+ {
891
+ "method": "POST",
892
+ "path": "/user_management/users/{id}/email_change/send",
893
+ "name": "send_email_change"
894
+ },
895
+ {
896
+ "method": "POST",
897
+ "path": "/user_management/users/{id}/email_verification/confirm",
898
+ "name": "verify_email"
899
+ },
900
+ {
901
+ "method": "POST",
902
+ "path": "/user_management/users/{id}/email_verification/send",
903
+ "name": "send_verification_email"
904
+ },
905
+ {
906
+ "method": "GET",
907
+ "path": "/user_management/users/{id}/identities",
908
+ "name": "get_user_identities"
909
+ },
910
+ {
911
+ "method": "GET",
912
+ "path": "/user_management/users/{id}/sessions",
913
+ "name": "list_sessions"
914
+ },
915
+ {
916
+ "method": "GET",
917
+ "path": "/user_management/users/{user_id}/authorized_applications",
918
+ "name": "list_user_authorized_applications"
919
+ },
920
+ {
921
+ "method": "DELETE",
922
+ "path": "/user_management/users/{user_id}/authorized_applications/{application_id}",
923
+ "name": "delete_user_authorized_application"
924
+ },
925
+ {
926
+ "method": "GET",
927
+ "path": "/user_management/users/{userId}/api_keys",
928
+ "name": "list_user_api_keys"
929
+ },
930
+ {
931
+ "method": "POST",
932
+ "path": "/user_management/users/{userId}/api_keys",
933
+ "name": "create_user_api_key"
934
+ },
935
+ {
936
+ "method": "GET",
937
+ "path": "/user_management/users/external_id/{external_id}",
938
+ "name": "get_user_by_external_id"
939
+ }
940
+ ],
941
+ "Vault": [
942
+ {
943
+ "method": "POST",
944
+ "path": "/vault/v1/keys/data-key",
945
+ "name": "create_data_key"
946
+ },
947
+ {
948
+ "method": "POST",
949
+ "path": "/vault/v1/keys/decrypt",
950
+ "name": "create_decrypt"
951
+ },
952
+ {
953
+ "method": "POST",
954
+ "path": "/vault/v1/keys/rekey",
955
+ "name": "create_rekey"
956
+ },
957
+ {
958
+ "method": "GET",
959
+ "path": "/vault/v1/kv",
960
+ "name": "list_kv"
961
+ },
962
+ {
963
+ "method": "POST",
964
+ "path": "/vault/v1/kv",
965
+ "name": "create_kv"
966
+ },
967
+ {
968
+ "method": "DELETE",
969
+ "path": "/vault/v1/kv/{id}",
970
+ "name": "delete_kv"
971
+ },
972
+ {
973
+ "method": "GET",
974
+ "path": "/vault/v1/kv/{id}",
975
+ "name": "get_kv"
976
+ },
977
+ {
978
+ "method": "PUT",
979
+ "path": "/vault/v1/kv/{id}",
980
+ "name": "update_kv"
981
+ },
982
+ {
983
+ "method": "GET",
984
+ "path": "/vault/v1/kv/{id}/metadata",
985
+ "name": "list_kv_metadata"
986
+ },
987
+ {
988
+ "method": "GET",
989
+ "path": "/vault/v1/kv/{id}/versions",
990
+ "name": "list_kv_versions"
991
+ },
992
+ {
993
+ "method": "GET",
994
+ "path": "/vault/v1/kv/name/{name}",
995
+ "name": "get_name"
996
+ }
997
+ ],
998
+ "Webhooks": [
999
+ {
1000
+ "method": "GET",
1001
+ "path": "/webhook_endpoints",
1002
+ "name": "list_webhook_endpoints"
1003
+ },
1004
+ {
1005
+ "method": "POST",
1006
+ "path": "/webhook_endpoints",
1007
+ "name": "create_webhook_endpoint"
1008
+ },
1009
+ {
1010
+ "method": "DELETE",
1011
+ "path": "/webhook_endpoints/{id}",
1012
+ "name": "delete_webhook_endpoint"
1013
+ },
1014
+ {
1015
+ "method": "PATCH",
1016
+ "path": "/webhook_endpoints/{id}",
1017
+ "name": "update_webhook_endpoint"
1018
+ }
1019
+ ],
1020
+ "Widgets": [{
1021
+ "method": "POST",
1022
+ "path": "/widgets/token",
1023
+ "name": "create_token"
1024
+ }]
1025
+ };
1026
+ //#endregion
1027
+ export { serviceEndpoints, services };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",
@@ -22,6 +22,10 @@
22
22
  "types": "./dist/policy.d.mts",
23
23
  "import": "./dist/policy.mjs"
24
24
  },
25
+ "./services": {
26
+ "types": "./dist/services.d.mts",
27
+ "import": "./dist/services.mjs"
28
+ },
25
29
  "./operation-overrides/node": "./dist/operationOverrides.node.json",
26
30
  "./package.json": "./package.json"
27
31
  },
@@ -29,7 +33,8 @@
29
33
  "@workos/oagen": "^0.22.6"
30
34
  },
31
35
  "scripts": {
32
- "build:policy": "tsdown",
36
+ "generate:services": "node scripts/generate-services.mjs",
37
+ "build:policy": "npm run generate:services && tsdown",
33
38
  "generate:postman": "tsx scripts/postman/generate.ts",
34
39
  "generate:postman:local": "tsx scripts/postman/generate.ts --local",
35
40
  "sdk:resolve": "npx oagen resolve --spec spec/open-api-spec.yaml",