@workos/openapi-spec 0.168.0 → 0.170.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.
@@ -31,16 +31,58 @@ paths:
31
31
  default: []
32
32
  type: array
33
33
  items:
34
- type: string
35
- minLength: 1
34
+ oneOf:
35
+ - type: object
36
+ properties:
37
+ slug:
38
+ type: string
39
+ minLength: 1
40
+ description: Slug of a permission in the environment.
41
+ example: email:send
42
+ instance_types:
43
+ type: array
44
+ items:
45
+ type: string
46
+ enum:
47
+ - delegated
48
+ - autonomous
49
+ minItems: 1
50
+ maxItems: 2
51
+ description: >-
52
+ Instance types whose sessions receive the
53
+ permission: `delegated`, `autonomous`, or both.
54
+ Agent-delegated chaining and refreshes use the
55
+ type of the presenting instance.
56
+ example:
57
+ - delegated
58
+ required:
59
+ - slug
60
+ - instance_types
61
+ description: >-
62
+ A permission in the blueprint ceiling and the sessions
63
+ it applies to.
64
+ - type: string
65
+ minLength: 1
66
+ deprecated: true
67
+ description: >-
68
+ Deprecated: a bare permission slug. An existing
69
+ permission keeps its instance types; a new one applies
70
+ to both `delegated` and `autonomous`. Pass an object
71
+ instead.
72
+ example: crm:read
36
73
  maxItems: 1000
37
74
  description: >-
38
- Permission slugs forming the ceiling on what sessions minted
39
- from this blueprint may do. Each slug must exist in the
40
- environment.
75
+ Permissions forming the ceiling on what sessions minted from
76
+ this blueprint may do. Each slug must exist in the
77
+ environment and may appear once.
41
78
  example:
42
- - crm:read
43
- - email:send
79
+ - slug: crm:read
80
+ instance_types:
81
+ - delegated
82
+ - autonomous
83
+ - slug: email:send
84
+ instance_types:
85
+ - delegated
44
86
  invocable_by:
45
87
  default: {}
46
88
  type: object
@@ -347,16 +389,58 @@ paths:
347
389
  permissions:
348
390
  type: array
349
391
  items:
350
- type: string
351
- minLength: 1
392
+ oneOf:
393
+ - type: object
394
+ properties:
395
+ slug:
396
+ type: string
397
+ minLength: 1
398
+ description: Slug of a permission in the environment.
399
+ example: email:send
400
+ instance_types:
401
+ type: array
402
+ items:
403
+ type: string
404
+ enum:
405
+ - delegated
406
+ - autonomous
407
+ minItems: 1
408
+ maxItems: 2
409
+ description: >-
410
+ Instance types whose sessions receive the
411
+ permission: `delegated`, `autonomous`, or both.
412
+ Agent-delegated chaining and refreshes use the
413
+ type of the presenting instance.
414
+ example:
415
+ - delegated
416
+ required:
417
+ - slug
418
+ - instance_types
419
+ description: >-
420
+ A permission in the blueprint ceiling and the sessions
421
+ it applies to.
422
+ - type: string
423
+ minLength: 1
424
+ deprecated: true
425
+ description: >-
426
+ Deprecated: a bare permission slug. An existing
427
+ permission keeps its instance types; a new one applies
428
+ to both `delegated` and `autonomous`. Pass an object
429
+ instead.
430
+ example: crm:read
352
431
  maxItems: 1000
353
432
  description: >-
354
- Permission slugs forming the ceiling on what sessions minted
355
- from this blueprint may do. Each slug must exist in the
356
- environment.
433
+ Permissions forming the ceiling on what sessions minted from
434
+ this blueprint may do. Each slug must exist in the
435
+ environment and may appear once.
357
436
  example:
358
- - crm:read
359
- - email:send
437
+ - slug: crm:read
438
+ instance_types:
439
+ - delegated
440
+ - autonomous
441
+ - slug: email:send
442
+ instance_types:
443
+ - delegated
360
444
  invocable_by:
361
445
  type: object
362
446
  properties:
@@ -3183,7 +3267,10 @@ paths:
3183
3267
  tags:
3184
3268
  - authorization
3185
3269
  post:
3186
- description: Assign a role to an organization membership on a specific resource.
3270
+ description: >-
3271
+ Assign a role to an organization membership on a specific resource. If
3272
+ the role is already assigned to the membership on that resource, the
3273
+ existing role assignment is returned and no changes are made.
3187
3274
  operationId: AuthorizationRoleAssignmentsController_assignRole
3188
3275
  parameters:
3189
3276
  - name: organization_membership_id
@@ -24883,7 +24970,7 @@ components:
24883
24970
  - message
