apps 0.0.1-beta.12 → 0.0.1-beta.13

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.
@@ -46,10 +46,15 @@ export declare const DeclaredRequirements: Schema.Struct<{
46
46
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
47
47
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
48
48
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
49
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
50
+ readonly path: Schema.String;
51
+ }>>;
49
52
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
50
53
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
51
54
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
52
55
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
56
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
57
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
53
58
  readonly type: Schema.Literal<"oauth2">;
54
59
  }>, Schema.Struct<{
55
60
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -59,32 +64,41 @@ export declare const DeclaredRequirements: Schema.Struct<{
59
64
  readonly scopes: Schema.$Array<Schema.String>;
60
65
  readonly issuer: Schema.optionalKey<Schema.String>;
61
66
  readonly discover: Schema.optionalKey<Schema.Never>;
67
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
68
+ readonly path: Schema.String;
69
+ }>>;
62
70
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
63
71
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
64
72
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
65
73
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
74
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
75
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
66
76
  readonly type: Schema.Literal<"oauth2">;
67
77
  }>, Schema.Struct<{
68
78
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
79
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
80
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
81
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
82
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
69
83
  readonly grant: Schema.Literal<"client_credentials">;
70
84
  readonly discover: Schema.String;
71
85
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
72
86
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
73
87
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
74
88
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
75
- readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
76
- readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
77
89
  readonly type: Schema.Literal<"oauth2">;
78
90
  }>, Schema.Struct<{
79
91
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
80
- readonly grant: Schema.Literal<"client_credentials">;
81
- readonly tokenUrl: Schema.String;
82
- readonly revocationUrl: Schema.optionalKey<Schema.String>;
83
- readonly scopes: Schema.$Array<Schema.String>;
84
92
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
85
93
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
86
94
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
87
95
  readonly discover: Schema.optionalKey<Schema.Never>;
96
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
97
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
98
+ readonly grant: Schema.Literal<"client_credentials">;
99
+ readonly tokenUrl: Schema.String;
100
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
101
+ readonly scopes: Schema.$Array<Schema.String>;
88
102
  readonly type: Schema.Literal<"oauth2">;
89
103
  }>]>>;
90
104
  }>;
@@ -303,10 +317,15 @@ export declare const HostInvocation: Schema.Struct<{
303
317
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
304
318
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
305
319
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
320
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
321
+ readonly path: Schema.String;
322
+ }>>;
306
323
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
307
324
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
308
325
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
309
326
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
327
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
328
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
310
329
  readonly type: Schema.Literal<"oauth2">;
311
330
  }>, Schema.Struct<{
312
331
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -316,32 +335,41 @@ export declare const HostInvocation: Schema.Struct<{
316
335
  readonly scopes: Schema.$Array<Schema.String>;
317
336
  readonly issuer: Schema.optionalKey<Schema.String>;
318
337
  readonly discover: Schema.optionalKey<Schema.Never>;
338
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
339
+ readonly path: Schema.String;
340
+ }>>;
319
341
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
320
342
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
321
343
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
322
344
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
345
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
346
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
323
347
  readonly type: Schema.Literal<"oauth2">;
324
348
  }>, Schema.Struct<{
325
349
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
350
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
351
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
352
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
353
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
326
354
  readonly grant: Schema.Literal<"client_credentials">;
327
355
  readonly discover: Schema.String;
328
356
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
329
357
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
330
358
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
331
359
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
332
- readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
333
- readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
334
360
  readonly type: Schema.Literal<"oauth2">;
335
361
  }>, Schema.Struct<{
336
362
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
337
- readonly grant: Schema.Literal<"client_credentials">;
338
- readonly tokenUrl: Schema.String;
339
- readonly revocationUrl: Schema.optionalKey<Schema.String>;
340
- readonly scopes: Schema.$Array<Schema.String>;
341
363
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
342
364
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
343
365
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
344
366
  readonly discover: Schema.optionalKey<Schema.Never>;
367
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
368
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
369
+ readonly grant: Schema.Literal<"client_credentials">;
370
+ readonly tokenUrl: Schema.String;
371
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
372
+ readonly scopes: Schema.$Array<Schema.String>;
345
373
  readonly type: Schema.Literal<"oauth2">;
346
374
  }>]>>;
