@workos/openapi-spec 0.169.0 → 0.171.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.
- package/dist/open-api-spec.yaml +262 -69
- package/dist/policy.mjs +4 -0
- package/dist/services.mjs +4 -4
- package/dist/types.d.ts +159 -12
- package/package.json +3 -3
package/dist/open-api-spec.yaml
CHANGED
|
@@ -31,16 +31,58 @@ paths:
|
|
|
31
31
|
default: []
|
|
32
32
|
type: array
|
|
33
33
|
items:
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
39
|
-
|
|
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
|
-
|
|
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
|
-
|
|
351
|
-
|
|
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
|
-
|
|
355
|
-
|
|
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
|
-
|
|
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:
|
|
@@ -24442,6 +24526,7 @@ components:
|
|
|
24442
24526
|
- directory_sync_rate_limited
|
|
24443
24527
|
- directory_sync_unsupported
|
|
24444
24528
|
- discovery_endpoint_must_use_https
|
|
24529
|
+
- discovery_endpoint_tenant_not_allowed
|
|
24445
24530
|
- domain_already_exists
|
|
24446
24531
|
- domain_already_verified
|
|
24447
24532
|
- duplicate_endpoint
|
|
@@ -24886,7 +24971,7 @@ components:
|
|
|
24886
24971
|
- message
|
|
24887
24972
|
AuthMethodMismatchErrorBody:
|
|
24888
24973
|
type: object
|
|
24889
|
-
properties: &
|
|
24974
|
+
properties: &ref_51
|
|
24890
24975
|
code:
|
|
24891
24976
|
type: string
|
|
24892
24977
|
const: auth_method_mismatch
|
|
@@ -24900,13 +24985,13 @@ components:
|
|
|
24900
24985
|
example: >-
|
|
24901
24986
|
This installation uses oauth authentication. Use the POST
|
|
24902
24987
|
/:slug/token endpoint instead.
|
|
24903
|
-
required: &
|
|
24988
|
+
required: &ref_52
|
|
24904
24989
|
- code
|
|
24905
24990
|
- message
|
|
24906
24991
|
x-component-name: AuthMethodMismatchError
|
|
24907
24992
|
AccountSelectionRequiredErrorBody:
|
|
24908
24993
|
type: object
|
|
24909
|
-
properties: &
|
|
24994
|
+
properties: &ref_53
|
|
24910
24995
|
code:
|
|
24911
24996
|
type: string
|
|
24912
24997
|
const: account_selection_required
|
|
@@ -24920,7 +25005,7 @@ components:
|
|
|
24920
25005
|
example: >-
|
|
24921
25006
|
Several connected accounts match this user for this provider. Name
|
|
24922
25007
|
one with a connected account id.
|
|
24923
|
-
required: &
|
|
25008
|
+
required: &ref_54
|
|
24924
25009
|
- code
|
|
24925
25010
|
- message
|
|
24926
25011
|
x-component-name: AccountSelectionRequiredError
|
|
@@ -26539,12 +26624,49 @@ components:
|
|
|
26539
26624
|
type: array
|
|
26540
26625
|
items:
|
|
26541
26626
|
type: string
|
|
26627
|
+
deprecated: true
|
|
26542
26628
|
description: >-
|
|
26543
|
-
|
|
26544
|
-
|
|
26629
|
+
Deprecated: use `scoped_permissions`. Slugs of every permission in
|
|
26630
|
+
the ceiling, across all instance types.
|
|
26545
26631
|
example:
|
|
26546
26632
|
- crm:read
|
|
26547
26633
|
- email:send
|
|
26634
|
+
scoped_permissions:
|
|
26635
|
+
type: array
|
|
26636
|
+
items:
|
|
26637
|
+
type: object
|
|
26638
|
+
properties:
|
|
26639
|
+
slug:
|
|
26640
|
+
type: string
|
|
26641
|
+
description: Slug of the permission.
|
|
26642
|
+
example: email:send
|
|
26643
|
+
instance_types:
|
|
26644
|
+
type: array
|
|
26645
|
+
items:
|
|
26646
|
+
type: string
|
|
26647
|
+
enum:
|
|
26648
|
+
- delegated
|
|
26649
|
+
- autonomous
|
|
26650
|
+
minItems: 1
|
|
26651
|
+
description: >-
|
|
26652
|
+
Instance types whose sessions receive the permission:
|
|
26653
|
+
`delegated`, `autonomous`, or both.
|
|
26654
|
+
example:
|
|
26655
|
+
- delegated
|
|
26656
|
+
required:
|
|
26657
|
+
- slug
|
|
26658
|
+
- instance_types
|
|
26659
|
+
description: >-
|
|
26660
|
+
Permissions forming the ceiling on what sessions minted from this
|
|
26661
|
+
blueprint may do, with the instance types that receive each one.
|
|
26662
|
+
example:
|
|
26663
|
+
- slug: crm:read
|
|
26664
|
+
instance_types:
|
|
26665
|
+
- delegated
|
|
26666
|
+
- autonomous
|
|
26667
|
+
- slug: email:send
|
|
26668
|
+
instance_types:
|
|
26669
|
+
- delegated
|
|
26548
26670
|
invocable_by:
|
|
26549
26671
|
type: object
|
|
26550
26672
|
properties:
|
|
@@ -26628,6 +26750,7 @@ components:
|
|
|
26628
26750
|
- name
|
|
26629
26751
|
- description
|
|
26630
26752
|
- permissions
|
|
26753
|
+
- scoped_permissions
|
|
26631
26754
|
- invocable_by
|
|
26632
26755
|
- invocable_as
|
|
26633
26756
|
- session_settings
|
|
@@ -30039,7 +30162,7 @@ components:
|
|
|
30039
30162
|
- data
|
|
30040
30163
|
- created_at
|
|
30041
30164
|
description: An event emitted by WorkOS.
|
|
30042
|
-
example: &
|
|
30165
|
+
example: &ref_50
|
|
30043
30166
|
object: event
|
|
30044
30167
|
id: event_01EHZNVPK3SFK441A1RGBFSHRT
|
|
30045
30168
|
event: dsync.user.created
|
|
@@ -30240,12 +30363,51 @@ components:
|
|
|
30240
30363
|
type: array
|
|
30241
30364
|
items:
|
|
30242
30365
|
type: string
|
|
30366
|
+
deprecated: true
|
|
30243
30367
|
description: >-
|
|
30244
|
-
|
|
30245
|
-
|
|
30368
|
+
Deprecated: use `scoped_permissions`. Slugs of every
|
|
30369
|
+
permission in the ceiling, across all instance types.
|
|
30246
30370
|
example: &ref_38
|
|
30247
30371
|
- crm:read
|
|
30248
30372
|
- email:send
|
|
30373
|
+
scoped_permissions:
|
|
30374
|
+
type: array
|
|
30375
|
+
items:
|
|
30376
|
+
type: object
|
|
30377
|
+
properties:
|
|
30378
|
+
slug:
|
|
30379
|
+
type: string
|
|
30380
|
+
description: Slug of the permission.
|
|
30381
|
+
example: email:send
|
|
30382
|
+
instance_types:
|
|
30383
|
+
type: array
|
|
30384
|
+
items:
|
|
30385
|
+
type: string
|
|
30386
|
+
enum:
|
|
30387
|
+
- delegated
|
|
30388
|
+
- autonomous
|
|
30389
|
+
minItems: 1
|
|
30390
|
+
description: >-
|
|
30391
|
+
Instance types whose sessions receive the
|
|
30392
|
+
permission: `delegated`, `autonomous`, or both.
|
|
30393
|
+
example: &ref_39
|
|
30394
|
+
- delegated
|
|
30395
|
+
required:
|
|
30396
|
+
- slug
|
|
30397
|
+
- instance_types
|
|
30398
|
+
description: >-
|
|
30399
|
+
Permissions forming the ceiling on what sessions minted
|
|
30400
|
+
from this blueprint may do, with the instance types that
|
|
30401
|
+
receive each one. Absent from events emitted before this
|
|
30402
|
+
field was added.
|
|
30403
|
+
example: &ref_40
|
|
30404
|
+
- slug: crm:read
|
|
30405
|
+
instance_types:
|
|
30406
|
+
- delegated
|
|
30407
|
+
- autonomous
|
|
30408
|
+
- slug: email:send
|
|
30409
|
+
instance_types:
|
|
30410
|
+
- delegated
|
|
30249
30411
|
invocable_by:
|
|
30250
30412
|
type: object
|
|
30251
30413
|
properties:
|
|
@@ -30256,7 +30418,7 @@ components:
|
|
|
30256
30418
|
description: >-
|
|
30257
30419
|
Role slugs whose members may mint user-delegated
|
|
30258
30420
|
sessions from this blueprint.
|
|
30259
|
-
example: &
|
|
30421
|
+
example: &ref_41
|
|
30260
30422
|
- manager
|
|
30261
30423
|
organization_ids:
|
|
30262
30424
|
type: array
|
|
@@ -30265,7 +30427,7 @@ components:
|
|
|
30265
30427
|
description: >-
|
|
30266
30428
|
Organizations in which autonomous sessions may be
|
|
30267
30429
|
minted from this blueprint.
|
|
30268
|
-
example: &
|
|
30430
|
+
example: &ref_42
|
|
30269
30431
|
- org_01EHWNCE74X7JSDV0X3SZ3KJNY
|
|
30270
30432
|
required:
|
|
30271
30433
|
- role_slugs
|
|
@@ -30285,7 +30447,7 @@ components:
|
|
|
30285
30447
|
Instance types that may be minted from this
|
|
30286
30448
|
blueprint: `delegated` (acting for a user) and/or
|
|
30287
30449
|
`autonomous` (acting as the agent itself).
|
|
30288
|
-
example: &
|
|
30450
|
+
example: &ref_43
|
|
30289
30451
|
- delegated
|
|
30290
30452
|
- autonomous
|
|
30291
30453
|
required:
|
|
@@ -30442,10 +30604,41 @@ components:
|
|
|
30442
30604
|
type: array
|
|
30443
30605
|
items:
|
|
30444
30606
|
type: string
|
|
30607
|
+
deprecated: true
|
|
30445
30608
|
description: >-
|
|
30446
|
-
|
|
30447
|
-
|
|
30609
|
+
Deprecated: use `scoped_permissions`. Slugs of every
|
|
30610
|
+
permission in the ceiling, across all instance types.
|
|
30448
30611
|
example: *ref_38
|
|
30612
|
+
scoped_permissions:
|
|
30613
|
+
type: array
|
|
30614
|
+
items:
|
|
30615
|
+
type: object
|
|
30616
|
+
properties:
|
|
30617
|
+
slug:
|
|
30618
|
+
type: string
|
|
30619
|
+
description: Slug of the permission.
|
|
30620
|
+
example: email:send
|
|
30621
|
+
instance_types:
|
|
30622
|
+
type: array
|
|
30623
|
+
items:
|
|
30624
|
+
type: string
|
|
30625
|
+
enum:
|
|
30626
|
+
- delegated
|
|
30627
|
+
- autonomous
|
|
30628
|
+
minItems: 1
|
|
30629
|
+
description: >-
|
|
30630
|
+
Instance types whose sessions receive the
|
|
30631
|
+
permission: `delegated`, `autonomous`, or both.
|
|
30632
|
+
example: *ref_39
|
|
30633
|
+
required:
|
|
30634
|
+
- slug
|
|
30635
|
+
- instance_types
|
|
30636
|
+
description: >-
|
|
30637
|
+
Permissions forming the ceiling on what sessions minted
|
|
30638
|
+
from this blueprint may do, with the instance types that
|
|
30639
|
+
receive each one. Absent from events emitted before this
|
|
30640
|
+
field was added.
|
|
30641
|
+
example: *ref_40
|
|
30449
30642
|
invocable_by:
|
|
30450
30643
|
type: object
|
|
30451
30644
|
properties:
|
|
@@ -30456,7 +30649,7 @@ components:
|
|
|
30456
30649
|
description: >-
|
|
30457
30650
|
Role slugs whose members may mint user-delegated
|
|
30458
30651
|
sessions from this blueprint.
|
|
30459
|
-
example: *
|
|
30652
|
+
example: *ref_41
|
|
30460
30653
|
organization_ids:
|
|
30461
30654
|
type: array
|
|
30462
30655
|
items:
|
|
@@ -30464,7 +30657,7 @@ components:
|
|
|
30464
30657
|
description: >-
|
|
30465
30658
|
Organizations in which autonomous sessions may be
|
|
30466
30659
|
minted from this blueprint.
|
|
30467
|
-
example: *
|
|
30660
|
+
example: *ref_42
|
|
30468
30661
|
required:
|
|
30469
30662
|
- role_slugs
|
|
30470
30663
|
- organization_ids
|
|
@@ -30483,7 +30676,7 @@ components:
|
|
|
30483
30676
|
Instance types that may be minted from this
|
|
30484
30677
|
blueprint: `delegated` (acting for a user) and/or
|
|
30485
30678
|
`autonomous` (acting as the agent itself).
|
|
30486
|
-
example: *
|
|
30679
|
+
example: *ref_43
|
|
30487
30680
|
required:
|
|
30488
30681
|
- instance_types
|
|
30489
30682
|
description: How sessions may be minted from this blueprint.
|
|
@@ -31523,7 +31716,7 @@ components:
|
|
|
31523
31716
|
items:
|
|
31524
31717
|
type: string
|
|
31525
31718
|
description: The permissions granted to the API key.
|
|
31526
|
-
example: &
|
|
31719
|
+
example: &ref_44
|
|
31527
31720
|
- users:read
|
|
31528
31721
|
- users:write
|
|
31529
31722
|
created_at:
|
|
@@ -31649,7 +31842,7 @@ components:
|
|
|
31649
31842
|
items:
|
|
31650
31843
|
type: string
|
|
31651
31844
|
description: The permissions granted to the API key.
|
|
31652
|
-
example: *
|
|
31845
|
+
example: *ref_44
|
|
31653
31846
|
created_at:
|
|
31654
31847
|
type: string
|
|
31655
31848
|
description: The timestamp when the API key was created.
|
|
@@ -31773,7 +31966,7 @@ components:
|
|
|
31773
31966
|
items:
|
|
31774
31967
|
type: string
|
|
31775
31968
|
description: The permissions granted to the API key.
|
|
31776
|
-
example: *
|
|
31969
|
+
example: *ref_44
|
|
31777
31970
|
created_at:
|
|
31778
31971
|
type: string
|
|
31779
31972
|
description: The timestamp when the API key was created.
|
|
@@ -34886,7 +35079,7 @@ components:
|
|
|
34886
35079
|
description: >-
|
|
34887
35080
|
Labels assigned to the Feature Flag for categorizing and
|
|
34888
35081
|
filtering.
|
|
34889
|
-
example: &
|
|
35082
|
+
example: &ref_45
|
|
34890
35083
|
- reports
|
|
34891
35084
|
enabled:
|
|
34892
35085
|
type: boolean
|
|
@@ -35047,7 +35240,7 @@ components:
|
|
|
35047
35240
|
description: >-
|
|
35048
35241
|
Labels assigned to the Feature Flag for categorizing and
|
|
35049
35242
|
filtering.
|
|
35050
|
-
example: *
|
|
35243
|
+
example: *ref_45
|
|
35051
35244
|
enabled:
|
|
35052
35245
|
type: boolean
|
|
35053
35246
|
description: >-
|
|
@@ -35411,7 +35604,7 @@ components:
|
|
|
35411
35604
|
description: >-
|
|
35412
35605
|
Labels assigned to the Feature Flag for categorizing and
|
|
35413
35606
|
filtering.
|
|
35414
|
-
example: *
|
|
35607
|
+
example: *ref_45
|
|
35415
35608
|
enabled:
|
|
35416
35609
|
type: boolean
|
|
35417
35610
|
description: >-
|
|
@@ -35507,7 +35700,7 @@ components:
|
|
|
35507
35700
|
items:
|
|
35508
35701
|
type: string
|
|
35509
35702
|
description: The previous tags of the flag.
|
|
35510
|
-
example: &
|
|
35703
|
+
example: &ref_46
|
|
35511
35704
|
- beta
|
|
35512
35705
|
- release
|
|
35513
35706
|
owner:
|
|
@@ -35633,7 +35826,7 @@ components:
|
|
|
35633
35826
|
description: >-
|
|
35634
35827
|
Labels assigned to the Feature Flag for categorizing and
|
|
35635
35828
|
filtering.
|
|
35636
|
-
example: *
|
|
35829
|
+
example: *ref_45
|
|
35637
35830
|
enabled:
|
|
35638
35831
|
type: boolean
|
|
35639
35832
|
description: >-
|
|
@@ -35793,7 +35986,7 @@ components:
|
|
|
35793
35986
|
description: >-
|
|
35794
35987
|
Labels assigned to the Feature Flag for categorizing and
|
|
35795
35988
|
filtering.
|
|
35796
|
-
example: *
|
|
35989
|
+
example: *ref_45
|
|
35797
35990
|
enabled:
|
|
35798
35991
|
type: boolean
|
|
35799
35992
|
description: >-
|
|
@@ -35953,7 +36146,7 @@ components:
|
|
|
35953
36146
|
description: >-
|
|
35954
36147
|
Labels assigned to the Feature Flag for categorizing and
|
|
35955
36148
|
filtering.
|
|
35956
|
-
example: *
|
|
36149
|
+
example: *ref_45
|
|
35957
36150
|
enabled:
|
|
35958
36151
|
type: boolean
|
|
35959
36152
|
description: >-
|
|
@@ -36363,7 +36556,7 @@ components:
|
|
|
36363
36556
|
description: >-
|
|
36364
36557
|
Labels assigned to the Feature Flag for categorizing and
|
|
36365
36558
|
filtering.
|
|
36366
|
-
example: *
|
|
36559
|
+
example: *ref_45
|
|
36367
36560
|
enabled:
|
|
36368
36561
|
type: boolean
|
|
36369
36562
|
description: >-
|
|
@@ -36459,7 +36652,7 @@ components:
|
|
|
36459
36652
|
items:
|
|
36460
36653
|
type: string
|
|
36461
36654
|
description: The previous tags of the flag.
|
|
36462
|
-
example: *
|
|
36655
|
+
example: *ref_46
|
|
36463
36656
|
owner:
|
|
36464
36657
|
description: >-
|
|
36465
36658
|
The previous owner of the flag, or `null` if it
|
|
@@ -37377,7 +37570,7 @@ components:
|
|
|
37377
37570
|
description: >-
|
|
37378
37571
|
Object containing [metadata](/authkit/metadata)
|
|
37379
37572
|
key/value pairs associated with the Organization.
|
|
37380
|
-
example: &
|
|
37573
|
+
example: &ref_47
|
|
37381
37574
|
tier: diamond
|
|
37382
37575
|
propertyNames:
|
|
37383
37576
|
maxLength: 40
|
|
@@ -37527,7 +37720,7 @@ components:
|
|
|
37527
37720
|
description: >-
|
|
37528
37721
|
Object containing [metadata](/authkit/metadata)
|
|
37529
37722
|
key/value pairs associated with the Organization.
|
|
37530
|
-
example: *
|
|
37723
|
+
example: *ref_47
|
|
37531
37724
|
propertyNames:
|
|
37532
37725
|
maxLength: 40
|
|
37533
37726
|
maxProperties: 50
|
|
@@ -38354,7 +38547,7 @@ components:
|
|
|
38354
38547
|
items:
|
|
38355
38548
|
type: string
|
|
38356
38549
|
description: The permissions granted by the role.
|
|
38357
|
-
example: &
|
|
38550
|
+
example: &ref_48
|
|
38358
38551
|
- users:read
|
|
38359
38552
|
- users:write
|
|
38360
38553
|
created_at:
|
|
@@ -38438,7 +38631,7 @@ components:
|
|
|
38438
38631
|
items:
|
|
38439
38632
|
type: string
|
|
38440
38633
|
description: The permissions granted by the role.
|
|
38441
|
-
example: *
|
|
38634
|
+
example: *ref_48
|
|
38442
38635
|
created_at:
|
|
38443
38636
|
format: date-time
|
|
38444
38637
|
type: string
|
|
@@ -38520,7 +38713,7 @@ components:
|
|
|
38520
38713
|
items:
|
|
38521
38714
|
type: string
|
|
38522
38715
|
description: The permissions granted by the role.
|
|
38523
|
-
example: *
|
|
38716
|
+
example: *ref_48
|
|
38524
38717
|
created_at:
|
|
38525
38718
|
format: date-time
|
|
38526
38719
|
type: string
|
|
@@ -38657,7 +38850,7 @@ components:
|
|
|
38657
38850
|
description: >-
|
|
38658
38851
|
Object containing [metadata](/authkit/metadata)
|
|
38659
38852
|
key/value pairs associated with the Organization.
|
|
38660
|
-
example: *
|
|
38853
|
+
example: *ref_47
|
|
38661
38854
|
propertyNames:
|
|
38662
38855
|
maxLength: 40
|
|
38663
38856
|
maxProperties: 50
|
|
@@ -39861,7 +40054,7 @@ components:
|
|
|
39861
40054
|
items:
|
|
39862
40055
|
type: string
|
|
39863
40056
|
description: The permissions granted by the role.
|
|
39864
|
-
example: &
|
|
40057
|
+
example: &ref_49
|
|
39865
40058
|
- users:read
|
|
39866
40059
|
- users:write
|
|
39867
40060
|
created_at:
|
|
@@ -39927,7 +40120,7 @@ components:
|
|
|
39927
40120
|
items:
|
|
39928
40121
|
type: string
|
|
39929
40122
|
description: The permissions granted by the role.
|
|
39930
|
-
example: *
|
|
40123
|
+
example: *ref_49
|
|
39931
40124
|
created_at:
|
|
39932
40125
|
format: date-time
|
|
39933
40126
|
type: string
|
|
@@ -39991,7 +40184,7 @@ components:
|
|
|
39991
40184
|
items:
|
|
39992
40185
|
type: string
|
|
39993
40186
|
description: The permissions granted by the role.
|
|
39994
|
-
example: *
|
|
40187
|
+
example: *ref_49
|
|
39995
40188
|
created_at:
|
|
39996
40189
|
format: date-time
|
|
39997
40190
|
type: string
|
|
@@ -41193,7 +41386,7 @@ components:
|
|
|
41193
41386
|
- data
|
|
41194
41387
|
- created_at
|
|
41195
41388
|
- object
|
|
41196
|
-
example: *
|
|
41389
|
+
example: *ref_50
|
|
41197
41390
|
description: An event emitted by WorkOS.
|
|
41198
41391
|
EventList:
|
|
41199
41392
|
type: object
|
|
@@ -41228,7 +41421,7 @@ components:
|
|
|
41228
41421
|
example:
|
|
41229
41422
|
object: list
|
|
41230
41423
|
data:
|
|
41231
|
-
- *
|
|
41424
|
+
- *ref_50
|
|
41232
41425
|
list_metadata:
|
|
41233
41426
|
after: event_01EHZNVPK3SFK441A1RGBFSHRT
|
|
41234
41427
|
JwtTemplate:
|
|
@@ -42777,8 +42970,8 @@ components:
|
|
|
42777
42970
|
- state
|
|
42778
42971
|
AuthMethodMismatchError:
|
|
42779
42972
|
type: object
|
|
42780
|
-
properties: *
|
|
42781
|
-
required: *
|
|
42973
|
+
properties: *ref_51
|
|
42974
|
+
required: *ref_52
|
|
42782
42975
|
DataIntegrationAccessTokenResponse:
|
|
42783
42976
|
oneOf:
|
|
42784
42977
|
- type: object
|
|
@@ -42861,8 +43054,8 @@ components:
|
|
|
42861
43054
|
- error
|
|
42862
43055
|
AccountSelectionRequiredError:
|
|
42863
43056
|
type: object
|
|
42864
|
-
properties: *
|
|
42865
|
-
required: *
|
|
43057
|
+
properties: *ref_53
|
|
43058
|
+
required: *ref_54
|
|
42866
43059
|
DataIntegrationVendedCredential:
|
|
42867
43060
|
discriminator:
|
|
42868
43061
|
propertyName: auth_method
|
|
@@ -42929,7 +43122,7 @@ components:
|
|
|
42929
43122
|
each `client_credentials` mint. A field a later OAuth refresh
|
|
42930
43123
|
omits keeps its stored value. Present for `oauth` and
|
|
42931
43124
|
`client_credentials` credentials; absent for `api_key`.
|
|
42932
|
-
example: &
|
|
43125
|
+
example: &ref_56
|
|
42933
43126
|
instance_url: https://acme.my.salesforce.com
|
|
42934
43127
|
config:
|
|
42935
43128
|
type: object
|
|
@@ -42945,7 +43138,7 @@ components:
|
|
|
42945
43138
|
integration or organization pins require reconnecting or
|
|
42946
43139
|
explicitly rebinding the connection. Defaults are live and can
|
|
42947
43140
|
differ from a cached token's audience until refresh or re-mint.
|
|
42948
|
-
example: &
|
|
43141
|
+
example: &ref_55
|
|
42949
43142
|
account: myorg-myaccount
|
|
42950
43143
|
required:
|
|
42951
43144
|
- object
|
|
@@ -42991,7 +43184,7 @@ components:
|
|
|
42991
43184
|
integration or organization pins require reconnecting or
|
|
42992
43185
|
explicitly rebinding the connection. Defaults are live and can
|
|
42993
43186
|
differ from a cached token's audience until refresh or re-mint.
|
|
42994
|
-
example: *
|
|
43187
|
+
example: *ref_55
|
|
42995
43188
|
required:
|
|
42996
43189
|
- object
|
|
42997
43190
|
- auth_method
|
|
@@ -43055,7 +43248,7 @@ components:
|
|
|
43055
43248
|
each `client_credentials` mint. A field a later OAuth refresh
|
|
43056
43249
|
omits keeps its stored value. Present for `oauth` and
|
|
43057
43250
|
`client_credentials` credentials; absent for `api_key`.
|
|
43058
|
-
example: *
|
|
43251
|
+
example: *ref_56
|
|
43059
43252
|
config:
|
|
43060
43253
|
type: object
|
|
43061
43254
|
additionalProperties:
|
|
@@ -43070,7 +43263,7 @@ components:
|
|
|
43070
43263
|
integration or organization pins require reconnecting or
|
|
43071
43264
|
explicitly rebinding the connection. Defaults are live and can
|
|
43072
43265
|
differ from a cached token's audience until refresh or re-mint.
|
|
43073
|
-
example: *
|
|
43266
|
+
example: *ref_55
|
|
43074
43267
|
required:
|
|
43075
43268
|
- object
|
|
43076
43269
|
- auth_method
|
|
@@ -43240,7 +43433,7 @@ components:
|
|
|
43240
43433
|
deprecated: true
|
|
43241
43434
|
description: Use updated_at instead.
|
|
43242
43435
|
connected_account:
|
|
43243
|
-
example: &
|
|
43436
|
+
example: &ref_59
|
|
43244
43437
|
object: connected_account
|
|
43245
43438
|
id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
|
|
43246
43439
|
connection_role: compatibility
|
|
@@ -43329,7 +43522,7 @@ components:
|
|
|
43329
43522
|
items:
|
|
43330
43523
|
type: string
|
|
43331
43524
|
description: The OAuth scopes granted for this connection.
|
|
43332
|
-
example: &
|
|
43525
|
+
example: &ref_57
|
|
43333
43526
|
- repo
|
|
43334
43527
|
- user:email
|
|
43335
43528
|
auth_method:
|
|
@@ -43379,7 +43572,7 @@ components:
|
|
|
43379
43572
|
`installation` scope, excluding secret and undeclared
|
|
43380
43573
|
fields. Returned for every authentication method;
|
|
43381
43574
|
empty when no stored values can be disclosed.
|
|
43382
|
-
example: &
|
|
43575
|
+
example: &ref_58
|
|
43383
43576
|
instance_url: https://example.my.salesforce.com
|
|
43384
43577
|
state:
|
|
43385
43578
|
type: string
|
|
@@ -43564,7 +43757,7 @@ components:
|
|
|
43564
43757
|
items:
|
|
43565
43758
|
type: string
|
|
43566
43759
|
description: The OAuth scopes granted for this connection.
|
|
43567
|
-
example: *
|
|
43760
|
+
example: *ref_57
|
|
43568
43761
|
auth_method:
|
|
43569
43762
|
type: string
|
|
43570
43763
|
enum:
|
|
@@ -43611,7 +43804,7 @@ components:
|
|
|
43611
43804
|
`installation` scope, excluding secret and undeclared
|
|
43612
43805
|
fields. Returned for every authentication method; empty
|
|
43613
43806
|
when no stored values can be disclosed.
|
|
43614
|
-
example: *
|
|
43807
|
+
example: *ref_58
|
|
43615
43808
|
state:
|
|
43616
43809
|
type: string
|
|
43617
43810
|
enum:
|
|
@@ -43729,7 +43922,7 @@ components:
|
|
|
43729
43922
|
- organizationId
|
|
43730
43923
|
- createdAt
|
|
43731
43924
|
- updatedAt
|
|
43732
|
-
example: *
|
|
43925
|
+
example: *ref_59
|
|
43733
43926
|
description: >-
|
|
43734
43927
|
The user's connected accounts for this provider in the
|
|
43735
43928
|
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": "
|
|
492
|
+
"name": "list_groups_for_directory"
|
|
493
493
|
},
|
|
494
494
|
{
|
|
495
495
|
"method": "GET",
|
|
496
496
|
"path": "/directories/{directoryId}/groups/{groupId}",
|
|
497
|
-
"name": "
|
|
497
|
+
"name": "get_group_for_directory"
|
|
498
498
|
},
|
|
499
499
|
{
|
|
500
500
|
"method": "GET",
|
|
501
501
|
"path": "/directories/{directoryId}/users",
|
|
502
|
-
"name": "
|
|
502
|
+
"name": "list_users_for_directory"
|
|
503
503
|
},
|
|
504
504
|
{
|
|
505
505
|
"method": "GET",
|
|
506
506
|
"path": "/directories/{directoryId}/users/{userId}",
|
|
507
|
-
"name": "
|
|
507
|
+
"name": "get_user_for_directory"
|
|
508
508
|
},
|
|
509
509
|
{
|
|
510
510
|
"method": "DELETE",
|
package/dist/types.d.ts
CHANGED
|
@@ -6702,7 +6702,7 @@ export interface components {
|
|
|
6702
6702
|
* @description A machine-readable error code; additional values may be added over time.
|
|
6703
6703
|
* @enum {string}
|
|
6704
6704
|
*/
|
|
6705
|
-
ErrorBodyCode: "account_selection_required" | "action_denied" | "already_claimed" | "ambiguous_saml_options" | "api_key_already_expired" | "application_consent_required" | "auth_method_disabled" | "auth_method_mismatch" | "authentication_method_not_allowed" | "authorization_resource_external_id_conflict" | "bad_request" | "both_saml_and_oidc_options_provided" | "cannot_deactivate_pending_organization_membership" | "cannot_delete_last_certificate" | "cannot_reactivate_pending_organization_membership" | "cannot_remove_group_sourced_role" | "certificate_expired" | "chain_depth_exceeded" | "claim_denied" | "claim_expired" | "client_secret_not_accepted" | "client_secret_required" | "code_challenge_not_found" | "concurrent_flag_target_update" | "concurrent_request" | "connected_account_limit_reached" | "connection_could_not_be_verified" | "connection_deletion_in_progress" | "connection_is_not_saml" | "connection_type_conflicts_with_options" | "connection_type_not_supported" | "connection_type_not_updatable" | "connection_type_or_options_required" | "daily_quota_exceeded" | "directory_sync_disabled" | "directory_sync_in_progress" | "directory_sync_rate_limited" | "directory_sync_unsupported" | "discovery_endpoint_must_use_https" | "domain_already_exists" | "domain_already_verified" | "duplicate_endpoint" | "duplicate_group_role_assignment" | "email_already_in_use" | "email_already_invited" | "email_already_invited_to_organization" | "email_already_verified" | "email_change_code_expired" | "email_change_code_incorrect" | "email_change_code_previously_used" | "email_change_not_allowed" | "email_change_not_needed" | "email_change_too_many_attempts" | "email_completion_required" | "email_domain_not_deliverable" | "email_mismatch" | "email_not_available" | "email_password_auth_disabled" | "email_previously_verified" | "email_verification_code_expired" | "email_verification_code_incorrect" | "email_verification_code_previously_used" | "email_verification_required" | "entity_not_found" | "expires_in_days_too_long" | "expires_in_days_too_short" | "external_auth_session_already_completed" | "external_id_already_in_use" | "external_id_already_used" | "group_membership_limit_exceeded" | "group_membership_update_overlap" | "group_role_assignment_update_overlap" | "id_token_signature_algorithm_not_supported" | "idp_metadata_fetch_failed" | "incomplete_saml_options" | "invalid_agent_access_token" | "invalid_certificate" | "invalid_claim" | "invalid_credentials" | "invalid_email" | "invalid_idp_sso_url" | "invalid_invite" | "invalid_locale" | "invalid_metadata" | "invalid_one_time_code" | "invalid_organization" | "invalid_organization_id" | "invalid_password_hash" | "invalid_pending_authentication_token" | "invalid_refresh_token" | "invalid_request" | "invalid_request_parameters" | "invalid_role" | "invalid_state" | "invalid_url" | "invalid_user_access_token" | "invitation_email_not_sent" | "invite_accepted" | "invite_expired" | "invite_has_accepted_user_id" | "invite_not_pending" | "invite_revoked" | "ip_address_required" | "it_contact_already_exists" | "it_contact_invitation_already_active" | "key_pair_not_accepted" | "lock_timeout" | "max_age_exceeded" | "mfa_challenge" | "mfa_enrollment" | "missing_organization_id_or_resource_type_slug" | "missing_user_id_or_organization_id" | "multiple_roles_not_enabled" | "name_already_in_use" | "no_pending_email_change" | "oidc_options_required" | "one_time_code_expired" | "one_time_code_previously_used" | "one_time_code_too_many_attempts" | "organization_blocked_from_sending_invites" | "organization_membership_directory_managed" | "organization_not_found" | "organization_not_invocable" | "organization_role_slug_conflict" | "organization_selection_required" | "passkey_progressive_enrollment" | "password_and_password_hash_provided" | "password_and_password_hash_type_provided" | "password_reset_error" | "password_reset_not_allowed" | "password_salt_position_requires_password_hash" | "password_strength_error" | "permission_not_found" | "permission_slug_conflict" | "phone_number_required" | "production_feature_requires_billing" | "radar_challenge" | "radar_sign_up_challenge" | "radar_sms_sign_in_challenge" | "rate_limit_exceeded" | "resource_has_dependents" | "resource_limit_exceeded" | "resource_type_update_in_progress" | "role_assignment_update_overlap" | "role_has_assignments" | "role_has_group_role_mappings" | "role_not_found" | "role_not_invocable" | "role_slug_conflict" | "saml_options_required" | "session_expired" | "session_revoked" | "session_settings_not_found" | "sms_challenge_quota_reached" | "sms_challenge_rate_limited" | "sp_signing_cert_already_exists" | "stripe_customer_id_already_used" | "sub_resource_scoped_role_not_allowed" | "team_not_found" | "token_authentication_method_not_supported" | "too_many_failed_verification_attempts" | "too_many_sp_encryption_certs" | "unsupported_invocation_type" | "user_already_exists" | "user_already_organization_member" | "user_code_expired" | "user_consent_options_not_supported" | "user_creation_error" | "user_mismatch" | "user_not_member_of_organization" | "user_session_ended" | "verification_id_required" | "wrong_account";
|
|
6705
|
+
ErrorBodyCode: "account_selection_required" | "action_denied" | "already_claimed" | "ambiguous_saml_options" | "api_key_already_expired" | "application_consent_required" | "auth_method_disabled" | "auth_method_mismatch" | "authentication_method_not_allowed" | "authorization_resource_external_id_conflict" | "bad_request" | "both_saml_and_oidc_options_provided" | "cannot_deactivate_pending_organization_membership" | "cannot_delete_last_certificate" | "cannot_reactivate_pending_organization_membership" | "cannot_remove_group_sourced_role" | "certificate_expired" | "chain_depth_exceeded" | "claim_denied" | "claim_expired" | "client_secret_not_accepted" | "client_secret_required" | "code_challenge_not_found" | "concurrent_flag_target_update" | "concurrent_request" | "connected_account_limit_reached" | "connection_could_not_be_verified" | "connection_deletion_in_progress" | "connection_is_not_saml" | "connection_type_conflicts_with_options" | "connection_type_not_supported" | "connection_type_not_updatable" | "connection_type_or_options_required" | "daily_quota_exceeded" | "directory_sync_disabled" | "directory_sync_in_progress" | "directory_sync_rate_limited" | "directory_sync_unsupported" | "discovery_endpoint_must_use_https" | "discovery_endpoint_tenant_not_allowed" | "domain_already_exists" | "domain_already_verified" | "duplicate_endpoint" | "duplicate_group_role_assignment" | "email_already_in_use" | "email_already_invited" | "email_already_invited_to_organization" | "email_already_verified" | "email_change_code_expired" | "email_change_code_incorrect" | "email_change_code_previously_used" | "email_change_not_allowed" | "email_change_not_needed" | "email_change_too_many_attempts" | "email_completion_required" | "email_domain_not_deliverable" | "email_mismatch" | "email_not_available" | "email_password_auth_disabled" | "email_previously_verified" | "email_verification_code_expired" | "email_verification_code_incorrect" | "email_verification_code_previously_used" | "email_verification_required" | "entity_not_found" | "expires_in_days_too_long" | "expires_in_days_too_short" | "external_auth_session_already_completed" | "external_id_already_in_use" | "external_id_already_used" | "group_membership_limit_exceeded" | "group_membership_update_overlap" | "group_role_assignment_update_overlap" | "id_token_signature_algorithm_not_supported" | "idp_metadata_fetch_failed" | "incomplete_saml_options" | "invalid_agent_access_token" | "invalid_certificate" | "invalid_claim" | "invalid_credentials" | "invalid_email" | "invalid_idp_sso_url" | "invalid_invite" | "invalid_locale" | "invalid_metadata" | "invalid_one_time_code" | "invalid_organization" | "invalid_organization_id" | "invalid_password_hash" | "invalid_pending_authentication_token" | "invalid_refresh_token" | "invalid_request" | "invalid_request_parameters" | "invalid_role" | "invalid_state" | "invalid_url" | "invalid_user_access_token" | "invitation_email_not_sent" | "invite_accepted" | "invite_expired" | "invite_has_accepted_user_id" | "invite_not_pending" | "invite_revoked" | "ip_address_required" | "it_contact_already_exists" | "it_contact_invitation_already_active" | "key_pair_not_accepted" | "lock_timeout" | "max_age_exceeded" | "mfa_challenge" | "mfa_enrollment" | "missing_organization_id_or_resource_type_slug" | "missing_user_id_or_organization_id" | "multiple_roles_not_enabled" | "name_already_in_use" | "no_pending_email_change" | "oidc_options_required" | "one_time_code_expired" | "one_time_code_previously_used" | "one_time_code_too_many_attempts" | "organization_blocked_from_sending_invites" | "organization_membership_directory_managed" | "organization_not_found" | "organization_not_invocable" | "organization_role_slug_conflict" | "organization_selection_required" | "passkey_progressive_enrollment" | "password_and_password_hash_provided" | "password_and_password_hash_type_provided" | "password_reset_error" | "password_reset_not_allowed" | "password_salt_position_requires_password_hash" | "password_strength_error" | "permission_not_found" | "permission_slug_conflict" | "phone_number_required" | "production_feature_requires_billing" | "radar_challenge" | "radar_sign_up_challenge" | "radar_sms_sign_in_challenge" | "rate_limit_exceeded" | "resource_has_dependents" | "resource_limit_exceeded" | "resource_type_update_in_progress" | "role_assignment_update_overlap" | "role_has_assignments" | "role_has_group_role_mappings" | "role_not_found" | "role_not_invocable" | "role_slug_conflict" | "saml_options_required" | "session_expired" | "session_revoked" | "session_settings_not_found" | "sms_challenge_quota_reached" | "sms_challenge_rate_limited" | "sp_signing_cert_already_exists" | "stripe_customer_id_already_used" | "sub_resource_scoped_role_not_allowed" | "team_not_found" | "token_authentication_method_not_supported" | "too_many_failed_verification_attempts" | "too_many_sp_encryption_certs" | "unsupported_invocation_type" | "user_already_exists" | "user_already_organization_member" | "user_code_expired" | "user_consent_options_not_supported" | "user_creation_error" | "user_mismatch" | "user_not_member_of_organization" | "user_session_ended" | "verification_id_required" | "wrong_account";
|
|
6706
6706
|
ErrorBodyWithCode: {
|
|
6707
6707
|
/**
|
|
6708
6708
|
* @description The error code identifying the type of error.
|
|
@@ -8658,13 +8658,46 @@ export interface components {
|
|
|
8658
8658
|
*/
|
|
8659
8659
|
description: string | null;
|
|
8660
8660
|
/**
|
|
8661
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
|
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
|
-
*
|
|
23266
|
-
*
|
|
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?:
|
|
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
|
|
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
|
-
*
|
|
23465
|
-
*
|
|
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?:
|
|
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.
|
|
3
|
+
"version": "0.171.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/node": "^26.6.6",
|
|
60
60
|
"@workos/oagen": "^0.35.0",
|
|
61
|
-
"@workos/oagen-emitters": "^0.25.
|
|
61
|
+
"@workos/oagen-emitters": "^0.25.10",
|
|
62
62
|
"diff2html": "^3.4.56",
|
|
63
63
|
"husky": "^9.1.7",
|
|
64
64
|
"js-yaml": "^5.5.0",
|
|
65
|
-
"openapi-to-postmanv2": "^6.4.
|
|
65
|
+
"openapi-to-postmanv2": "^6.4.4",
|
|
66
66
|
"tsdown": "^0.23.7",
|
|
67
67
|
"tsx": "^4.23.15",
|
|
68
68
|
"typescript": "^7.0.2"
|