24884
24971
  AuthMethodMismatchErrorBody:
24885
24972
  type: object
24886
- properties: &ref_49
24973
+ properties: &ref_51
24887
24974
  code:
24888
24975
  type: string
24889
24976
  const: auth_method_mismatch
@@ -24897,13 +24984,13 @@ components:
24897
24984
  example: >-
24898
24985
  This installation uses oauth authentication. Use the POST
24899
24986
  /:slug/token endpoint instead.
24900
- required: &ref_50
24987
+ required: &ref_52
24901
24988
  - code
24902
24989
  - message
24903
24990
  x-component-name: AuthMethodMismatchError
24904
24991
  AccountSelectionRequiredErrorBody:
24905
24992
  type: object
24906
- properties: &ref_51
24993
+ properties: &ref_53
24907
24994
  code:
24908
24995
  type: string
24909
24996
  const: account_selection_required
@@ -24917,7 +25004,7 @@ components:
24917
25004
  example: >-
24918
25005
  Several connected accounts match this user for this provider. Name
24919
25006
  one with a connected account id.
24920
- required: &ref_52
25007
+ required: &ref_54
24921
25008
  - code
24922
25009
  - message
24923
25010
  x-component-name: AccountSelectionRequiredError
@@ -26536,12 +26623,49 @@ components:
26536
26623
  type: array
26537
26624
  items:
26538
26625
  type: string
26626
+ deprecated: true
26539
26627
  description: >-
26540
- Permission slugs forming the ceiling on what sessions minted from
26541
- this blueprint may do.
26628
+ Deprecated: use `scoped_permissions`. Slugs of every permission in
26629
+ the ceiling, across all instance types.
26542
26630
  example:
26543
26631
  - crm:read
26544
26632
  - email:send
26633
+ scoped_permissions:
26634
+ type: array
26635
+ items:
26636
+ type: object
26637
+ properties:
26638
+ slug:
26639
+ type: string
26640
+ description: Slug of the permission.
26641
+ example: email:send
26642
+ instance_types:
26643
+ type: array
26644
+ items:
26645
+ type: string
26646
+ enum:
26647
+ - delegated
26648
+ - autonomous
26649
+ minItems: 1
26650
+ description: >-
26651
+ Instance types whose sessions receive the permission:
26652
+ `delegated`, `autonomous`, or both.
26653
+ example:
26654
+ - delegated
26655
+ required:
26656
+ - slug
26657
+ - instance_types
26658
+ description: >-
26659
+ Permissions forming the ceiling on what sessions minted from this
26660
+ blueprint may do, with the instance types that receive each one.
26661
+ example:
26662
+ - slug: crm:read
26663
+ instance_types:
26664
+ - delegated
26665
+ - autonomous
26666
+ - slug: email:send
26667
+ instance_types:
26668
+ - delegated
26545
26669
  invocable_by:
26546
26670
  type: object
26547
26671
  properties:
@@ -26625,6 +26749,7 @@ components:
26625
26749
  - name
26626
26750
  - description
26627
26751
  - permissions
26752
+ - scoped_permissions
26628
26753
  - invocable_by
26629
26754
  - invocable_as
26630
26755
  - session_settings
@@ -30036,7 +30161,7 @@ components:
30036
30161
  - data
30037
30162
  - created_at
30038
30163
  description: An event emitted by WorkOS.
30039
- example: &ref_48
30164
+ example: &ref_50
30040
30165
  object: event
30041
30166
  id: event_01EHZNVPK3SFK441A1RGBFSHRT
30042
30167
  event: dsync.user.created
@@ -30237,12 +30362,51 @@ components:
30237
30362
  type: array
30238
30363
  items:
30239
30364
  type: string
30365
+ deprecated: true
30240
30366
  description: >-
30241
- Permission slugs forming the ceiling on what sessions
30242
- minted from this blueprint may do.
30367
+ Deprecated: use `scoped_permissions`. Slugs of every
30368
+ permission in the ceiling, across all instance types.
30243
30369
  example: &ref_38
30244
30370
  - crm:read
30245
30371
  - email:send
30372
+ scoped_permissions:
30373
+ type: array
30374
+ items:
30375
+ type: object
30376
+ properties:
30377
+ slug:
30378
+ type: string
30379
+ description: Slug of the permission.
30380
+ example: email:send
30381
+ instance_types:
30382
+ type: array
30383
+ items:
30384
+ type: string
30385
+ enum:
30386
+ - delegated
30387
+ - autonomous
30388
+ minItems: 1
30389
+ description: >-
30390
+ Instance types whose sessions receive the
30391
+ permission: `delegated`, `autonomous`, or both.
30392
+ example: &ref_39
30393
+ - delegated
30394
+ required:
30395
+ - slug
30396
+ - instance_types
30397
+ description: >-
30398
+ Permissions forming the ceiling on what sessions minted
30399
+ from this blueprint may do, with the instance types that
30400
+ receive each one. Absent from events emitted before this
30401
+ field was added.
30402
+ example: &ref_40
30403
+ - slug: crm:read
30404
+ instance_types:
30405
+ - delegated
30406
+ - autonomous
30407
+ - slug: email:send
30408
+ instance_types:
30409
+ - delegated
30246
30410
  invocable_by:
30247
30411
  type: object
30248
30412
  properties:
@@ -30253,7 +30417,7 @@ components:
30253
30417
  description: >-
30254
30418
  Role slugs whose members may mint user-delegated
30255
30419
  sessions from this blueprint.
30256
- example: &ref_39
30420
+ example: &ref_41
30257
30421
  - manager
30258
30422
  organization_ids:
30259
30423
  type: array
@@ -30262,7 +30426,7 @@ components:
30262
30426
  description: >-
30263
30427
  Organizations in which autonomous sessions may be
30264
30428
  minted from this blueprint.
30265
- example: &ref_40
30429
+ example: &ref_42
30266
30430
  - org_01EHWNCE74X7JSDV0X3SZ3KJNY
30267
30431
  required:
30268
30432
  - role_slugs
@@ -30282,7 +30446,7 @@ components:
30282
30446
  Instance types that may be minted from this
30283
30447
  blueprint: `delegated` (acting for a user) and/or
30284
30448
  `autonomous` (acting as the agent itself).
30285
- example: &ref_41
30449
+ example: &ref_43
30286
30450
  - delegated
30287
30451
  - autonomous
30288
30452
  required:
@@ -30439,10 +30603,41 @@ components:
30439
30603
  type: array
30440
30604
  items:
30441
30605
  type: string
30606
+ deprecated: true
30442
30607
  description: >-
30443
- Permission slugs forming the ceiling on what sessions
30444
- minted from this blueprint may do.
30608
+ Deprecated: use `scoped_permissions`. Slugs of every
30609
+ permission in the ceiling, across all instance types.
30445
30610
  example: *ref_38
30611
+ scoped_permissions:
30612
+ type: array
30613
+ items:
30614
+ type: object
30615
+ properties:
30616
+ slug:
30617
+ type: string
30618
+ description: Slug of the permission.
30619
+ example: email:send
30620
+ instance_types:
30621
+ type: array
30622
+ items:
30623
+ type: string
30624
+ enum:
30625
+ - delegated
30626
+ - autonomous
30627
+ minItems: 1
30628
+ description: >-
30629
+ Instance types whose sessions receive the
30630
+ permission: `delegated`, `autonomous`, or both.
30631
+ example: *ref_39
30632
+ required:
30633
+ - slug
30634
+ - instance_types
30635
+ description: >-
30636
+ Permissions forming the ceiling on what sessions minted
30637
+ from this blueprint may do, with the instance types that
30638
+ receive each one. Absent from events emitted before this
30639
+ field was added.
30640
+ example: *ref_40
30446
30641
  invocable_by:
30447
30642
  type: object
30448
30643
  properties:
@@ -30453,7 +30648,7 @@ components:
30453
30648
  description: >-
30454
30649
  Role slugs whose members may mint user-delegated
30455
30650
  sessions from this blueprint.
30456
- example: *ref_39
30651
+ example: *ref_41
30457
30652
  organization_ids:
30458
30653
  type: array
30459
30654
  items:
@@ -30461,7 +30656,7 @@ components:
30461
30656
  description: >-
30462
30657
  Organizations in which autonomous sessions may be
30463
30658
  minted from this blueprint.
30464
- example: *ref_40
30659
+ example: *ref_42
30465
30660
  required:
30466
30661
  - role_slugs
30467
30662
  - organization_ids
@@ -30480,7 +30675,7 @@ components:
30480
30675
  Instance types that may be minted from this
30481
30676
  blueprint: `delegated` (acting for a user) and/or
30482
30677
  `autonomous` (acting as the agent itself).
30483
- example: *ref_41
30678
+ example: *ref_43
30484
30679
  required:
30485
30680
  - instance_types
30486
30681
  description: How sessions may be minted from this blueprint.
@@ -31520,7 +31715,7 @@ components:
31520
31715
  items:
31521
31716
  type: string
31522
31717
  description: The permissions granted to the API key.
31523
- example: &ref_42
31718
+ example: &ref_44
31524
31719
  - users:read
31525
31720
  - users:write
31526
31721
  created_at:
@@ -31646,7 +31841,7 @@ components:
31646
31841
  items:
31647
31842
  type: string