347
375
  }>;
@@ -363,10 +391,15 @@ export declare const HostInvocation: Schema.Struct<{
363
391
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
364
392
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
365
393
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
394
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
395
+ readonly path: Schema.String;
396
+ }>>;
366
397
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
367
398
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
368
399
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
369
400
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
401
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
402
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
370
403
  readonly type: Schema.Literal<"oauth2">;
371
404
  }>, Schema.Struct<{
372
405
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -376,32 +409,41 @@ export declare const HostInvocation: Schema.Struct<{
376
409
  readonly scopes: Schema.$Array<Schema.String>;
377
410
  readonly issuer: Schema.optionalKey<Schema.String>;
378
411
  readonly discover: Schema.optionalKey<Schema.Never>;
412
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
413
+ readonly path: Schema.String;
414
+ }>>;
379
415
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
380
416
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
381
417
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
382
418
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
419
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
420
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
383
421
  readonly type: Schema.Literal<"oauth2">;
384
422
  }>, Schema.Struct<{
385
423
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
424
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
425
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
426
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
427
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
386
428
  readonly grant: Schema.Literal<"client_credentials">;
387
429
  readonly discover: Schema.String;
388
430
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
389
431
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
390
432
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
391
433
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
392
- readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
393
- readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
394
434
  readonly type: Schema.Literal<"oauth2">;
395
435
  }>, Schema.Struct<{
396
436
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
397
- readonly grant: Schema.Literal<"client_credentials">;
398
- readonly tokenUrl: Schema.String;
399
- readonly revocationUrl: Schema.optionalKey<Schema.String>;
400
- readonly scopes: Schema.$Array<Schema.String>;
401
437
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
402
438
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
403
439
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
404
440
  readonly discover: Schema.optionalKey<Schema.Never>;
441
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
442
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
443
+ readonly grant: Schema.Literal<"client_credentials">;
444
+ readonly tokenUrl: Schema.String;
445
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
446
+ readonly scopes: Schema.$Array<Schema.String>;
405
447
  readonly type: Schema.Literal<"oauth2">;
406
448
  }>]>>;
407
449
  }>;
@@ -529,10 +571,15 @@ export declare const protocol5: {
529
571
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
530
572
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
531
573
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
574
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
575
+ readonly path: Schema.String;
576
+ }>>;
532
577
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
533
578
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
534
579
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
535
580
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
581
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
582
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
536
583
  readonly type: Schema.Literal<"oauth2">;
537
584
  }>, Schema.Struct<{
538
585
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -542,32 +589,41 @@ export declare const protocol5: {
542
589
  readonly scopes: Schema.$Array<Schema.String>;
543
590
  readonly issuer: Schema.optionalKey<Schema.String>;
544
591
  readonly discover: Schema.optionalKey<Schema.Never>;
592
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
593
+ readonly path: Schema.String;
594
+ }>>;
545
595
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
546
596
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
547
597
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
548
598
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
599
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
600
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
549
601
  readonly type: Schema.Literal<"oauth2">;
550
602
  }>, Schema.Struct<{
551
603
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
604
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
605
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
606
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
607
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
552
608
  readonly grant: Schema.Literal<"client_credentials">;
553
609
  readonly discover: Schema.String;
554
610
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
555
611
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
556
612
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
557
613
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
558
- readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
559
- readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
560
614
  readonly type: Schema.Literal<"oauth2">;
561
615
  }>, Schema.Struct<{
562
616
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
563
- readonly grant: Schema.Literal<"client_credentials">;
564
- readonly tokenUrl: Schema.String;
565
- readonly revocationUrl: Schema.optionalKey<Schema.String>;
566
- readonly scopes: Schema.$Array<Schema.String>;
567
617
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
568
618
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
569
619
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
570
620
  readonly discover: Schema.optionalKey<Schema.Never>;
621
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
622
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
623
+ readonly grant: Schema.Literal<"client_credentials">;
624
+ readonly tokenUrl: Schema.String;
625
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
626
+ readonly scopes: Schema.$Array<Schema.String>;
571
627
  readonly type: Schema.Literal<"oauth2">;
572
628
  }>]>>;
