@workos/openapi-spec 0.169.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.
- package/dist/open-api-spec.yaml +261 -69
- package/dist/policy.mjs +4 -0
- package/dist/services.mjs +4 -4
- package/dist/types.d.ts +158 -11
- package/package.json +1 -1
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:
|
|
@@ -24886,7 +24970,7 @@ components:
|
|
|
24886
24970
|
- message
|
|
24887
24971
|
AuthMethodMismatchErrorBody:
|
|
24888
24972
|
type: object
|
|
24889
|
-
properties: &
|
|
24973
|
+
properties: &ref_51
|
|
24890
24974
|
code:
|
|
24891
24975
|
type: string
|
|
24892
24976
|
const: auth_method_mismatch
|
|
@@ -24900,13 +24984,13 @@ components:
|
|
|
24900
24984
|
example: >-
|
|
24901
24985
|
This installation uses oauth authentication. Use the POST
|
|
24902
24986
|
/:slug/token endpoint instead.
|
|
24903
|
-
required: &
|
|
24987
|
+
required: &ref_52
|
|
24904
24988
|
- code
|
|
24905
24989
|
- message
|
|
24906
24990
|
x-component-name: AuthMethodMismatchError
|
|
24907
24991
|
AccountSelectionRequiredErrorBody:
|
|
24908
24992
|
type: object
|
|
24909
|
-
properties: &
|
|
24993
|
+
properties: &ref_53
|
|
24910
24994
|
code:
|
|
24911
24995
|
type: string
|
|
24912
24996
|
const: account_selection_required
|
|
@@ -24920,7 +25004,7 @@ components:
|
|
|
24920
25004
|
example: >-
|
|
24921
25005
|
Several connected accounts match this user for this provider. Name
|
|
24922
25006
|
one with a connected account id.
|
|
24923
|
-
required: &
|
|
25007
|
+
required: &ref_54
|
|
24924
25008
|
- code
|
|
24925
25009
|
- message
|
|
24926
25010
|
x-component-name: AccountSelectionRequiredError
|
|
@@ -26539,12 +26623,49 @@ components:
|
|
|
26539
26623
|
type: array
|
|
26540
26624
|
items:
|
|
26541
26625
|
type: string
|
|
26626
|
+
deprecated: true
|
|
26542
26627
|
description: >-
|
|
26543
|
-
|
|
26544
|
-
|
|
26628
|
+
Deprecated: use `scoped_permissions`. Slugs of every permission in
|
|
26629
|
+
the ceiling, across all instance types.
|
|
26545
26630
|
example:
|
|
26546
26631
|
- crm:read
|
|
26547
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
|
|
26548
26669
|
invocable_by:
|
|
26549
26670
|
type: object
|
|
26550
26671
|
properties:
|
|
@@ -26628,6 +26749,7 @@ components:
|
|
|
26628
26749
|
- name
|
|
26629
26750
|
- description
|
|
26630
26751
|
- permissions
|
|
26752
|
+
- scoped_permissions
|
|
26631
26753
|
- invocable_by
|
|
26632
26754
|
- invocable_as
|
|
26633
26755
|
- session_settings
|
|
@@ -30039,7 +30161,7 @@ components:
|
|
|
30039
30161
|
- data
|
|
30040
30162
|
- created_at
|
|
30041
30163
|
description: An event emitted by WorkOS.
|
|
30042
|
-
example: &
|
|
30164
|
+
example: &ref_50
|
|
30043
30165
|
object: event
|
|
30044
30166
|
id: event_01EHZNVPK3SFK441A1RGBFSHRT
|
|
30045
30167
|
event: dsync.user.created
|
|
@@ -30240,12 +30362,51 @@ components:
|
|
|
30240
30362
|
type: array
|
|
30241
30363
|
items:
|
|
30242
30364
|
type: string
|
|
30365
|
+
deprecated: true
|
|
30243
30366
|
description: >-
|
|
30244
|
-
|
|
30245
|
-
|
|
30367
|
+
Deprecated: use `scoped_permissions`. Slugs of every
|
|
30368
|
+
permission in the ceiling, across all instance types.
|
|
30246
30369
|
example: &ref_38
|
|
30247
30370
|
- crm:read
|
|
30248
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
|
|
30249
30410
|
invocable_by:
|
|
30250
30411
|
type: object
|
|
30251
30412
|
properties:
|
|
@@ -30256,7 +30417,7 @@ components:
|
|
|
30256
30417
|
description: >-
|
|
30257
30418
|
Role slugs whose members may mint user-delegated
|
|
30258
30419
|
sessions from this blueprint.
|
|
30259
|
-
example: &
|
|
30420
|
+
example: &ref_41
|
|
30260
30421
|
- manager
|
|
30261
30422
|
organization_ids:
|
|
30262
30423
|
type: array
|
|
@@ -30265,7 +30426,7 @@ components:
|
|
|
30265
30426
|
description: >-
|
|
30266
30427
|
Organizations in which autonomous sessions may be
|
|
30267
30428
|
minted from this blueprint.
|
|
30268
|
-
example: &
|
|
30429
|
+
example: &ref_42
|
|
30269
30430
|
- org_01EHWNCE74X7JSDV0X3SZ3KJNY
|
|
30270
30431
|
required:
|
|
30271
30432
|
- role_slugs
|
|
@@ -30285,7 +30446,7 @@ components:
|
|
|
30285
30446
|
Instance types that may be minted from this
|
|
30286
30447
|
blueprint: `delegated` (acting for a user) and/or
|
|
30287
30448
|
`autonomous` (acting as the agent itself).
|
|
30288
|
-
example: &
|
|
30449
|
+
example: &ref_43
|
|
30289
30450
|
- delegated
|
|
30290
30451
|
- autonomous
|
|
30291
30452
|
required:
|
|
@@ -30442,10 +30603,41 @@ components:
|
|
|
30442
30603
|
type: array
|
|
30443
30604
|
items:
|
|
30444
30605
|
type: string
|
|
30606
|
+
deprecated: true
|
|
30445
30607
|
description: >-
|
|
30446
|
-
|
|
30447
|
-
|
|
30608
|
+
Deprecated: use `scoped_permissions`. Slugs of every
|
|
30609
|
+
permission in the ceiling, across all instance types.
|
|
30448
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
|
|
30449
30641
|
invocable_by:
|
|
30450
30642
|
type: object
|
|
30451
30643
|
properties:
|
|
@@ -30456,7 +30648,7 @@ components:
|
|
|
30456
30648
|
description: >-
|
|
30457
30649
|
Role slugs whose members may mint user-delegated
|
|
30458
30650
|
sessions from this blueprint.
|
|
30459
|
-
example: *
|
|
30651
|
+
example: *ref_41
|
|
30460
30652
|
organization_ids:
|
|
30461
30653
|
type: array
|
|
30462
30654
|
items:
|
|
@@ -30464,7 +30656,7 @@ components:
|
|
|
30464
30656
|
description: >-
|
|
30465
30657
|
Organizations in which autonomous sessions may be
|
|
30466
30658
|
minted from this blueprint.
|
|
30467
|
-
example: *
|
|
30659
|
+
example: *ref_42
|
|
30468
30660
|
required:
|
|
30469
30661
|
- role_slugs
|
|
30470
30662
|
- organization_ids
|
|
@@ -30483,7 +30675,7 @@ components:
|
|
|
30483
30675
|
Instance types that may be minted from this
|
|
30484
30676
|
blueprint: `delegated` (acting for a user) and/or
|
|
30485
30677
|
`autonomous` (acting as the agent itself).
|
|
30486
|
-
example: *
|
|
30678
|
+
example: *ref_43
|
|
30487
30679
|
required:
|
|
30488
30680
|
- instance_types
|
|
30489
30681
|
description: How sessions may be minted from this blueprint.
|
|
@@ -31523,7 +31715,7 @@ components:
|
|
|
31523
31715
|
items:
|
|
31524
31716
|
type: string
|
|
31525
31717
|
description: The permissions granted to the API key.
|
|
31526
|
-
example: &
|
|
31718
|
+
example: &ref_44
|
|
31527
31719
|
- users:read
|
|
31528
31720
|
- users:write
|
|
31529
31721
|
created_at:
|
|
@@ -31649,7 +31841,7 @@ components:
|
|
|
31649
31841
|
items:
|
|
31650
31842
|
type: string
|
|
31651
31843
|
description: The permissions granted to the API key.
|
|
31652
|
-
example: *
|
|
31844
|
+
example: *ref_44
|
|
31653
31845
|
created_at:
|
|
31654
31846
|
type: string
|
|
31655
31847
|
description: The timestamp when the API key was created.
|
|
@@ -31773,7 +31965,7 @@ components:
|
|
|
31773
31965
|
items:
|
|
31774
31966
|
type: string
|
|
31775
31967
|
description: The permissions granted to the API key.
|
|
31776
|
-
example: *
|
|
31968
|
+
example: *ref_44
|
|
31777
31969
|
created_at:
|
|
31778
31970
|
type: string
|
|
31779
31971
|
description: The timestamp when the API key was created.
|
|
@@ -34886,7 +35078,7 @@ components:
|
|
|
34886
35078
|
description: >-
|
|
34887
35079
|
Labels assigned to the Feature Flag for categorizing and
|
|
34888
35080
|
filtering.
|
|
34889
|
-
example: &
|
|
35081
|
+
example: &ref_45
|
|
34890
35082
|
- reports
|
|
34891
35083
|
enabled:
|
|
34892
35084
|
type: boolean
|
|
@@ -35047,7 +35239,7 @@ components:
|
|
|
35047
35239
|
description: >-
|
|
35048
35240
|
Labels assigned to the Feature Flag for categorizing and
|
|
35049
35241
|
filtering.
|
|
35050
|
-
example: *
|
|
35242
|
+
example: *ref_45
|
|
35051
35243
|
enabled:
|
|
35052
35244
|
type: boolean
|
|
35053
35245
|
description: >-
|
|
@@ -35411,7 +35603,7 @@ components:
|
|
|
35411
35603
|
description: >-
|
|
35412
35604
|
Labels assigned to the Feature Flag for categorizing and
|
|
35413
35605
|
filtering.
|
|
35414
|
-
example: *
|
|
35606
|
+
example: *ref_45
|
|
35415
35607
|
enabled:
|
|
35416
35608
|
type: boolean
|
|
35417
35609
|
description: >-
|
|
@@ -35507,7 +35699,7 @@ components:
|
|
|
35507
35699
|
items:
|
|
35508
35700
|
type: string
|
|
35509
35701
|
description: The previous tags of the flag.
|
|
35510
|
-
example: &
|
|
35702
|
+
example: &ref_46
|
|
35511
35703
|
- beta
|
|
35512
35704
|
- release
|
|
35513
35705
|
owner:
|
|
@@ -35633,7 +35825,7 @@ components:
|
|
|
35633
35825
|
description: >-
|
|
35634
35826
|
Labels assigned to the Feature Flag for categorizing and
|
|
35635
35827
|
filtering.
|
|
35636
|
-
example: *
|
|
35828
|
+
example: *ref_45
|
|
35637
35829
|
enabled:
|
|
35638
35830
|
type: boolean
|
|
35639
35831
|
description: >-
|
|
@@ -35793,7 +35985,7 @@ components:
|
|
|
35793
35985
|
description: >-
|
|
35794
35986
|
Labels assigned to the Feature Flag for categorizing and
|
|
35795
35987
|
filtering.
|
|
35796
|
-
example: *
|
|
35988
|
+
example: *ref_45
|
|
35797
35989
|
enabled:
|
|
35798
35990
|
type: boolean
|
|
35799
35991
|
description: >-
|
|
@@ -35953,7 +36145,7 @@ components:
|
|
|
35953
36145
|
description: >-
|
|
35954
36146
|
Labels assigned to the Feature Flag for categorizing and
|
|
35955
36147
|
filtering.
|
|
35956
|
-
example: *
|
|
36148
|
+
example: *ref_45
|
|
35957
36149
|
enabled:
|
|
35958
36150
|
type: boolean
|
|
35959
36151
|
description: >-
|
|
@@ -36363,7 +36555,7 @@ components:
|
|
|
36363
36555
|
description: >-
|
|
36364
36556
|
Labels assigned to the Feature Flag for categorizing and
|
|
36365
36557
|
filtering.
|
|
36366
|
-
example: *
|
|
36558
|
+
example: *ref_45
|
|
36367
36559
|
enabled:
|
|
36368
36560
|
type: boolean
|
|
36369
36561
|
description: >-
|
|
@@ -36459,7 +36651,7 @@ components:
|
|
|
36459
36651
|
items:
|
|
36460
36652
|
type: string
|
|
36461
36653
|
description: The previous tags of the flag.
|
|
36462
|
-
example: *
|
|
36654
|
+
example: *ref_46
|
|
36463
36655
|
owner:
|
|
36464
36656
|
description: >-
|
|
36465
36657
|
The previous owner of the flag, or `null` if it
|
|
@@ -37377,7 +37569,7 @@ components:
|
|
|
37377
37569
|
description: >-
|
|
37378
37570
|
Object containing [metadata](/authkit/metadata)
|
|
37379
37571
|
key/value pairs associated with the Organization.
|
|
37380
|
-
example: &
|
|
37572
|
+
example: &ref_47
|
|
37381
37573
|
tier: diamond
|
|
37382
37574
|
propertyNames:
|
|
37383
37575
|
maxLength: 40
|
|
@@ -37527,7 +37719,7 @@ components:
|
|
|
37527
37719
|
description: >-
|
|
37528
37720
|
Object containing [metadata](/authkit/metadata)
|
|
37529
37721
|
key/value pairs associated with the Organization.
|
|
37530
|
-
example: *
|
|
37722
|
+
example: *ref_47
|
|
37531
37723
|
propertyNames:
|
|
37532
37724
|
maxLength: 40
|
|
37533
37725
|
maxProperties: 50
|
|
@@ -38354,7 +38546,7 @@ components:
|
|
|
38354
38546
|
items:
|
|
38355
38547
|
type: string
|
|
38356
38548
|
description: The permissions granted by the role.
|
|
38357
|
-
example: &
|
|
38549
|
+
example: &ref_48
|
|
38358
38550
|
- users:read
|
|
38359
38551
|
- users:write
|
|
38360
38552
|
created_at:
|
|
@@ -38438,7 +38630,7 @@ components:
|
|
|
38438
38630
|
items:
|
|
38439
38631
|
type: string
|
|
38440
38632
|
description: The permissions granted by the role.
|
|
38441
|
-
example: *
|
|
38633
|
+
example: *ref_48
|
|
38442
38634
|
created_at:
|
|
38443
38635
|
format: date-time
|
|
38444
38636
|
type: string
|
|
@@ -38520,7 +38712,7 @@ components:
|
|
|
38520
38712
|
items:
|
|
38521
38713
|
type: string
|
|
38522
38714
|
description: The permissions granted by the role.
|
|
38523
|
-
example: *
|
|
38715
|
+
example: *ref_48
|
|
38524
38716
|
created_at:
|
|
38525
38717
|
format: date-time
|
|
38526
38718
|
type: string
|
|
@@ -38657,7 +38849,7 @@ components:
|
|
|
38657
38849
|
description: >-
|
|
38658
38850
|
Object containing [metadata](/authkit/metadata)
|
|
38659
38851
|
key/value pairs associated with the Organization.
|
|
38660
|
-
example: *
|
|
38852
|
+
example: *ref_47
|
|
38661
38853
|
propertyNames:
|
|
38662
38854
|
maxLength: 40
|
|
38663
38855
|
maxProperties: 50
|
|
@@ -39861,7 +40053,7 @@ components:
|
|
|
39861
40053
|
items:
|
|
39862
40054
|
type: string
|
|
39863
40055
|
description: The permissions granted by the role.
|
|
39864
|
-
example: &
|
|
40056
|
+
example: &ref_49
|
|
39865
40057
|
- users:read
|
|
39866
40058
|
- users:write
|
|
39867
40059
|
created_at:
|
|
@@ -39927,7 +40119,7 @@ components:
|
|
|
39927
40119
|
items:
|
|
39928
40120
|
type: string
|
|
39929
40121
|
description: The permissions granted by the role.
|
|
39930
|
-
example: *
|
|
40122
|
+
example: *ref_49
|
|
39931
40123
|
created_at:
|
|
39932
40124
|
format: date-time
|
|
39933
40125
|
type: string
|
|
@@ -39991,7 +40183,7 @@ components:
|
|
|
39991
40183
|
items:
|
|
39992
40184
|
type: string
|
|
39993
40185
|
description: The permissions granted by the role.
|
|
39994
|
-
example: *
|
|
40186
|
+
example: *ref_49
|
|
39995
40187
|
created_at:
|
|
39996
40188
|
format: date-time
|
|
39997
40189
|
type: string
|
|
@@ -41193,7 +41385,7 @@ components:
|
|
|
41193
41385
|
- data
|
|
41194
41386
|
- created_at
|
|
41195
41387
|
- object
|
|
41196
|
-
example: *
|
|
41388
|
+
example: *ref_50
|
|
41197
41389
|
description: An event emitted by WorkOS.
|
|
41198
41390
|
EventList:
|
|
41199
41391
|
type: object
|
|
@@ -41228,7 +41420,7 @@ components:
|
|
|
41228
41420
|
example:
|
|
41229
41421
|
object: list
|
|
41230
41422
|
data:
|
|
41231
|
-
- *
|
|
41423
|
+
- *ref_50
|
|
41232
41424
|
list_metadata:
|
|
41233
41425
|
after: event_01EHZNVPK3SFK441A1RGBFSHRT
|
|
41234
41426
|
JwtTemplate:
|
|
@@ -42777,8 +42969,8 @@ components:
|
|
|
42777
42969
|
- state
|
|
42778
42970
|
AuthMethodMismatchError:
|
|
42779
42971
|
type: object
|
|
42780
|
-
properties: *
|
|
42781
|
-
required: *
|
|
42972
|
+
properties: *ref_51
|
|
42973
|
+
required: *ref_52
|
|
42782
42974
|
DataIntegrationAccessTokenResponse:
|
|
42783
42975
|
oneOf:
|
|
42784
42976
|
- type: object
|
|
@@ -42861,8 +43053,8 @@ components:
|
|
|
42861
43053
|
- error
|
|
42862
43054
|
AccountSelectionRequiredError:
|
|
42863
43055
|
type: object
|
|
42864
|
-
properties: *
|
|
42865
|
-
required: *
|
|
43056
|
+
properties: *ref_53
|
|
43057
|
+
required: *ref_54
|
|
42866
43058
|
DataIntegrationVendedCredential:
|
|
42867
43059
|
discriminator:
|
|
42868
43060
|
propertyName: auth_method
|
|
@@ -42929,7 +43121,7 @@ components:
|
|
|
42929
43121
|
each `client_credentials` mint. A field a later OAuth refresh
|
|
42930
43122
|
omits keeps its stored value. Present for `oauth` and
|
|
42931
43123
|
`client_credentials` credentials; absent for `api_key`.
|
|
42932
|
-
example: &
|
|
43124
|
+
example: &ref_56
|
|
42933
43125
|
instance_url: https://acme.my.salesforce.com
|
|
42934
43126
|
config:
|
|
42935
43127
|
type: object
|
|
@@ -42945,7 +43137,7 @@ components:
|
|
|
42945
43137
|
integration or organization pins require reconnecting or
|
|
42946
43138
|
explicitly rebinding the connection. Defaults are live and can
|
|
42947
43139
|
differ from a cached token's audience until refresh or re-mint.
|
|
42948
|
-
example: &
|
|
43140
|
+
example: &ref_55
|
|
42949
43141
|
account: myorg-myaccount
|
|
42950
43142
|
required:
|
|
42951
43143
|
- object
|
|
@@ -42991,7 +43183,7 @@ components:
|
|
|
42991
43183
|
integration or organization pins require reconnecting or
|
|
42992
43184
|
explicitly rebinding the connection. Defaults are live and can
|
|
42993
43185
|
differ from a cached token's audience until refresh or re-mint.
|
|
42994
|
-
example: *
|
|
43186
|
+
example: *ref_55
|
|
42995
43187
|
required:
|
|
42996
43188
|
- object
|
|
42997
43189
|
- auth_method
|
|
@@ -43055,7 +43247,7 @@ components:
|
|
|
43055
43247
|
each `client_credentials` mint. A field a later OAuth refresh
|
|
43056
43248
|
omits keeps its stored value. Present for `oauth` and
|
|
43057
43249
|
`client_credentials` credentials; absent for `api_key`.
|
|
43058
|
-
example: *
|
|
43250
|
+
example: *ref_56
|
|
43059
43251
|
config:
|
|
43060
43252
|
type: object
|
|
43061
43253
|
additionalProperties:
|
|
@@ -43070,7 +43262,7 @@ components:
|
|
|
43070
43262
|
integration or organization pins require reconnecting or
|
|
43071
43263
|
explicitly rebinding the connection. Defaults are live and can
|
|
43072
43264
|
differ from a cached token's audience until refresh or re-mint.
|
|
43073
|
-
example: *
|
|
43265
|
+
example: *ref_55
|
|
43074
43266
|
required:
|
|
43075
43267
|
- object
|
|
43076
43268
|
- auth_method
|
|
@@ -43240,7 +43432,7 @@ components:
|
|
|
43240
43432
|
deprecated: true
|
|
43241
43433
|
description: Use updated_at instead.
|
|
43242
43434
|
connected_account:
|
|
43243
|
-
example: &
|
|
43435
|
+
example: &ref_59
|
|
43244
43436
|
object: connected_account
|
|
43245
43437
|
id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
|
|
43246
43438
|
connection_role: compatibility
|
|
@@ -43329,7 +43521,7 @@ components:
|
|
|
43329
43521
|
items:
|
|
43330
43522
|
type: string
|
|
43331
43523
|
description: The OAuth scopes granted for this connection.
|
|
43332
|
-
example: &
|
|
43524
|
+
example: &ref_57
|
|
43333
43525
|
- repo
|
|
43334
43526
|
- user:email
|
|
43335
43527
|
auth_method:
|
|
@@ -43379,7 +43571,7 @@ components:
|
|
|
43379
43571
|
`installation` scope, excluding secret and undeclared
|
|
43380
43572
|
fields. Returned for every authentication method;
|
|
43381
43573
|
empty when no stored values can be disclosed.
|
|
43382
|
-
example: &
|
|
43574
|
+
example: &ref_58
|
|
43383
43575
|
instance_url: https://example.my.salesforce.com
|
|
43384
43576
|
state:
|
|
43385
43577
|
type: string
|
|
@@ -43564,7 +43756,7 @@ components:
|
|
|
43564
43756
|
items:
|
|
43565
43757
|
type: string
|
|
43566
43758
|
description: The OAuth scopes granted for this connection.
|
|
43567
|
-
example: *
|
|
43759
|
+
example: *ref_57
|
|
43568
43760
|
auth_method:
|
|
43569
43761
|
type: string
|
|
43570
43762
|
enum:
|
|
@@ -43611,7 +43803,7 @@ components:
|
|
|
43611
43803
|
`installation` scope, excluding secret and undeclared
|
|
43612
43804
|
fields. Returned for every authentication method; empty
|
|
43613
43805
|
when no stored values can be disclosed.
|
|
43614
|
-
example: *
|
|
43806
|
+
example: *ref_58
|
|
43615
43807
|
state:
|
|
43616
43808
|
type: string
|
|
43617
43809
|
enum:
|
|
@@ -43729,7 +43921,7 @@ components:
|
|
|
43729
43921
|
- organizationId
|
|
43730
43922
|
- createdAt
|
|
43731
43923
|
- updatedAt
|
|
43732
|
-
example: *
|
|
43924
|
+
example: *ref_59
|
|
43733
43925
|
description: >-
|
|
43734
43926
|
The user's connected accounts for this provider in the
|
|
43735
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": "
|
|
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
|
@@ -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
|
/**
|