31648
31843
  description: The permissions granted to the API key.
31649
- example: *ref_42
31844
+ example: *ref_44
31650
31845
  created_at:
31651
31846
  type: string
31652
31847
  description: The timestamp when the API key was created.
@@ -31770,7 +31965,7 @@ components:
31770
31965
  items:
31771
31966
  type: string
31772
31967
  description: The permissions granted to the API key.
31773
- example: *ref_42
31968
+ example: *ref_44
31774
31969
  created_at:
31775
31970
  type: string
31776
31971
  description: The timestamp when the API key was created.
@@ -34883,7 +35078,7 @@ components:
34883
35078
  description: >-
34884
35079
  Labels assigned to the Feature Flag for categorizing and
34885
35080
  filtering.
34886
- example: &ref_43
35081
+ example: &ref_45
34887
35082
  - reports
34888
35083
  enabled:
34889
35084
  type: boolean
@@ -35044,7 +35239,7 @@ components:
35044
35239
  description: >-
35045
35240
  Labels assigned to the Feature Flag for categorizing and
35046
35241
  filtering.
35047
- example: *ref_43
35242
+ example: *ref_45
35048
35243
  enabled:
35049
35244
  type: boolean
35050
35245
  description: >-
@@ -35408,7 +35603,7 @@ components:
35408
35603
  description: >-
35409
35604
  Labels assigned to the Feature Flag for categorizing and
35410
35605
  filtering.
35411
- example: *ref_43
35606
+ example: *ref_45
35412
35607
  enabled:
35413
35608
  type: boolean
35414
35609
  description: >-
@@ -35504,7 +35699,7 @@ components:
35504
35699
  items:
35505
35700
  type: string
35506
35701
  description: The previous tags of the flag.
35507
- example: &ref_44
35702
+ example: &ref_46
35508
35703
  - beta
35509
35704
  - release
35510
35705
  owner:
@@ -35630,7 +35825,7 @@ components:
35630
35825
  description: >-
35631
35826
  Labels assigned to the Feature Flag for categorizing and
35632
35827
  filtering.
35633
- example: *ref_43
35828
+ example: *ref_45
35634
35829
  enabled:
35635
35830
  type: boolean
35636
35831
  description: >-
@@ -35790,7 +35985,7 @@ components:
35790
35985
  description: >-
35791
35986
  Labels assigned to the Feature Flag for categorizing and
35792
35987
  filtering.
35793
- example: *ref_43
35988
+ example: *ref_45
35794
35989
  enabled:
35795
35990
  type: boolean
35796
35991
  description: >-
@@ -35950,7 +36145,7 @@ components:
35950
36145
  description: >-
35951
36146
  Labels assigned to the Feature Flag for categorizing and
35952
36147
  filtering.
35953
- example: *ref_43
36148
+ example: *ref_45
35954
36149
  enabled:
35955
36150
  type: boolean
35956
36151
  description: >-
@@ -36360,7 +36555,7 @@ components:
36360
36555
  description: >-
36361
36556
  Labels assigned to the Feature Flag for categorizing and
36362
36557
  filtering.
36363
- example: *ref_43
36558
+ example: *ref_45
36364
36559
  enabled:
36365
36560
  type: boolean
36366
36561
  description: >-
@@ -36456,7 +36651,7 @@ components:
36456
36651
  items:
36457
36652
  type: string
36458
36653
  description: The previous tags of the flag.
36459
- example: *ref_44
36654
+ example: *ref_46
36460
36655
  owner:
36461
36656
  description: >-
36462
36657
  The previous owner of the flag, or `null` if it
@@ -37374,7 +37569,7 @@ components:
37374
37569
  description: >-
37375
37570
  Object containing [metadata](/authkit/metadata)
37376
37571
  key/value pairs associated with the Organization.
37377
- example: &ref_45
37572
+ example: &ref_47
37378
37573
  tier: diamond
37379
37574
  propertyNames:
37380
37575
  maxLength: 40
@@ -37524,7 +37719,7 @@ components:
37524
37719
  description: >-
37525
37720
  Object containing [metadata](/authkit/metadata)
37526
37721
  key/value pairs associated with the Organization.
37527
- example: *ref_45
37722
+ example: *ref_47
37528
37723
  propertyNames:
37529
37724
  maxLength: 40
37530
37725
  maxProperties: 50
@@ -38351,7 +38546,7 @@ components:
38351
38546
  items:
38352
38547
  type: string
38353
38548
  description: The permissions granted by the role.
38354
- example: &ref_46
38549
+ example: &ref_48
38355
38550
  - users:read
38356
38551
  - users:write
38357
38552
  created_at:
@@ -38435,7 +38630,7 @@ components:
38435
38630
  items:
38436
38631
  type: string
38437
38632
  description: The permissions granted by the role.
38438
- example: *ref_46
38633
+ example: *ref_48
38439
38634
  created_at:
38440
38635
  format: date-time
38441
38636
  type: string
@@ -38517,7 +38712,7 @@ components:
38517
38712
  items:
38518
38713
  type: string
38519
38714
  description: The permissions granted by the role.
38520
- example: *ref_46
38715
+ example: *ref_48
38521
38716
  created_at:
38522
38717
  format: date-time
38523
38718
  type: string
@@ -38654,7 +38849,7 @@ components:
38654
38849
  description: >-
38655
38850
  Object containing [metadata](/authkit/metadata)
38656
38851
  key/value pairs associated with the Organization.
38657
- example: *ref_45
38852
+ example: *ref_47
38658
38853
  propertyNames:
38659
38854
  maxLength: 40
38660
38855
  maxProperties: 50
@@ -39858,7 +40053,7 @@ components:
39858
40053
  items:
39859
40054
  type: string
39860
40055
  description: The permissions granted by the role.
39861
- example: &ref_47
40056
+ example: &ref_49
39862
40057
  - users:read
39863
40058
  - users:write
39864
40059
  created_at:
@@ -39924,7 +40119,7 @@ components:
39924
40119
  items:
39925
40120
  type: string
39926
40121
  description: The permissions granted by the role.
39927
- example: *ref_47
40122
+ example: *ref_49
39928
40123
  created_at:
39929
40124
  format: date-time
39930
40125
  type: string
@@ -39988,7 +40183,7 @@ components:
39988
40183
  items:
39989
40184
  type: string
39990
40185
  description: The permissions granted by the role.
39991
- example: *ref_47
40186
+ example: *ref_49
39992
40187
  created_at:
39993
40188
  format: date-time
39994
40189
  type: string
@@ -41190,7 +41385,7 @@ components:
41190
41385
  - data
41191
41386
  - created_at
41192
41387
  - object
41193
- example: *ref_48
41388
+ example: *ref_50
41194
41389
  description: An event emitted by WorkOS.
41195
41390
  EventList:
41196
41391
  type: object
@@ -41225,7 +41420,7 @@ components:
41225
41420
  example:
41226
41421
  object: list
41227
41422
  data:
41228
- - *ref_48
41423
+ - *ref_50
41229
41424
  list_metadata:
41230
41425
  after: event_01EHZNVPK3SFK441A1RGBFSHRT
41231
41426
  JwtTemplate:
@@ -42774,8 +42969,8 @@ components:
42774
42969
  - state
42775
42970
  AuthMethodMismatchError:
42776
42971
  type: object
42777
- properties: *ref_49
42778
- required: *ref_50
42972
+ properties: *ref_51
42973
+ required: *ref_52
42779
42974
  DataIntegrationAccessTokenResponse:
42780
42975
  oneOf:
42781
42976
  - type: object
@@ -42858,8 +43053,8 @@ components:
42858
43053
  - error
42859
43054
  AccountSelectionRequiredError:
42860
43055
  type: object
42861
- properties: *ref_51
42862
- required: *ref_52
43056
+ properties: *ref_53
43057
+ required: *ref_54
42863
43058
  DataIntegrationVendedCredential:
42864
43059
  discriminator:
42865
43060
  propertyName: auth_method
@@ -42926,7 +43121,7 @@ components:
42926
43121
  each `client_credentials` mint. A field a later OAuth refresh
42927
43122
  omits keeps its stored value. Present for `oauth` and
42928
43123
  `client_credentials` credentials; absent for `api_key`.
42929
- example: &ref_54
43124
+ example: &ref_56
42930
43125
  instance_url: https://acme.my.salesforce.com
42931
43126
  config:
42932
43127
  type: object
@@ -42942,7 +43137,7 @@ components:
42942
43137
  integration or organization pins require reconnecting or
42943
43138
  explicitly rebinding the connection. Defaults are live and can
42944
43139
  differ from a cached token's audience until refresh or re-mint.
42945
- example: &ref_53
43140
+ example: &ref_55
42946
43141
  account: myorg-myaccount
42947
43142
  required:
42948
43143
  - object
@@ -42988,7 +43183,7 @@ components:
42988
43183
  integration or organization pins require reconnecting or
42989
43184
  explicitly rebinding the connection. Defaults are live and can
42990
43185
  differ from a cached token's audience until refresh or re-mint.
42991
- example: *ref_53
43186
+ example: *ref_55
42992
43187
  required:
42993
43188
  - object
42994
43189
  - auth_method
@@ -43052,7 +43247,7 @@ components:
43052
43247
  each `client_credentials` mint. A field a later OAuth refresh