573
629
  }>;
@@ -589,10 +645,15 @@ export declare const protocol5: {
589
645
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
590
646
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
591
647
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
648
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
649
+ readonly path: Schema.String;
650
+ }>>;
592
651
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
593
652
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
594
653
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
595
654
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
655
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
656
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
596
657
  readonly type: Schema.Literal<"oauth2">;
597
658
  }>, Schema.Struct<{
598
659
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -602,32 +663,41 @@ export declare const protocol5: {
602
663
  readonly scopes: Schema.$Array<Schema.String>;
603
664
  readonly issuer: Schema.optionalKey<Schema.String>;
604
665
  readonly discover: Schema.optionalKey<Schema.Never>;
666
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
667
+ readonly path: Schema.String;
668
+ }>>;
605
669
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
606
670
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
607
671
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
608
672
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
673
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
674
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
609
675
  readonly type: Schema.Literal<"oauth2">;
610
676
  }>, Schema.Struct<{
611
677
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
678
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
679
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
680
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
681
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
612
682
  readonly grant: Schema.Literal<"client_credentials">;
613
683
  readonly discover: Schema.String;
614
684
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
615
685
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
616
686
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
617
687
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
618
- readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
619
- readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
620
688
  readonly type: Schema.Literal<"oauth2">;
621
689
  }>, Schema.Struct<{
622
690
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
623
- readonly grant: Schema.Literal<"client_credentials">;
624
- readonly tokenUrl: Schema.String;
625
- readonly revocationUrl: Schema.optionalKey<Schema.String>;
626
- readonly scopes: Schema.$Array<Schema.String>;
627
691
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
628
692
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
629
693
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
630
694
  readonly discover: Schema.optionalKey<Schema.Never>;
695
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
696
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
697
+ readonly grant: Schema.Literal<"client_credentials">;
698
+ readonly tokenUrl: Schema.String;
699
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
700
+ readonly scopes: Schema.$Array<Schema.String>;
631
701
  readonly type: Schema.Literal<"oauth2">;
632
702
  }>]>>;
633
703
  }>;
@@ -768,10 +838,15 @@ export declare const protocol5: {
768
838
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
769
839
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
770
840
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
841
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
842
+ readonly path: Schema.String;
843
+ }>>;
771
844
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
772
845
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
773
846
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
774
847
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
848
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
849
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
775
850
  readonly type: Schema.Literal<"oauth2">;
776
851
  }>, Schema.Struct<{
777
852
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -781,32 +856,41 @@ export declare const protocol5: {
781
856
  readonly scopes: Schema.$Array<Schema.String>;
782
857
  readonly issuer: Schema.optionalKey<Schema.String>;
783
858
  readonly discover: Schema.optionalKey<Schema.Never>;
859
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
860
+ readonly path: Schema.String;
861
+ }>>;
784
862
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
785
863
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
786
864
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
787
865
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
866
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
867
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
788
868
  readonly type: Schema.Literal<"oauth2">;
789
869
  }>, Schema.Struct<{
790
870
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
871
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
872
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
873
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
874
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
791
875
  readonly grant: Schema.Literal<"client_credentials">;
792
876
  readonly discover: Schema.String;
793
877
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
794
878
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
795
879
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
796
880
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
797
- readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
798
- readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
799
881
  readonly type: Schema.Literal<"oauth2">;
800
882
  }>, Schema.Struct<{
801
883
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
802
- readonly grant: Schema.Literal<"client_credentials">;
803
- readonly tokenUrl: Schema.String;
804
- readonly revocationUrl: Schema.optionalKey<Schema.String>;
805
- readonly scopes: Schema.$Array<Schema.String>;
806
884
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
807
885
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
808
886
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
809
887
  readonly discover: Schema.optionalKey<Schema.Never>;
888
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
889
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
890
+ readonly grant: Schema.Literal<"client_credentials">;
891
+ readonly tokenUrl: Schema.String;
892
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
893
+ readonly scopes: Schema.$Array<Schema.String>;
810
894
  readonly type: Schema.Literal<"oauth2">;
811
895
  }>]>>;
