@channel.io/app-sdk-core 0.25.0 → 0.27.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/extensions/apikey.d.ts +2 -2
- package/dist/extensions/calendar.d.ts +2 -2
- package/dist/extensions/commerce.d.ts +20 -12
- package/dist/extensions/commerce.d.ts.map +1 -1
- package/dist/extensions/commerce.js +14 -3
- package/dist/extensions/commerce.js.map +1 -1
- package/dist/extensions/config.d.ts +133 -81
- package/dist/extensions/config.d.ts.map +1 -1
- package/dist/extensions/config.js +14 -0
- package/dist/extensions/config.js.map +1 -1
- package/dist/extensions/datasource.d.ts +22 -22
- package/dist/extensions/hook.d.ts +569 -4
- package/dist/extensions/hook.d.ts.map +1 -1
- package/dist/extensions/hook.js +57 -1
- package/dist/extensions/hook.js.map +1 -1
- package/dist/extensions/index.d.ts +3 -2
- package/dist/extensions/index.d.ts.map +1 -1
- package/dist/extensions/index.js +3 -2
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/notebook.d.ts +6 -6
- package/dist/extensions/oauth.d.ts +206 -21
- package/dist/extensions/oauth.d.ts.map +1 -1
- package/dist/extensions/oauth.js +38 -0
- package/dist/extensions/oauth.js.map +1 -1
- package/dist/extensions/proto-contracts.d.ts +3 -1
- package/dist/extensions/proto-contracts.d.ts.map +1 -1
- package/dist/gen/channel/app/sdk/v1/common.zod.d.ts +10 -10
- package/dist/gen/channel/app/sdk/v1/context.d.ts +12 -0
- package/dist/gen/channel/app/sdk/v1/context.d.ts.map +1 -1
- package/dist/gen/channel/app/sdk/v1/context.zod.d.ts +67 -6
- package/dist/gen/channel/app/sdk/v1/context.zod.d.ts.map +1 -1
- package/dist/gen/channel/app/sdk/v1/context.zod.js +9 -0
- package/dist/gen/channel/app/sdk/v1/context.zod.js.map +1 -1
- package/dist/gen/channel/app/sdk/v1/extension.d.ts +94 -2
- package/dist/gen/channel/app/sdk/v1/extension.d.ts.map +1 -1
- package/dist/gen/channel/app/sdk/v1/extension.zod.d.ts +570 -172
- package/dist/gen/channel/app/sdk/v1/extension.zod.d.ts.map +1 -1
- package/dist/gen/channel/app/sdk/v1/extension.zod.js +43 -0
- package/dist/gen/channel/app/sdk/v1/extension.zod.js.map +1 -1
- package/dist/gen/channel/app/sdk/v1/function.zod.d.ts +66 -12
- package/dist/gen/channel/app/sdk/v1/function.zod.d.ts.map +1 -1
- package/dist/gen/channel/app/sdk/v1/native.d.ts +30 -0
- package/dist/gen/channel/app/sdk/v1/native.d.ts.map +1 -1
- package/dist/gen/channel/app/sdk/v1/native.js.map +1 -1
- package/dist/gen/channel/app/sdk/v1/native.zod.d.ts +268 -12
- package/dist/gen/channel/app/sdk/v1/native.zod.d.ts.map +1 -1
- package/dist/gen/channel/app/sdk/v1/native.zod.js +27 -0
- package/dist/gen/channel/app/sdk/v1/native.zod.js.map +1 -1
- package/dist/schemas/context.d.ts +25 -0
- package/dist/schemas/context.d.ts.map +1 -0
- package/dist/schemas/context.js +13 -0
- package/dist/schemas/context.js.map +1 -0
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/native.d.ts +311 -0
- package/dist/schemas/native.d.ts.map +1 -1
- package/dist/schemas/native.js +45 -0
- package/dist/schemas/native.js.map +1 -1
- package/dist/schemas/redirect.d.ts +4 -0
- package/dist/schemas/redirect.d.ts.map +1 -0
- package/dist/schemas/redirect.js +18 -0
- package/dist/schemas/redirect.js.map +1 -0
- package/dist/types/context.d.ts +11 -2
- package/dist/types/context.d.ts.map +1 -1
- package/dist/types/native.d.ts +34 -0
- package/dist/types/native.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/schemas/native.d.ts
CHANGED
|
@@ -477,7 +477,318 @@ export declare const NativeListActiveOAuthManagerTargetsResultSchema: z.ZodObjec
|
|
|
477
477
|
}[];
|
|
478
478
|
nextCursor?: string | undefined;
|
|
479
479
|
}>;
|
|
480
|
+
export declare const NativeOAuthFlowSchema: z.ZodObject<{
|
|
481
|
+
id: z.ZodString;
|
|
482
|
+
phase: z.ZodEnum<["before", "oauth", "after", "completed", "canceled"]>;
|
|
483
|
+
expiresAt: z.ZodString;
|
|
484
|
+
key: z.ZodOptional<z.ZodString>;
|
|
485
|
+
targetAuthScope: z.ZodOptional<z.ZodString>;
|
|
486
|
+
authorizationURL: z.ZodOptional<z.ZodString>;
|
|
487
|
+
canResume: z.ZodOptional<z.ZodBoolean>;
|
|
488
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
489
|
+
id: z.ZodEnum<["before", "oauth", "after"]>;
|
|
490
|
+
title: z.ZodString;
|
|
491
|
+
description: z.ZodOptional<z.ZodString>;
|
|
492
|
+
icon: z.ZodEnum<["installation", "account", "organization", "permission", "settings"]>;
|
|
493
|
+
status: z.ZodEnum<["pending", "in_progress", "completed", "failed", "unknown"]>;
|
|
494
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
495
|
+
}, "strict", z.ZodTypeAny, {
|
|
496
|
+
status: "completed" | "unknown" | "pending" | "in_progress" | "failed";
|
|
497
|
+
id: "oauth" | "before" | "after";
|
|
498
|
+
title: string;
|
|
499
|
+
icon: "installation" | "account" | "organization" | "permission" | "settings";
|
|
500
|
+
description?: string | undefined;
|
|
501
|
+
detail?: string | undefined;
|
|
502
|
+
}, {
|
|
503
|
+
status: "completed" | "unknown" | "pending" | "in_progress" | "failed";
|
|
504
|
+
id: "oauth" | "before" | "after";
|
|
505
|
+
title: string;
|
|
506
|
+
icon: "installation" | "account" | "organization" | "permission" | "settings";
|
|
507
|
+
description?: string | undefined;
|
|
508
|
+
detail?: string | undefined;
|
|
509
|
+
}>, "many">>;
|
|
510
|
+
}, "strict", z.ZodTypeAny, {
|
|
511
|
+
id: string;
|
|
512
|
+
expiresAt: string;
|
|
513
|
+
phase: "oauth" | "before" | "after" | "completed" | "canceled";
|
|
514
|
+
key?: string | undefined;
|
|
515
|
+
targetAuthScope?: string | undefined;
|
|
516
|
+
authorizationURL?: string | undefined;
|
|
517
|
+
canResume?: boolean | undefined;
|
|
518
|
+
steps?: {
|
|
519
|
+
status: "completed" | "unknown" | "pending" | "in_progress" | "failed";
|
|
520
|
+
id: "oauth" | "before" | "after";
|
|
521
|
+
title: string;
|
|
522
|
+
icon: "installation" | "account" | "organization" | "permission" | "settings";
|
|
523
|
+
description?: string | undefined;
|
|
524
|
+
detail?: string | undefined;
|
|
525
|
+
}[] | undefined;
|
|
526
|
+
}, {
|
|
527
|
+
id: string;
|
|
528
|
+
expiresAt: string;
|
|
529
|
+
phase: "oauth" | "before" | "after" | "completed" | "canceled";
|
|
530
|
+
key?: string | undefined;
|
|
531
|
+
targetAuthScope?: string | undefined;
|
|
532
|
+
authorizationURL?: string | undefined;
|
|
533
|
+
canResume?: boolean | undefined;
|
|
534
|
+
steps?: {
|
|
535
|
+
status: "completed" | "unknown" | "pending" | "in_progress" | "failed";
|
|
536
|
+
id: "oauth" | "before" | "after";
|
|
537
|
+
title: string;
|
|
538
|
+
icon: "installation" | "account" | "organization" | "permission" | "settings";
|
|
539
|
+
description?: string | undefined;
|
|
540
|
+
detail?: string | undefined;
|
|
541
|
+
}[] | undefined;
|
|
542
|
+
}>;
|
|
543
|
+
export declare const NativeGetOAuthFlowParamsSchema: z.ZodObject<{
|
|
544
|
+
flowId: z.ZodString;
|
|
545
|
+
language: z.ZodOptional<z.ZodString>;
|
|
546
|
+
}, "strict", z.ZodTypeAny, {
|
|
547
|
+
flowId: string;
|
|
548
|
+
language?: string | undefined;
|
|
549
|
+
}, {
|
|
550
|
+
flowId: string;
|
|
551
|
+
language?: string | undefined;
|
|
552
|
+
}>;
|
|
553
|
+
export declare const NativeResumeOAuthFlowParamsSchema: z.ZodObject<{
|
|
554
|
+
flowId: z.ZodString;
|
|
555
|
+
resumeNonce: z.ZodOptional<z.ZodString>;
|
|
556
|
+
language: z.ZodOptional<z.ZodString>;
|
|
557
|
+
}, "strict", z.ZodTypeAny, {
|
|
558
|
+
flowId: string;
|
|
559
|
+
language?: string | undefined;
|
|
560
|
+
resumeNonce?: string | undefined;
|
|
561
|
+
}, {
|
|
562
|
+
flowId: string;
|
|
563
|
+
language?: string | undefined;
|
|
564
|
+
resumeNonce?: string | undefined;
|
|
565
|
+
}>;
|
|
566
|
+
export declare const NativeCancelOAuthFlowParamsSchema: z.ZodObject<{
|
|
567
|
+
flowId: z.ZodString;
|
|
568
|
+
language: z.ZodOptional<z.ZodString>;
|
|
569
|
+
}, "strict", z.ZodTypeAny, {
|
|
570
|
+
flowId: string;
|
|
571
|
+
language?: string | undefined;
|
|
572
|
+
}, {
|
|
573
|
+
flowId: string;
|
|
574
|
+
language?: string | undefined;
|
|
575
|
+
}>;
|
|
576
|
+
export declare const NativeOAuthFlowResultSchema: z.ZodObject<{
|
|
577
|
+
flow: z.ZodOptional<z.ZodObject<{
|
|
578
|
+
id: z.ZodString;
|
|
579
|
+
phase: z.ZodEnum<["before", "oauth", "after", "completed", "canceled"]>;
|
|
580
|
+
expiresAt: z.ZodString;
|
|
581
|
+
key: z.ZodOptional<z.ZodString>;
|
|
582
|
+
targetAuthScope: z.ZodOptional<z.ZodString>;
|
|
583
|
+
authorizationURL: z.ZodOptional<z.ZodString>;
|
|
584
|
+
canResume: z.ZodOptional<z.ZodBoolean>;
|
|
585
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
586
|
+
id: z.ZodEnum<["before", "oauth", "after"]>;
|
|
587
|
+
title: z.ZodString;
|
|
588
|
+
description: z.ZodOptional<z.ZodString>;
|
|
589
|
+
icon: z.ZodEnum<["installation", "account", "organization", "permission", "settings"]>;
|
|
590
|
+
status: z.ZodEnum<["pending", "in_progress", "completed", "failed", "unknown"]>;
|
|
591
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
592
|
+
}, "strict", z.ZodTypeAny, {
|
|
593
|
+
status: "completed" | "unknown" | "pending" | "in_progress" | "failed";
|
|
594
|
+
id: "oauth" | "before" | "after";
|
|
595
|
+
title: string;
|
|
596
|
+
icon: "installation" | "account" | "organization" | "permission" | "settings";
|
|
597
|
+
description?: string | undefined;
|
|
598
|
+
detail?: string | undefined;
|
|
599
|
+
}, {
|
|
600
|
+
status: "completed" | "unknown" | "pending" | "in_progress" | "failed";
|
|
601
|
+
id: "oauth" | "before" | "after";
|
|
602
|
+
title: string;
|
|
603
|
+
icon: "installation" | "account" | "organization" | "permission" | "settings";
|
|
604
|
+
description?: string | undefined;
|
|
605
|
+
detail?: string | undefined;
|
|
606
|
+
}>, "many">>;
|
|
607
|
+
}, "strict", z.ZodTypeAny, {
|
|
608
|
+
id: string;
|
|
609
|
+
expiresAt: string;
|
|
610
|
+
phase: "oauth" | "before" | "after" | "completed" | "canceled";
|
|
611
|
+
key?: string | undefined;
|
|
612
|
+
targetAuthScope?: string | undefined;
|
|
613
|
+
authorizationURL?: string | undefined;
|
|
614
|
+
canResume?: boolean | undefined;
|
|
615
|
+
steps?: {
|
|
616
|
+
status: "completed" | "unknown" | "pending" | "in_progress" | "failed";
|
|
617
|
+
id: "oauth" | "before" | "after";
|
|
618
|
+
title: string;
|
|
619
|
+
icon: "installation" | "account" | "organization" | "permission" | "settings";
|
|
620
|
+
description?: string | undefined;
|
|
621
|
+
detail?: string | undefined;
|
|
622
|
+
}[] | undefined;
|
|
623
|
+
}, {
|
|
624
|
+
id: string;
|
|
625
|
+
expiresAt: string;
|
|
626
|
+
phase: "oauth" | "before" | "after" | "completed" | "canceled";
|
|
627
|
+
key?: string | undefined;
|
|
628
|
+
targetAuthScope?: string | undefined;
|
|
629
|
+
authorizationURL?: string | undefined;
|
|
630
|
+
canResume?: boolean | undefined;
|
|
631
|
+
steps?: {
|
|
632
|
+
status: "completed" | "unknown" | "pending" | "in_progress" | "failed";
|
|
633
|
+
id: "oauth" | "before" | "after";
|
|
634
|
+
title: string;
|
|
635
|
+
icon: "installation" | "account" | "organization" | "permission" | "settings";
|
|
636
|
+
description?: string | undefined;
|
|
637
|
+
detail?: string | undefined;
|
|
638
|
+
}[] | undefined;
|
|
639
|
+
}>>;
|
|
640
|
+
}, "strict", z.ZodTypeAny, {
|
|
641
|
+
flow?: {
|
|
642
|
+
id: string;
|
|
643
|
+
expiresAt: string;
|
|
644
|
+
phase: "oauth" | "before" | "after" | "completed" | "canceled";
|
|
645
|
+
key?: string | undefined;
|
|
646
|
+
targetAuthScope?: string | undefined;
|
|
647
|
+
authorizationURL?: string | undefined;
|
|
648
|
+
canResume?: boolean | undefined;
|
|
649
|
+
steps?: {
|
|
650
|
+
status: "completed" | "unknown" | "pending" | "in_progress" | "failed";
|
|
651
|
+
id: "oauth" | "before" | "after";
|
|
652
|
+
title: string;
|
|
653
|
+
icon: "installation" | "account" | "organization" | "permission" | "settings";
|
|
654
|
+
description?: string | undefined;
|
|
655
|
+
detail?: string | undefined;
|
|
656
|
+
}[] | undefined;
|
|
657
|
+
} | undefined;
|
|
658
|
+
}, {
|
|
659
|
+
flow?: {
|
|
660
|
+
id: string;
|
|
661
|
+
expiresAt: string;
|
|
662
|
+
phase: "oauth" | "before" | "after" | "completed" | "canceled";
|
|
663
|
+
key?: string | undefined;
|
|
664
|
+
targetAuthScope?: string | undefined;
|
|
665
|
+
authorizationURL?: string | undefined;
|
|
666
|
+
canResume?: boolean | undefined;
|
|
667
|
+
steps?: {
|
|
668
|
+
status: "completed" | "unknown" | "pending" | "in_progress" | "failed";
|
|
669
|
+
id: "oauth" | "before" | "after";
|
|
670
|
+
title: string;
|
|
671
|
+
icon: "installation" | "account" | "organization" | "permission" | "settings";
|
|
672
|
+
description?: string | undefined;
|
|
673
|
+
detail?: string | undefined;
|
|
674
|
+
}[] | undefined;
|
|
675
|
+
} | undefined;
|
|
676
|
+
}>;
|
|
480
677
|
export declare const nativeFunctionSchemaDefinitions: ({
|
|
678
|
+
name: string;
|
|
679
|
+
description: string;
|
|
680
|
+
input: z.ZodObject<{
|
|
681
|
+
flowId: z.ZodString;
|
|
682
|
+
language: z.ZodOptional<z.ZodString>;
|
|
683
|
+
}, "strict", z.ZodTypeAny, {
|
|
684
|
+
flowId: string;
|
|
685
|
+
language?: string | undefined;
|
|
686
|
+
}, {
|
|
687
|
+
flowId: string;
|
|
688
|
+
language?: string | undefined;
|
|
689
|
+
}>;
|
|
690
|
+
output: z.ZodObject<{
|
|
691
|
+
flow: z.ZodOptional<z.ZodObject<{
|
|
692
|
+
id: z.ZodString;
|
|
693
|
+
phase: z.ZodEnum<["before", "oauth", "after", "completed", "canceled"]>;
|
|
694
|
+
expiresAt: z.ZodString;
|
|
695
|
+
key: z.ZodOptional<z.ZodString>;
|
|
696
|
+
targetAuthScope: z.ZodOptional<z.ZodString>;
|
|
697
|
+
authorizationURL: z.ZodOptional<z.ZodString>;
|
|
698
|
+
canResume: z.ZodOptional<z.ZodBoolean>;
|
|
699
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
700
|
+
id: z.ZodEnum<["before", "oauth", "after"]>;
|
|
701
|
+
title: z.ZodString;
|
|
702
|
+
description: z.ZodOptional<z.ZodString>;
|
|
703
|
+
icon: z.ZodEnum<["installation", "account", "organization", "permission", "settings"]>;
|
|
704
|
+
status: z.ZodEnum<["pending", "in_progress", "completed", "failed", "unknown"]>;
|
|
705
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
706
|
+
}, "strict", z.ZodTypeAny, {
|
|
707
|
+
status: "completed" | "unknown" | "pending" | "in_progress" | "failed";
|
|
708
|
+
id: "oauth" | "before" | "after";
|
|
709
|
+
title: string;
|
|
710
|
+
icon: "installation" | "account" | "organization" | "permission" | "settings";
|
|
711
|
+
description?: string | undefined;
|
|
712
|
+
detail?: string | undefined;
|
|
713
|
+
}, {
|
|
714
|
+
status: "completed" | "unknown" | "pending" | "in_progress" | "failed";
|
|
715
|
+
id: "oauth" | "before" | "after";
|
|
716
|
+
title: string;
|
|
717
|
+
icon: "installation" | "account" | "organization" | "permission" | "settings";
|
|
718
|
+
description?: string | undefined;
|
|
719
|
+
detail?: string | undefined;
|
|
720
|
+
}>, "many">>;
|
|
721
|
+
}, "strict", z.ZodTypeAny, {
|
|
722
|
+
id: string;
|
|
723
|
+
expiresAt: string;
|
|
724
|
+
phase: "oauth" | "before" | "after" | "completed" | "canceled";
|
|
725
|
+
key?: string | undefined;
|
|
726
|
+
targetAuthScope?: string | undefined;
|
|
727
|
+
authorizationURL?: string | undefined;
|
|
728
|
+
canResume?: boolean | undefined;
|
|
729
|
+
steps?: {
|
|
730
|
+
status: "completed" | "unknown" | "pending" | "in_progress" | "failed";
|
|
731
|
+
id: "oauth" | "before" | "after";
|
|
732
|
+
title: string;
|
|
733
|
+
icon: "installation" | "account" | "organization" | "permission" | "settings";
|
|
734
|
+
description?: string | undefined;
|
|
735
|
+
detail?: string | undefined;
|
|
736
|
+
}[] | undefined;
|
|
737
|
+
}, {
|
|
738
|
+
id: string;
|
|
739
|
+
expiresAt: string;
|
|
740
|
+
phase: "oauth" | "before" | "after" | "completed" | "canceled";
|
|
741
|
+
key?: string | undefined;
|
|
742
|
+
targetAuthScope?: string | undefined;
|
|
743
|
+
authorizationURL?: string | undefined;
|
|
744
|
+
canResume?: boolean | undefined;
|
|
745
|
+
steps?: {
|
|
746
|
+
status: "completed" | "unknown" | "pending" | "in_progress" | "failed";
|
|
747
|
+
id: "oauth" | "before" | "after";
|
|
748
|
+
title: string;
|
|
749
|
+
icon: "installation" | "account" | "organization" | "permission" | "settings";
|
|
750
|
+
description?: string | undefined;
|
|
751
|
+
detail?: string | undefined;
|
|
752
|
+
}[] | undefined;
|
|
753
|
+
}>>;
|
|
754
|
+
}, "strict", z.ZodTypeAny, {
|
|
755
|
+
flow?: {
|
|
756
|
+
id: string;
|
|
757
|
+
expiresAt: string;
|
|
758
|
+
phase: "oauth" | "before" | "after" | "completed" | "canceled";
|
|
759
|
+
key?: string | undefined;
|
|
760
|
+
targetAuthScope?: string | undefined;
|
|
761
|
+
authorizationURL?: string | undefined;
|
|
762
|
+
canResume?: boolean | undefined;
|
|
763
|
+
steps?: {
|
|
764
|
+
status: "completed" | "unknown" | "pending" | "in_progress" | "failed";
|
|
765
|
+
id: "oauth" | "before" | "after";
|
|
766
|
+
title: string;
|
|
767
|
+
icon: "installation" | "account" | "organization" | "permission" | "settings";
|
|
768
|
+
description?: string | undefined;
|
|
769
|
+
detail?: string | undefined;
|
|
770
|
+
}[] | undefined;
|
|
771
|
+
} | undefined;
|
|
772
|
+
}, {
|
|
773
|
+
flow?: {
|
|
774
|
+
id: string;
|
|
775
|
+
expiresAt: string;
|
|
776
|
+
phase: "oauth" | "before" | "after" | "completed" | "canceled";
|
|
777
|
+
key?: string | undefined;
|
|
778
|
+
targetAuthScope?: string | undefined;
|
|
779
|
+
authorizationURL?: string | undefined;
|
|
780
|
+
canResume?: boolean | undefined;
|
|
781
|
+
steps?: {
|
|
782
|
+
status: "completed" | "unknown" | "pending" | "in_progress" | "failed";
|
|
783
|
+
id: "oauth" | "before" | "after";
|
|
784
|
+
title: string;
|
|
785
|
+
icon: "installation" | "account" | "organization" | "permission" | "settings";
|
|
786
|
+
description?: string | undefined;
|
|
787
|
+
detail?: string | undefined;
|
|
788
|
+
}[] | undefined;
|
|
789
|
+
} | undefined;
|
|
790
|
+
}>;
|
|
791
|
+
} | {
|
|
481
792
|
name: string;
|
|
482
793
|
description: string;
|
|
483
794
|
input: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../../src/schemas/native.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../../src/schemas/native.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAK3D,eAAO,MAAM,wBAAwB,mQAUnC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;EAMzC,CAAC;AAE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,MAAM,8BAA8B;;;;;;;;;EAEhC,CAAC;AAEZ,eAAO,MAAM,iCAAiC;;;;;;;;;;;;EAMnC,CAAC;AAEZ,eAAO,MAAM,iCAAiC;;;;;;;;;EAAiC,CAAC;AAEhF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7B,CAAC;AASZ,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyDA,CAAC;AAE7C,wBAAgB,wBAAwB,IAAI,cAAc,EAAE,CAO3D"}
|
package/dist/schemas/native.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OAuthFlowStepSchema } from "../extensions/oauth.js";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import { zodToJsonSchema } from "../utils/zod-to-json-schema.js";
|
|
3
4
|
const NativeNonEmptyStringSchema = z.string().min(1);
|
|
@@ -96,7 +97,51 @@ export const NativeListActiveOAuthManagerTargetsResultSchema = z
|
|
|
96
97
|
nextCursor: NativeNonEmptyStringSchema.optional(),
|
|
97
98
|
})
|
|
98
99
|
.strict();
|
|
100
|
+
export const NativeOAuthFlowSchema = z
|
|
101
|
+
.object({
|
|
102
|
+
id: NativeNonEmptyStringSchema,
|
|
103
|
+
phase: z.enum(["before", "oauth", "after", "completed", "canceled"]),
|
|
104
|
+
expiresAt: z.string().datetime({ offset: true }),
|
|
105
|
+
key: z.string().optional(),
|
|
106
|
+
targetAuthScope: z.string().optional(),
|
|
107
|
+
authorizationURL: z.string().url().optional(),
|
|
108
|
+
canResume: z.boolean().optional(),
|
|
109
|
+
steps: z.array(OAuthFlowStepSchema).optional(),
|
|
110
|
+
})
|
|
111
|
+
.strict();
|
|
112
|
+
export const NativeGetOAuthFlowParamsSchema = z
|
|
113
|
+
.object({ flowId: NativeNonEmptyStringSchema, language: z.string().optional() })
|
|
114
|
+
.strict();
|
|
115
|
+
export const NativeResumeOAuthFlowParamsSchema = z
|
|
116
|
+
.object({
|
|
117
|
+
flowId: NativeNonEmptyStringSchema,
|
|
118
|
+
resumeNonce: NativeNonEmptyStringSchema.optional(),
|
|
119
|
+
language: z.string().optional(),
|
|
120
|
+
})
|
|
121
|
+
.strict();
|
|
122
|
+
export const NativeCancelOAuthFlowParamsSchema = NativeGetOAuthFlowParamsSchema;
|
|
123
|
+
export const NativeOAuthFlowResultSchema = z
|
|
124
|
+
.object({ flow: NativeOAuthFlowSchema.optional() })
|
|
125
|
+
.strict();
|
|
99
126
|
export const nativeFunctionSchemaDefinitions = [
|
|
127
|
+
{
|
|
128
|
+
name: "getOAuthFlow",
|
|
129
|
+
description: "Read an OAuth flow as its initiating manager through the authenticated WAM session.",
|
|
130
|
+
input: NativeGetOAuthFlowParamsSchema,
|
|
131
|
+
output: NativeOAuthFlowResultSchema,
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: "resumeOAuthFlow",
|
|
135
|
+
description: "Resume an OAuth flow as its initiating manager and recheck the current app hook.",
|
|
136
|
+
input: NativeResumeOAuthFlowParamsSchema,
|
|
137
|
+
output: NativeOAuthFlowResultSchema,
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: "cancelOAuthFlow",
|
|
141
|
+
description: "Cancel an OAuth flow as its initiating manager without revoking a saved credential.",
|
|
142
|
+
input: NativeCancelOAuthFlowParamsSchema,
|
|
143
|
+
output: NativeOAuthFlowResultSchema,
|
|
144
|
+
},
|
|
100
145
|
{
|
|
101
146
|
name: "createAppDataTable",
|
|
102
147
|
description: "Create an app-owned logical data table.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native.js","sourceRoot":"","sources":["../../src/schemas/native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAErD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7C,2BAA2B;IAC3B,uBAAuB;IACvB,oBAAoB;IACpB,wBAAwB;IACxB,8BAA8B;IAC9B,8BAA8B;IAC9B,sBAAsB;IACtB,sBAAsB;IACtB,8BAA8B;CAC/B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,GAAG,EAAE,0BAA0B;IAC/B,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,wBAAwB;IAC9B,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,SAAS,EAAE,0BAA0B;IACr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AE,eAAe,CAAC,UAAU,CAAC,KAAK,CAAC;QAC9C,YAAY,EAAE,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC;KACjD,CAAC,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redirect.d.ts","sourceRoot":"","sources":["../../src/schemas/redirect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB,2CAUG,CAAC;AAE1C,eAAO,MAAM,sBAAsB,aAGmB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const HTTPSRedirectOriginSchema = z
|
|
3
|
+
.string()
|
|
4
|
+
.url()
|
|
5
|
+
.regex(/^https:\/\/[^/?#@\\\s*]+$/)
|
|
6
|
+
.refine((value) => {
|
|
7
|
+
try {
|
|
8
|
+
return new URL(value).origin === value;
|
|
9
|
+
}
|
|
10
|
+
catch {
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
}, "Expected a canonical HTTPS origin");
|
|
14
|
+
export const HTTPSRedirectURLSchema = z
|
|
15
|
+
.string()
|
|
16
|
+
.url()
|
|
17
|
+
.regex(/^https:\/\/[^/?#@\\\s]+(?:[/?#][^\\\s]*)?$/);
|
|
18
|
+
//# sourceMappingURL=redirect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redirect.js","sourceRoot":"","sources":["../../src/schemas/redirect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC;KACvC,MAAM,EAAE;KACR,GAAG,EAAE;KACL,KAAK,CAAC,2BAA2B,CAAC;KAClC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE;IAChB,IAAI,CAAC;QACH,OAAO,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,KAAK,CAAC;IACzC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC,EAAE,mCAAmC,CAAC,CAAC;AAE1C,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC;KACpC,MAAM,EAAE;KACR,GAAG,EAAE;KACL,KAAK,CAAC,4CAA4C,CAAC,CAAC"}
|
package/dist/types/context.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Caller as ProtoCaller, Channel as ProtoChannel, FunctionContext as ProtoFunctionContext, User as ProtoUser, UserChat as ProtoUserChat, WebhookEndpointContext as ProtoWebhookEndpointContext } from "../gen/channel/app/sdk/v1/context.js";
|
|
1
|
+
import type { Caller as ProtoCaller, Channel as ProtoChannel, FunctionContext as ProtoFunctionContext, OAuthFlowContext as ProtoOAuthFlowContext, User as ProtoUser, UserChat as ProtoUserChat, WebhookEndpointContext as ProtoWebhookEndpointContext } from "../gen/channel/app/sdk/v1/context.js";
|
|
2
2
|
import type { FunctionRequest as ProtoFunctionRequest, FunctionResponse as ProtoFunctionResponse } from "../gen/channel/app/sdk/v1/function.js";
|
|
3
3
|
import type { FunctionError as ProtoFunctionError } from "../gen/channel/app/sdk/v1/error.js";
|
|
4
4
|
/**
|
|
@@ -31,11 +31,18 @@ export type User = ProtoUser;
|
|
|
31
31
|
export type UserChat = ProtoUserChat;
|
|
32
32
|
/** One AppStore-issued webhook callback endpoint. */
|
|
33
33
|
export type WebhookEndpointContext = ProtoWebhookEndpointContext;
|
|
34
|
+
/** Platform-signed flow target. This does not grant manager caller authority. */
|
|
35
|
+
export interface OAuthFlowContext extends ProtoOAuthFlowContext {
|
|
36
|
+
appId: string;
|
|
37
|
+
channelId: string;
|
|
38
|
+
managerId: string;
|
|
39
|
+
authScope: "channel" | "manager";
|
|
40
|
+
}
|
|
34
41
|
/**
|
|
35
42
|
* Context passed to function handlers.
|
|
36
43
|
* Mirrors Go's ChannelContext struct (internal/domain/app/subdomain/core/svc/function.go).
|
|
37
44
|
*/
|
|
38
|
-
export interface Context extends Omit<ProtoFunctionContext, "caller" | "channel" | "user" | "userChat"> {
|
|
45
|
+
export interface Context extends Omit<ProtoFunctionContext, "caller" | "channel" | "user" | "userChat" | "oauthFlow"> {
|
|
39
46
|
/** Caller information */
|
|
40
47
|
caller: Caller;
|
|
41
48
|
/** Channel information */
|
|
@@ -65,6 +72,8 @@ export interface Context extends Omit<ProtoFunctionContext, "caller" | "channel"
|
|
|
65
72
|
config?: Record<string, unknown>;
|
|
66
73
|
/** Manager-scoped webhook callback endpoints keyed by Hook target ID. */
|
|
67
74
|
webhooks?: Record<string, WebhookEndpointContext>;
|
|
75
|
+
/** Target and initiating actor for system-invoked OAuth flow hooks. */
|
|
76
|
+
oauthFlow?: OAuthFlowContext;
|
|
68
77
|
/** Sandbox mode flag (for LLM mock testing) */
|
|
69
78
|
sandbox?: boolean;
|
|
70
79
|
/** Sandbox session ID (stateful mode) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/types/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,IAAI,WAAW,EACrB,OAAO,IAAI,YAAY,EACvB,eAAe,IAAI,oBAAoB,EACvC,IAAI,IAAI,SAAS,EACjB,QAAQ,IAAI,aAAa,EACzB,sBAAsB,IAAI,2BAA2B,EACtD,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EACV,eAAe,IAAI,oBAAoB,EACvC,gBAAgB,IAAI,qBAAqB,EAC1C,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAE9F;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE/D;;GAEG;AACH,MAAM,WAAW,MAAO,SAAQ,WAAW;IACz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C;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,4DAA4D;IAC5D,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC3F,8EAA8E;IAC9E,MAAM,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7F,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,qCAAqC;IACrC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,IAAI,CAC7D,qBAAqB,EACrB,QAAQ,GAAG,OAAO,CACnB;IACC,kBAAkB;IAClB,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,8BAA8B;IAC9B,KAAK,CAAC,EAAE,yBAAyB,CAAC;CACnC"}
|
package/dist/types/native.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CancelOAuthFlowParams, GetOAuthFlowParams, OAuthFlow, OAuthFlowResult, ResumeOAuthFlowParams } from "../gen/channel/app/sdk/v1/native.js";
|
|
1
2
|
export type NativeJsonObject = object;
|
|
2
3
|
export type NativeEmptyResult = Record<string, never>;
|
|
3
4
|
export type NativeSortOrder = "SORT_ORDER_UNSPECIFIED" | "SORT_ORDER_ASC" | "SORT_ORDER_DESC" | "SORT_ORDER_BOTH";
|
|
@@ -624,6 +625,24 @@ export interface NativeListActiveOAuthManagerTargetsResult {
|
|
|
624
625
|
targets: readonly NativeActiveOAuthManagerTarget[];
|
|
625
626
|
nextCursor?: string;
|
|
626
627
|
}
|
|
628
|
+
/** Manager-authenticated flow state. No provider credentials are returned. */
|
|
629
|
+
export interface NativeOAuthFlow extends OAuthFlow {
|
|
630
|
+
id: string;
|
|
631
|
+
phase: "before" | "oauth" | "after" | "completed" | "canceled";
|
|
632
|
+
expiresAt: string;
|
|
633
|
+
}
|
|
634
|
+
export interface NativeGetOAuthFlowParams extends GetOAuthFlowParams {
|
|
635
|
+
flowId: string;
|
|
636
|
+
}
|
|
637
|
+
export interface NativeResumeOAuthFlowParams extends ResumeOAuthFlowParams {
|
|
638
|
+
flowId: string;
|
|
639
|
+
}
|
|
640
|
+
export interface NativeCancelOAuthFlowParams extends CancelOAuthFlowParams {
|
|
641
|
+
flowId: string;
|
|
642
|
+
}
|
|
643
|
+
export interface NativeOAuthFlowResult extends OAuthFlowResult {
|
|
644
|
+
flow?: NativeOAuthFlow;
|
|
645
|
+
}
|
|
627
646
|
export interface NativeIssueEntityTokenParams {
|
|
628
647
|
channelId: string;
|
|
629
648
|
entityType: string;
|
|
@@ -633,6 +652,21 @@ export interface NativeIssueEntityTokenResult {
|
|
|
633
652
|
entityToken: NativeEntityToken;
|
|
634
653
|
}
|
|
635
654
|
export interface NativeFunctionTypeMap {
|
|
655
|
+
/** Requires the initiating manager's authenticated WAM session. */
|
|
656
|
+
getOAuthFlow: {
|
|
657
|
+
params: NativeGetOAuthFlowParams;
|
|
658
|
+
result: NativeOAuthFlowResult;
|
|
659
|
+
};
|
|
660
|
+
/** Requires the initiating manager's authenticated WAM session. */
|
|
661
|
+
resumeOAuthFlow: {
|
|
662
|
+
params: NativeResumeOAuthFlowParams;
|
|
663
|
+
result: NativeOAuthFlowResult;
|
|
664
|
+
};
|
|
665
|
+
/** Requires the initiating manager's authenticated WAM session. */
|
|
666
|
+
cancelOAuthFlow: {
|
|
667
|
+
params: NativeCancelOAuthFlowParams;
|
|
668
|
+
result: NativeOAuthFlowResult;
|
|
669
|
+
};
|
|
636
670
|
writeGroupMessage: {
|
|
637
671
|
params: NativeWriteGroupMessageParams;
|
|
638
672
|
result: NativeWriteGroupMessageResult;
|