43053
43248
  omits keeps its stored value. Present for `oauth` and
43054
43249
  `client_credentials` credentials; absent for `api_key`.
43055
- example: *ref_54
43250
+ example: *ref_56
43056
43251
  config:
43057
43252
  type: object
43058
43253
  additionalProperties:
@@ -43067,7 +43262,7 @@ components:
43067
43262
  integration or organization pins require reconnecting or
43068
43263
  explicitly rebinding the connection. Defaults are live and can
43069
43264
  differ from a cached token's audience until refresh or re-mint.
43070
- example: *ref_53
43265
+ example: *ref_55
43071
43266
  required:
43072
43267
  - object
43073
43268
  - auth_method
@@ -43237,7 +43432,7 @@ components:
43237
43432
  deprecated: true
43238
43433
  description: Use updated_at instead.
43239
43434
  connected_account:
43240
- example: &ref_57
43435
+ example: &ref_59
43241
43436
  object: connected_account
43242
43437
  id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
43243
43438
  connection_role: compatibility
@@ -43326,7 +43521,7 @@ components:
43326
43521
  items:
43327
43522
  type: string
43328
43523
  description: The OAuth scopes granted for this connection.
43329
- example: &ref_55
43524
+ example: &ref_57
43330
43525
  - repo
43331
43526
  - user:email
43332
43527
  auth_method:
@@ -43376,7 +43571,7 @@ components:
43376
43571
  `installation` scope, excluding secret and undeclared
43377
43572
  fields. Returned for every authentication method;
43378
43573
  empty when no stored values can be disclosed.
43379
- example: &ref_56
43574
+ example: &ref_58
43380
43575
  instance_url: https://example.my.salesforce.com
43381
43576
  state:
43382
43577
  type: string
@@ -43561,7 +43756,7 @@ components:
43561
43756
  items:
43562
43757
  type: string
43563
43758
  description: The OAuth scopes granted for this connection.
43564
- example: *ref_55
43759
+ example: *ref_57
43565
43760
  auth_method:
43566
43761
  type: string
43567
43762
  enum:
@@ -43608,7 +43803,7 @@ components:
43608
43803
  `installation` scope, excluding secret and undeclared
43609
43804
  fields. Returned for every authentication method; empty
43610
43805
  when no stored values can be disclosed.
43611
- example: *ref_56
43806
+ example: *ref_58
43612
43807
  state:
43613
43808
  type: string
43614
43809
  enum:
@@ -43726,7 +43921,7 @@ components:
43726
43921
  - organizationId
43727
43922
  - createdAt
43728
43923
  - updatedAt
43729
- example: *ref_57
43924
+ example: *ref_59
43730
43925
  description: >-
43731
43926
  The user's connected accounts for this provider in the
43732
43927
  requested ownership context. This contains only the
