@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native.js","sourceRoot":"","sources":["../../../../../../src/gen/channel/app/sdk/v1/native.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,YAAY;AACZ,iCAAiC;AACjC,iCAAiC;AACjC,0CAA0C;
|
|
1
|
+
{"version":3,"file":"native.js","sourceRoot":"","sources":["../../../../../../src/gen/channel/app/sdk/v1/native.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,YAAY;AACZ,iCAAiC;AACjC,iCAAiC;AACjC,0CAA0C;AAO1C,MAAM,CAAC,MAAM,eAAe,GAAG,oBAAoB,CAAC"}
|
|
@@ -70,6 +70,28 @@ export declare const NativeFunctionRequestProtoSchema: z.ZodObject<{
|
|
|
70
70
|
}, {
|
|
71
71
|
url?: string | undefined;
|
|
72
72
|
}>>>>;
|
|
73
|
+
oauthFlow: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
74
|
+
appId: z.ZodOptional<z.ZodString>;
|
|
75
|
+
channelId: z.ZodOptional<z.ZodString>;
|
|
76
|
+
managerId: z.ZodOptional<z.ZodString>;
|
|
77
|
+
authScope: z.ZodOptional<z.ZodString>;
|
|
78
|
+
key: z.ZodOptional<z.ZodString>;
|
|
79
|
+
targetManagerId: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
channelId?: string | undefined;
|
|
82
|
+
key?: string | undefined;
|
|
83
|
+
appId?: string | undefined;
|
|
84
|
+
managerId?: string | undefined;
|
|
85
|
+
authScope?: string | undefined;
|
|
86
|
+
targetManagerId?: string | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
channelId?: string | undefined;
|
|
89
|
+
key?: string | undefined;
|
|
90
|
+
appId?: string | undefined;
|
|
91
|
+
managerId?: string | undefined;
|
|
92
|
+
authScope?: string | undefined;
|
|
93
|
+
targetManagerId?: string | undefined;
|
|
94
|
+
}>>>;
|
|
73
95
|
}, "strip", z.ZodTypeAny, {
|
|
74
96
|
user?: {
|
|
75
97
|
type?: string | undefined;
|
|
@@ -79,11 +101,11 @@ export declare const NativeFunctionRequestProtoSchema: z.ZodObject<{
|
|
|
79
101
|
profile?: Record<string, any> | undefined;
|
|
80
102
|
member?: boolean | undefined;
|
|
81
103
|
} | undefined;
|
|
82
|
-
|
|
83
|
-
type?: string | undefined;
|
|
104
|
+
channel?: {
|
|
84
105
|
id?: string | undefined;
|
|
85
106
|
} | undefined;
|
|
86
|
-
|
|
107
|
+
caller?: {
|
|
108
|
+
type?: string | undefined;
|
|
87
109
|
id?: string | undefined;
|
|
88
110
|
} | undefined;
|
|
89
111
|
userChat?: {
|
|
@@ -91,6 +113,14 @@ export declare const NativeFunctionRequestProtoSchema: z.ZodObject<{
|
|
|
91
113
|
state?: string | undefined;
|
|
92
114
|
profile?: Record<string, any> | undefined;
|
|
93
115
|
} | undefined;
|
|
116
|
+
oauthFlow?: {
|
|
117
|
+
channelId?: string | undefined;
|
|
118
|
+
key?: string | undefined;
|
|
119
|
+
appId?: string | undefined;
|
|
120
|
+
managerId?: string | undefined;
|
|
121
|
+
authScope?: string | undefined;
|
|
122
|
+
targetManagerId?: string | undefined;
|
|
123
|
+
} | undefined;
|
|
94
124
|
authToken?: string | undefined;
|
|
95
125
|
legacyAuthToken?: string | undefined;
|
|
96
126
|
apiCredentials?: Record<string, string> | undefined;
|
|
@@ -111,11 +141,11 @@ export declare const NativeFunctionRequestProtoSchema: z.ZodObject<{
|
|
|
111
141
|
profile?: Record<string, any> | undefined;
|
|
112
142
|
member?: boolean | undefined;
|
|
113
143
|
} | undefined;
|
|
114
|
-
|
|
115
|
-
type?: string | undefined;
|
|
144
|
+
channel?: {
|
|
116
145
|
id?: string | undefined;
|
|
117
146
|
} | undefined;
|
|
118
|
-
|
|
147
|
+
caller?: {
|
|
148
|
+
type?: string | undefined;
|
|
119
149
|
id?: string | undefined;
|
|
120
150
|
} | undefined;
|
|
121
151
|
userChat?: {
|
|
@@ -123,6 +153,14 @@ export declare const NativeFunctionRequestProtoSchema: z.ZodObject<{
|
|
|
123
153
|
state?: string | undefined;
|
|
124
154
|
profile?: Record<string, any> | undefined;
|
|
125
155
|
} | undefined;
|
|
156
|
+
oauthFlow?: {
|
|
157
|
+
channelId?: string | undefined;
|
|
158
|
+
key?: string | undefined;
|
|
159
|
+
appId?: string | undefined;
|
|
160
|
+
managerId?: string | undefined;
|
|
161
|
+
authScope?: string | undefined;
|
|
162
|
+
targetManagerId?: string | undefined;
|
|
163
|
+
} | undefined;
|
|
126
164
|
authToken?: string | undefined;
|
|
127
165
|
legacyAuthToken?: string | undefined;
|
|
128
166
|
apiCredentials?: Record<string, string> | undefined;
|
|
@@ -146,11 +184,11 @@ export declare const NativeFunctionRequestProtoSchema: z.ZodObject<{
|
|
|
146
184
|
profile?: Record<string, any> | undefined;
|
|
147
185
|
member?: boolean | undefined;
|
|
148
186
|
} | undefined;
|
|
149
|
-
|
|
150
|
-
type?: string | undefined;
|
|
187
|
+
channel?: {
|
|
151
188
|
id?: string | undefined;
|
|
152
189
|
} | undefined;
|
|
153
|
-
|
|
190
|
+
caller?: {
|
|
191
|
+
type?: string | undefined;
|
|
154
192
|
id?: string | undefined;
|
|
155
193
|
} | undefined;
|
|
156
194
|
userChat?: {
|
|
@@ -158,6 +196,14 @@ export declare const NativeFunctionRequestProtoSchema: z.ZodObject<{
|
|
|
158
196
|
state?: string | undefined;
|
|
159
197
|
profile?: Record<string, any> | undefined;
|
|
160
198
|
} | undefined;
|
|
199
|
+
oauthFlow?: {
|
|
200
|
+
channelId?: string | undefined;
|
|
201
|
+
key?: string | undefined;
|
|
202
|
+
appId?: string | undefined;
|
|
203
|
+
managerId?: string | undefined;
|
|
204
|
+
authScope?: string | undefined;
|
|
205
|
+
targetManagerId?: string | undefined;
|
|
206
|
+
} | undefined;
|
|
161
207
|
authToken?: string | undefined;
|
|
162
208
|
legacyAuthToken?: string | undefined;
|
|
163
209
|
apiCredentials?: Record<string, string> | undefined;
|
|
@@ -183,11 +229,11 @@ export declare const NativeFunctionRequestProtoSchema: z.ZodObject<{
|
|
|
183
229
|
profile?: Record<string, any> | undefined;
|
|
184
230
|
member?: boolean | undefined;
|
|
185
231
|
} | undefined;
|
|
186
|
-
|
|
187
|
-
type?: string | undefined;
|
|
232
|
+
channel?: {
|
|
188
233
|
id?: string | undefined;
|
|
189
234
|
} | undefined;
|
|
190
|
-
|
|
235
|
+
caller?: {
|
|
236
|
+
type?: string | undefined;
|
|
191
237
|
id?: string | undefined;
|
|
192
238
|
} | undefined;
|
|
193
239
|
userChat?: {
|
|
@@ -195,6 +241,14 @@ export declare const NativeFunctionRequestProtoSchema: z.ZodObject<{
|
|
|
195
241
|
state?: string | undefined;
|
|
196
242
|
profile?: Record<string, any> | undefined;
|
|
197
243
|
} | undefined;
|
|
244
|
+
oauthFlow?: {
|
|
245
|
+
channelId?: string | undefined;
|
|
246
|
+
key?: string | undefined;
|
|
247
|
+
appId?: string | undefined;
|
|
248
|
+
managerId?: string | undefined;
|
|
249
|
+
authScope?: string | undefined;
|
|
250
|
+
targetManagerId?: string | undefined;
|
|
251
|
+
} | undefined;
|
|
198
252
|
authToken?: string | undefined;
|
|
199
253
|
legacyAuthToken?: string | undefined;
|
|
200
254
|
apiCredentials?: Record<string, string> | undefined;
|
|
@@ -457,4 +511,206 @@ export declare const GetAppNotebookVersionsResultProtoSchema: z.ZodObject<{
|
|
|
457
511
|
}[] | undefined;
|
|
458
512
|
}>;
|
|
459
513
|
export type GetAppNotebookVersionsResultProto = z.infer<typeof GetAppNotebookVersionsResultProtoSchema>;
|
|
514
|
+
export declare const OAuthFlowProtoSchema: z.ZodObject<{
|
|
515
|
+
id: z.ZodOptional<z.ZodString>;
|
|
516
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
517
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
518
|
+
key: z.ZodOptional<z.ZodString>;
|
|
519
|
+
targetAuthScope: z.ZodOptional<z.ZodString>;
|
|
520
|
+
authorizationURL: z.ZodOptional<z.ZodString>;
|
|
521
|
+
canResume: z.ZodOptional<z.ZodBoolean>;
|
|
522
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
523
|
+
id: z.ZodOptional<z.ZodString>;
|
|
524
|
+
title: z.ZodOptional<z.ZodString>;
|
|
525
|
+
description: z.ZodOptional<z.ZodString>;
|
|
526
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
527
|
+
status: z.ZodOptional<z.ZodString>;
|
|
528
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
529
|
+
}, "strip", z.ZodTypeAny, {
|
|
530
|
+
status?: string | undefined;
|
|
531
|
+
description?: string | undefined;
|
|
532
|
+
id?: string | undefined;
|
|
533
|
+
title?: string | undefined;
|
|
534
|
+
icon?: string | undefined;
|
|
535
|
+
detail?: string | undefined;
|
|
536
|
+
}, {
|
|
537
|
+
status?: string | undefined;
|
|
538
|
+
description?: string | undefined;
|
|
539
|
+
id?: string | undefined;
|
|
540
|
+
title?: string | undefined;
|
|
541
|
+
icon?: string | undefined;
|
|
542
|
+
detail?: string | undefined;
|
|
543
|
+
}>, "many">>;
|
|
544
|
+
}, "strip", z.ZodTypeAny, {
|
|
545
|
+
id?: string | undefined;
|
|
546
|
+
key?: string | undefined;
|
|
547
|
+
expiresAt?: string | undefined;
|
|
548
|
+
phase?: string | undefined;
|
|
549
|
+
targetAuthScope?: string | undefined;
|
|
550
|
+
authorizationURL?: string | undefined;
|
|
551
|
+
canResume?: boolean | undefined;
|
|
552
|
+
steps?: {
|
|
553
|
+
status?: string | undefined;
|
|
554
|
+
description?: string | undefined;
|
|
555
|
+
id?: string | undefined;
|
|
556
|
+
title?: string | undefined;
|
|
557
|
+
icon?: string | undefined;
|
|
558
|
+
detail?: string | undefined;
|
|
559
|
+
}[] | undefined;
|
|
560
|
+
}, {
|
|
561
|
+
id?: string | undefined;
|
|
562
|
+
key?: string | undefined;
|
|
563
|
+
expiresAt?: string | undefined;
|
|
564
|
+
phase?: string | undefined;
|
|
565
|
+
targetAuthScope?: string | undefined;
|
|
566
|
+
authorizationURL?: string | undefined;
|
|
567
|
+
canResume?: boolean | undefined;
|
|
568
|
+
steps?: {
|
|
569
|
+
status?: string | undefined;
|
|
570
|
+
description?: string | undefined;
|
|
571
|
+
id?: string | undefined;
|
|
572
|
+
title?: string | undefined;
|
|
573
|
+
icon?: string | undefined;
|
|
574
|
+
detail?: string | undefined;
|
|
575
|
+
}[] | undefined;
|
|
576
|
+
}>;
|
|
577
|
+
export type OAuthFlowProto = z.infer<typeof OAuthFlowProtoSchema>;
|
|
578
|
+
export declare const GetOAuthFlowParamsProtoSchema: z.ZodObject<{
|
|
579
|
+
flowId: z.ZodOptional<z.ZodString>;
|
|
580
|
+
language: z.ZodOptional<z.ZodString>;
|
|
581
|
+
}, "strip", z.ZodTypeAny, {
|
|
582
|
+
language?: string | undefined;
|
|
583
|
+
flowId?: string | undefined;
|
|
584
|
+
}, {
|
|
585
|
+
language?: string | undefined;
|
|
586
|
+
flowId?: string | undefined;
|
|
587
|
+
}>;
|
|
588
|
+
export type GetOAuthFlowParamsProto = z.infer<typeof GetOAuthFlowParamsProtoSchema>;
|
|
589
|
+
export declare const ResumeOAuthFlowParamsProtoSchema: z.ZodObject<{
|
|
590
|
+
flowId: z.ZodOptional<z.ZodString>;
|
|
591
|
+
resumeNonce: z.ZodOptional<z.ZodString>;
|
|
592
|
+
language: z.ZodOptional<z.ZodString>;
|
|
593
|
+
}, "strip", z.ZodTypeAny, {
|
|
594
|
+
language?: string | undefined;
|
|
595
|
+
flowId?: string | undefined;
|
|
596
|
+
resumeNonce?: string | undefined;
|
|
597
|
+
}, {
|
|
598
|
+
language?: string | undefined;
|
|
599
|
+
flowId?: string | undefined;
|
|
600
|
+
resumeNonce?: string | undefined;
|
|
601
|
+
}>;
|
|
602
|
+
export type ResumeOAuthFlowParamsProto = z.infer<typeof ResumeOAuthFlowParamsProtoSchema>;
|
|
603
|
+
export declare const CancelOAuthFlowParamsProtoSchema: z.ZodObject<{
|
|
604
|
+
flowId: z.ZodOptional<z.ZodString>;
|
|
605
|
+
language: z.ZodOptional<z.ZodString>;
|
|
606
|
+
}, "strip", z.ZodTypeAny, {
|
|
607
|
+
language?: string | undefined;
|
|
608
|
+
flowId?: string | undefined;
|
|
609
|
+
}, {
|
|
610
|
+
language?: string | undefined;
|
|
611
|
+
flowId?: string | undefined;
|
|
612
|
+
}>;
|
|
613
|
+
export type CancelOAuthFlowParamsProto = z.infer<typeof CancelOAuthFlowParamsProtoSchema>;
|
|
614
|
+
export declare const OAuthFlowResultProtoSchema: z.ZodObject<{
|
|
615
|
+
flow: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
616
|
+
id: z.ZodOptional<z.ZodString>;
|
|
617
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
618
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
619
|
+
key: z.ZodOptional<z.ZodString>;
|
|
620
|
+
targetAuthScope: z.ZodOptional<z.ZodString>;
|
|
621
|
+
authorizationURL: z.ZodOptional<z.ZodString>;
|
|
622
|
+
canResume: z.ZodOptional<z.ZodBoolean>;
|
|
623
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
624
|
+
id: z.ZodOptional<z.ZodString>;
|
|
625
|
+
title: z.ZodOptional<z.ZodString>;
|
|
626
|
+
description: z.ZodOptional<z.ZodString>;
|
|
627
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
628
|
+
status: z.ZodOptional<z.ZodString>;
|
|
629
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
630
|
+
}, "strip", z.ZodTypeAny, {
|
|
631
|
+
status?: string | undefined;
|
|
632
|
+
description?: string | undefined;
|
|
633
|
+
id?: string | undefined;
|
|
634
|
+
title?: string | undefined;
|
|
635
|
+
icon?: string | undefined;
|
|
636
|
+
detail?: string | undefined;
|
|
637
|
+
}, {
|
|
638
|
+
status?: string | undefined;
|
|
639
|
+
description?: string | undefined;
|
|
640
|
+
id?: string | undefined;
|
|
641
|
+
title?: string | undefined;
|
|
642
|
+
icon?: string | undefined;
|
|
643
|
+
detail?: string | undefined;
|
|
644
|
+
}>, "many">>;
|
|
645
|
+
}, "strip", z.ZodTypeAny, {
|
|
646
|
+
id?: string | undefined;
|
|
647
|
+
key?: string | undefined;
|
|
648
|
+
expiresAt?: string | undefined;
|
|
649
|
+
phase?: string | undefined;
|
|
650
|
+
targetAuthScope?: string | undefined;
|
|
651
|
+
authorizationURL?: string | undefined;
|
|
652
|
+
canResume?: boolean | undefined;
|
|
653
|
+
steps?: {
|
|
654
|
+
status?: string | undefined;
|
|
655
|
+
description?: string | undefined;
|
|
656
|
+
id?: string | undefined;
|
|
657
|
+
title?: string | undefined;
|
|
658
|
+
icon?: string | undefined;
|
|
659
|
+
detail?: string | undefined;
|
|
660
|
+
}[] | undefined;
|
|
661
|
+
}, {
|
|
662
|
+
id?: string | undefined;
|
|
663
|
+
key?: string | undefined;
|
|
664
|
+
expiresAt?: string | undefined;
|
|
665
|
+
phase?: string | undefined;
|
|
666
|
+
targetAuthScope?: string | undefined;
|
|
667
|
+
authorizationURL?: string | undefined;
|
|
668
|
+
canResume?: boolean | undefined;
|
|
669
|
+
steps?: {
|
|
670
|
+
status?: string | undefined;
|
|
671
|
+
description?: string | undefined;
|
|
672
|
+
id?: string | undefined;
|
|
673
|
+
title?: string | undefined;
|
|
674
|
+
icon?: string | undefined;
|
|
675
|
+
detail?: string | undefined;
|
|
676
|
+
}[] | undefined;
|
|
677
|
+
}>>>;
|
|
678
|
+
}, "strip", z.ZodTypeAny, {
|
|
679
|
+
flow?: {
|
|
680
|
+
id?: string | undefined;
|
|
681
|
+
key?: string | undefined;
|
|
682
|
+
expiresAt?: string | undefined;
|
|
683
|
+
phase?: string | undefined;
|
|
684
|
+
targetAuthScope?: string | undefined;
|
|
685
|
+
authorizationURL?: string | undefined;
|
|
686
|
+
canResume?: boolean | undefined;
|
|
687
|
+
steps?: {
|
|
688
|
+
status?: string | undefined;
|
|
689
|
+
description?: string | undefined;
|
|
690
|
+
id?: string | undefined;
|
|
691
|
+
title?: string | undefined;
|
|
692
|
+
icon?: string | undefined;
|
|
693
|
+
detail?: string | undefined;
|
|
694
|
+
}[] | undefined;
|
|
695
|
+
} | undefined;
|
|
696
|
+
}, {
|
|
697
|
+
flow?: {
|
|
698
|
+
id?: string | undefined;
|
|
699
|
+
key?: string | undefined;
|
|
700
|
+
expiresAt?: string | undefined;
|
|
701
|
+
phase?: string | undefined;
|
|
702
|
+
targetAuthScope?: string | undefined;
|
|
703
|
+
authorizationURL?: string | undefined;
|
|
704
|
+
canResume?: boolean | undefined;
|
|
705
|
+
steps?: {
|
|
706
|
+
status?: string | undefined;
|
|
707
|
+
description?: string | undefined;
|
|
708
|
+
id?: string | undefined;
|
|
709
|
+
title?: string | undefined;
|
|
710
|
+
icon?: string | undefined;
|
|
711
|
+
detail?: string | undefined;
|
|
712
|
+
}[] | undefined;
|
|
713
|
+
} | undefined;
|
|
714
|
+
}>;
|
|
715
|
+
export type OAuthFlowResultProto = z.infer<typeof OAuthFlowResultProtoSchema>;
|
|
460
716
|
//# sourceMappingURL=native.zod.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native.zod.d.ts","sourceRoot":"","sources":["../../../../../../src/gen/channel/app/sdk/v1/native.zod.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"native.zod.d.ts","sourceRoot":"","sources":["../../../../../../src/gen/channel/app/sdk/v1/native.zod.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AC3C,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { FunctionContextProtoSchema } from "./context.zod.js";
|
|
4
4
|
import { FunctionErrorProtoSchema } from "./error.zod.js";
|
|
5
|
+
import { OAuthFlowStepProtoSchema } from "./extension.zod.js";
|
|
5
6
|
export const NativeFunctionRequestProtoSchema = z.object({
|
|
6
7
|
method: z.string().optional(),
|
|
7
8
|
params: z.any().optional(),
|
|
@@ -70,4 +71,30 @@ export const GetAppNotebookVersionsResultProtoSchema = z.object({
|
|
|
70
71
|
errorMessage: z.string().optional(),
|
|
71
72
|
notebooks: z.array(z.lazy(() => AppNotebookVersionProtoSchema)).optional(),
|
|
72
73
|
});
|
|
74
|
+
export const OAuthFlowProtoSchema = z.object({
|
|
75
|
+
id: z.string().optional(),
|
|
76
|
+
phase: z.string().optional(),
|
|
77
|
+
expiresAt: z.string().optional(),
|
|
78
|
+
key: z.string().optional(),
|
|
79
|
+
targetAuthScope: z.string().optional(),
|
|
80
|
+
authorizationURL: z.string().optional(),
|
|
81
|
+
canResume: z.boolean().optional(),
|
|
82
|
+
steps: z.array(OAuthFlowStepProtoSchema).optional(),
|
|
83
|
+
});
|
|
84
|
+
export const GetOAuthFlowParamsProtoSchema = z.object({
|
|
85
|
+
flowId: z.string().optional(),
|
|
86
|
+
language: z.string().optional(),
|
|
87
|
+
});
|
|
88
|
+
export const ResumeOAuthFlowParamsProtoSchema = z.object({
|
|
89
|
+
flowId: z.string().optional(),
|
|
90
|
+
resumeNonce: z.string().optional(),
|
|
91
|
+
language: z.string().optional(),
|
|
92
|
+
});
|
|
93
|
+
export const CancelOAuthFlowParamsProtoSchema = z.object({
|
|
94
|
+
flowId: z.string().optional(),
|
|
95
|
+
language: z.string().optional(),
|
|
96
|
+
});
|
|
97
|
+
export const OAuthFlowResultProtoSchema = z.object({
|
|
98
|
+
flow: z.lazy(() => OAuthFlowProtoSchema).optional(),
|
|
99
|
+
});
|
|
73
100
|
//# sourceMappingURL=native.zod.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native.zod.js","sourceRoot":"","sources":["../../../../../../src/gen/channel/app/sdk/v1/native.zod.ts"],"names":[],"mappings":"AAAA,iEAAiE;AAEjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"native.zod.js","sourceRoot":"","sources":["../../../../../../src/gen/channel/app/sdk/v1/native.zod.ts"],"names":[],"mappings":"AAAA,iEAAiE;AAEjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC1B,OAAO,EAAE,0BAA0B,CAAC,QAAQ,EAAE;IAC9C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAA+C,CAAC;AAGjD,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC1B,KAAK,EAAE,wBAAwB,CAAC,QAAQ,EAAE;CAC3C,CAAgD,CAAC;AAGlD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AoB,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAyC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** The platform supplies this signed target to system-invoked OAuth flow hooks. */
|
|
3
|
+
export declare const OAuthFlowContextSchema: z.ZodObject<{
|
|
4
|
+
appId: z.ZodString;
|
|
5
|
+
channelId: z.ZodString;
|
|
6
|
+
managerId: z.ZodString;
|
|
7
|
+
authScope: z.ZodEnum<["channel", "manager"]>;
|
|
8
|
+
key: z.ZodOptional<z.ZodString>;
|
|
9
|
+
targetManagerId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, "strict", z.ZodTypeAny, {
|
|
11
|
+
channelId: string;
|
|
12
|
+
appId: string;
|
|
13
|
+
managerId: string;
|
|
14
|
+
authScope: "manager" | "channel";
|
|
15
|
+
key?: string | undefined;
|
|
16
|
+
targetManagerId?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
channelId: string;
|
|
19
|
+
appId: string;
|
|
20
|
+
managerId: string;
|
|
21
|
+
authScope: "manager" | "channel";
|
|
22
|
+
key?: string | undefined;
|
|
23
|
+
targetManagerId?: string | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/schemas/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,mFAAmF;AACnF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;EASxB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** The platform supplies this signed target to system-invoked OAuth flow hooks. */
|
|
3
|
+
export const OAuthFlowContextSchema = z
|
|
4
|
+
.object({
|
|
5
|
+
appId: z.string().min(1),
|
|
6
|
+
channelId: z.string().min(1),
|
|
7
|
+
managerId: z.string().min(1),
|
|
8
|
+
authScope: z.enum(["channel", "manager"]),
|
|
9
|
+
key: z.string().optional(),
|
|
10
|
+
targetManagerId: z.string().optional(),
|
|
11
|
+
})
|
|
12
|
+
.strict();
|
|
13
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/schemas/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,mFAAmF;AACnF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC;KACpC,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACzC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC;KACD,MAAM,EAAE,CAAC"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtE,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtE,cAAc,aAAa,CAAC"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtE,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtE,cAAc,aAAa,CAAC"}
|