812
896
  }>;
@@ -24,6 +24,17 @@ export type ReservedAuthorizationParam = (typeof reservedAuthorizationParams)[nu
24
24
  * lets services define their own; the protocol and security parameters stay host-owned.
25
25
  */
26
26
  export declare const OAuthAuthorizationParams: Schema.$Record<Schema.String, Schema.String>;
27
+ /** How the token endpoint reads requests. RFC 6749 uses a form; some services want JSON. */
28
+ export declare const OAuthTokenRequestFormat: Schema.Literals<readonly ["form", "json"]>;
29
+ export type OAuthTokenRequestFormat = typeof OAuthTokenRequestFormat.Type;
30
+ /**
31
+ * Where a service nests the grant in its token response, as a dot-separated member path. Slack
32
+ * returns a user token under `authed_user`.
33
+ */
34
+ export declare const OAuthTokenResponse: Schema.Struct<{
35
+ readonly path: Schema.String;
36
+ }>;
37
+ export type OAuthTokenResponse = typeof OAuthTokenResponse.Type;
27
38
  /**
28
39
  * OAuth endpoints and protocol choices. Omitted grant means authorization code; clients remain
29
40
  * host-owned. Declared endpoints may name an RFC 7009 `revocationUrl`; discovery reads the
@@ -35,10 +46,15 @@ export declare const OAuth2Config: Schema.Union<readonly [Schema.Struct<{
35
46
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
36
47
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
37
48
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
49
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
50
+ readonly path: Schema.String;
51
+ }>>;
38
52
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
39
53
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
40
54
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
41
55
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
56
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
57
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
42
58
  }>, Schema.Struct<{
43
59
  /** Its query is kept; it cannot set protocol parameters or repeat `authorizationParams`. */
44
60
  readonly authorizationUrl: Schema.String;
@@ -48,28 +64,37 @@ export declare const OAuth2Config: Schema.Union<readonly [Schema.Struct<{
48
64
  /** RFC 8414 issuer identifier. Declared issuers are checked against the callback's `iss`. */
49
65
  readonly issuer: Schema.optionalKey<Schema.String>;
50
66
  readonly discover: Schema.optionalKey<Schema.Never>;
67
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
68
+ readonly path: Schema.String;
69
+ }>>;
51
70
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
52
71
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
53
72
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
54
73
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
74
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
75
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
55
76
  }>, Schema.Struct<{
77
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
78
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
79
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
80
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
56
81
  readonly grant: Schema.Literal<"client_credentials">;
57
82
  readonly discover: Schema.String;
58
83
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
59
84
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
60
85
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
61
86
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
87
+ }>, Schema.Struct<{
62
88
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
63
89
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
64
- }>, Schema.Struct<{
90
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
91
+ readonly discover: Schema.optionalKey<Schema.Never>;
92
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
93
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
65
94
  readonly grant: Schema.Literal<"client_credentials">;
66
95
  readonly tokenUrl: Schema.String;
67
96
  readonly revocationUrl: Schema.optionalKey<Schema.String>;
68
97
  readonly scopes: Schema.$Array<Schema.String>;
69
- readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
70
- readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
71
- readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
72
- readonly discover: Schema.optionalKey<Schema.Never>;
73
98
  }>]>;
74
99
  export type OAuth2Config = typeof OAuth2Config.Type;
75
100
  /** Default app-visible OAuth projection. Refresh tokens and client secrets remain with the host. */