package/dist/policy.mjs CHANGED
@@ -93,6 +93,10 @@ const operationHints = {
93
93
  "GET /directory_groups/{id}": { name: "get_group" },
94
94
  "GET /directory_users": { name: "list_users" },
95
95
  "GET /directory_users/{id}": { name: "get_user" },
96
+ "GET /directories/{directoryId}/groups": { name: "list_groups_for_directory" },
97
+ "GET /directories/{directoryId}/groups/{groupId}": { name: "get_group_for_directory" },
98
+ "GET /directories/{directoryId}/users": { name: "list_users_for_directory" },
99
+ "GET /directories/{directoryId}/users/{userId}": { name: "get_user_for_directory" },
96
100
  "POST /audit_logs/events": { name: "create_event" },
97
101
  "POST /audit_logs/exports": { name: "create_export" },
98
102
  "POST /audit_logs/actions/{actionName}/schemas": { name: "create_schema" },
package/dist/services.mjs CHANGED
@@ -489,22 +489,22 @@ const serviceEndpoints = {
489
489
  {
490
490
  "method": "GET",
491
491
  "path": "/directories/{directoryId}/groups",
492
- "name": "list_directory_groups"
492
+ "name": "list_groups_for_directory"
493
493
  },
494
494
  {
495
495
  "method": "GET",
496
496
  "path": "/directories/{directoryId}/groups/{groupId}",
497
- "name": "get_directory_group"
497
+ "name": "get_group_for_directory"
498
498
  },
499
499
  {
500
500
  "method": "GET",
501
501
  "path": "/directories/{directoryId}/users",
502
- "name": "list_directory_users"
502
+ "name": "list_users_for_directory"
503
503
  },
504
504
  {
505
505
  "method": "GET",
506
506
  "path": "/directories/{directoryId}/users/{userId}",
507
- "name": "get_directory_user"
507
+ "name": "get_user_for_directory"
508
508
  },
509
509
  {
510
510
  "method": "DELETE",
package/dist/types.d.ts CHANGED
@@ -715,7 +715,7 @@ export interface paths {
715
715
  put?: never;
716
716
  /**
717
717
  * Assign a role
718
- * @description Assign a role to an organization membership on a specific resource.
718
+ * @description Assign a role to an organization membership on a specific resource. If the role is already assigned to the membership on that resource, the existing role assignment is returned and no changes are made.
719
719
  */
720
720
  post: operations["AuthorizationRoleAssignmentsController_assignRole"];
721
721
  /**
@@ -8658,13 +8658,46 @@ export interface components {
8658
8658
  */
8659
8659
  description: string | null;
8660
8660
  /**
8661
- * @description Permission slugs forming the ceiling on what sessions minted from this blueprint may do.
8661
+ * @deprecated
8662
+ * @description Deprecated: use `scoped_permissions`. Slugs of every permission in the ceiling, across all instance types.
8662
8663
  * @example [
8663
8664
  * "crm:read",
8664
8665
  * "email:send"
8665
8666
  * ]
8666
8667
  */
8667
8668
  permissions: string[];
8669
+ /**
8670
+ * @description Permissions forming the ceiling on what sessions minted from this blueprint may do, with the instance types that receive each one.
8671
+ * @example [
8672
+ * {
8673
+ * "slug": "crm:read",
8674
+ * "instance_types": [
8675
+ * "delegated",
8676
+ * "autonomous"
8677
+ * ]
8678
+ * },
8679
+ * {
8680
+ * "slug": "email:send",
8681
+ * "instance_types": [
8682
+ * "delegated"
8683
+ * ]
8684
+ * }
8685
+ * ]
8686
+ */
8687
+ scoped_permissions: {
8688
+ /**
8689
+ * @description Slug of the permission.
8690
+ * @example email:send
8691
+ */
8692
+ slug: string;
8693
+ /**
8694
+ * @description Instance types whose sessions receive the permission: `delegated`, `autonomous`, or both.
8695
+ * @example [
8696
+ * "delegated"
8697
+ * ]
8698
+ */
8699
+ instance_types: ("delegated" | "autonomous")[];
8700
+ }[];
8668
8701
  /** @description Who may mint sessions from this blueprint. */
8669
8702
  invocable_by: {
8670
8703
  /**
@@ -11563,13 +11596,46 @@ export interface components {
11563
11596
  */
11564
11597
  description: string | null;
11565
11598
  /**
11566
- * @description Permission slugs forming the ceiling on what sessions minted from this blueprint may do.
11599
+ * @deprecated
11600
+ * @description Deprecated: use `scoped_permissions`. Slugs of every permission in the ceiling, across all instance types.
11567
11601
  * @example [
11568
11602
  * "crm:read",
11569
11603
  * "email:send"
11570
11604
  * ]
11571
11605
  */
11572
11606
  permissions: string[];
11607
+ /**
11608
+ * @description Permissions forming the ceiling on what sessions minted from this blueprint may do, with the instance types that receive each one. Absent from events emitted before this field was added.
11609
+ * @example [
11610
+ * {
11611
+ * "slug": "crm:read",
11612
+ * "instance_types": [
11613
+ * "delegated",
11614
+ * "autonomous"
11615
+ * ]
11616
+ * },
11617
+ * {
11618
+ * "slug": "email:send",
11619
+ * "instance_types": [
11620
+ * "delegated"
11621
+ * ]
11622
+ * }
11623
+ * ]
11624
+ */
11625
+ scoped_permissions?: {
11626
+ /**
11627
+ * @description Slug of the permission.
11628
+ * @example email:send
11629
+ */
11630
+ slug: string;
11631
+ /**
11632
+ * @description Instance types whose sessions receive the permission: `delegated`, `autonomous`, or both.
11633
+ * @example [
11634
+ * "delegated"
11635
+ * ]
11636
+ */
11637
+ instance_types: ("delegated" | "autonomous")[];
11638
+ }[];
11573
11639
  /** @description Who may mint sessions from this blueprint. */
11574
11640
  invocable_by: {
11575
11641
  /**
@@ -11718,13 +11784,46 @@ export interface components {
11718
11784
  */
11719
11785
  description: string | null;
11720
11786
  /**
11721
- * @description Permission slugs forming the ceiling on what sessions minted from this blueprint may do.
11787
+ * @deprecated
11788
+ * @description Deprecated: use `scoped_permissions`. Slugs of every permission in the ceiling, across all instance types.
11722
11789
  * @example [
11723
11790
  * "crm:read",
11724
11791
  * "email:send"
11725
11792
  * ]
11726
11793
  */
11727
11794
  permissions: string[];
11795
+ /**
11796
+ * @description Permissions forming the ceiling on what sessions minted from this blueprint may do, with the instance types that receive each one. Absent from events emitted before this field was added.
11797
+ * @example [
11798
+ * {
11799
+ * "slug": "crm:read",
11800
+ * "instance_types": [
11801
+ * "delegated",
11802
+ * "autonomous"
11803
+ * ]
11804
+ * },
11805
+ * {
11806
+ * "slug": "email:send",
11807
+ * "instance_types": [
11808
+ * "delegated"
11809
+ * ]
11810
+ * }
11811
+ * ]
11812
+ */
11813
+ scoped_permissions?: {
11814
+ /**
11815
+ * @description Slug of the permission.
11816
+ * @example email:send
11817
+ */
11818
+ slug: string;
11819
+ /**
11820
+ * @description Instance types whose sessions receive the permission: `delegated`, `autonomous`, or both.
11821
+ * @example [
11822
+ * "delegated"
11823
+ * ]
11824
+ */
11825
+ instance_types: ("delegated" | "autonomous")[];
11826
+ }[];
11728
11827
  /** @description Who may mint sessions from this blueprint. */
11729
11828
  invocable_by: {
11730
11829
  /**
@@ -23259,14 +23358,38 @@ export interface operations {
23259
23358
  */
23260
23359
  description?: string;
23261
23360
  /**
23262
- * @description Permission slugs forming the ceiling on what sessions minted from this blueprint may do. Each slug must exist in the environment.
23361
+ * @description Permissions forming the ceiling on what sessions minted from this blueprint may do. Each slug must exist in the environment and may appear once.
23263
23362
  * @default []
23264
23363
  * @example [
23265
- * "crm:read",
23266
- * "email:send"
23364
+ * {
23365
+ * "slug": "crm:read",
23366
+ * "instance_types": [
23367
+ * "delegated",
23368
+ * "autonomous"
23369
+ * ]
23370
+ * },
23371
+ * {
23372
+ * "slug": "email:send",
23373
+ * "instance_types": [
23374
+ * "delegated"
23375
+ * ]
23376
+ * }
23267
23377
  * ]
23268
23378
  */
23269
- permissions?: string[];
23379
+ permissions?: ({
23380
+ /**
23381
+ * @description Slug of a permission in the environment.
23382
+ * @example email:send
23383
+ */
23384
+ slug: string;
23385
+ /**
23386
+ * @description Instance types whose sessions receive the permission: `delegated`, `autonomous`, or both. Agent-delegated chaining and refreshes use the type of the presenting instance.
23387
+ * @example [
23388
+ * "delegated"
23389
+ * ]
23390
+ */
23391
+ instance_types: ("delegated" | "autonomous")[];
23392
+ } | string)[];
23270
23393
  /**
23271
23394
  * @description Who may mint sessions from this blueprint.
23272
23395
  * @default {}
@@ -23459,13 +23582,37 @@ export interface operations {
23459
23582
  */
23460
23583
  description?: string | null;
23461
23584
  /**
23462
- * @description Permission slugs forming the ceiling on what sessions minted from this blueprint may do. Each slug must exist in the environment.
23585
+ * @description Permissions forming the ceiling on what sessions minted from this blueprint may do. Each slug must exist in the environment and may appear once.
23463
23586
  * @example [
23464
- * "crm:read",
23465
- * "email:send"
23587
+ * {
23588
+ * "slug": "crm:read",
23589
+ * "instance_types": [
23590
+ * "delegated",
23591
+ * "autonomous"
23592
+ * ]
23593
+ * },
23594
+ * {
23595
+ * "slug": "email:send",
23596
+ * "instance_types": [
23597
+ * "delegated"
23598
+ * ]
23599
+ * }
23466
23600
  * ]
23467
23601
  */
23468
- permissions?: string[];
23602
+ permissions?: ({
23603
+ /**
23604
+ * @description Slug of a permission in the environment.
23605
+ * @example email:send
23606
+ */
23607
+ slug: string;
23608
+ /**
23609
+ * @description Instance types whose sessions receive the permission: `delegated`, `autonomous`, or both. Agent-delegated chaining and refreshes use the type of the presenting instance.
23610
+ * @example [
23611
+ * "delegated"
23612
+ * ]
23613
+ */
23614
+ instance_types: ("delegated" | "autonomous")[];
23615
+ } | string)[];
23469
23616
  /** @description Who may mint sessions from this blueprint. Omitted lists are left unchanged. */
23470
23617
  invocable_by?: {
23471
23618
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.168.0",
3
+ "version": "0.170.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",