@channel.io/app-sdk-core 0.3.0 → 0.4.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 +94 -113
- package/dist/extensions/apikey.d.ts.map +1 -1
- package/dist/extensions/apikey.js +26 -25
- package/dist/extensions/apikey.js.map +1 -1
- package/dist/extensions/index.d.ts +2 -1
- package/dist/extensions/index.d.ts.map +1 -1
- package/dist/extensions/index.js +3 -1
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/interfaces/alftask.d.ts +2 -2
- package/dist/extensions/interfaces/alftask.d.ts.map +1 -1
- package/dist/extensions/interfaces/apikey.d.ts +23 -33
- package/dist/extensions/interfaces/apikey.d.ts.map +1 -1
- package/dist/extensions/interfaces/apikey.js +2 -2
- package/dist/extensions/interfaces/apikey.js.map +1 -1
- package/dist/extensions/interfaces/calendar.d.ts +7 -7
- package/dist/extensions/interfaces/calendar.d.ts.map +1 -1
- package/dist/extensions/interfaces/calendar.js.map +1 -1
- package/dist/extensions/interfaces/command.d.ts +3 -3
- package/dist/extensions/interfaces/command.d.ts.map +1 -1
- package/dist/extensions/interfaces/customtab.d.ts +3 -3
- package/dist/extensions/interfaces/customtab.d.ts.map +1 -1
- package/dist/extensions/interfaces/index.d.ts +1 -0
- package/dist/extensions/interfaces/index.d.ts.map +1 -1
- package/dist/extensions/interfaces/index.js +1 -0
- package/dist/extensions/interfaces/index.js.map +1 -1
- package/dist/extensions/interfaces/oauth.d.ts +5 -18
- package/dist/extensions/interfaces/oauth.d.ts.map +1 -1
- package/dist/extensions/interfaces/oauth.js.map +1 -1
- package/dist/extensions/interfaces/order.d.ts +113 -0
- package/dist/extensions/interfaces/order.d.ts.map +1 -0
- package/dist/extensions/interfaces/order.js +13 -0
- package/dist/extensions/interfaces/order.js.map +1 -0
- package/dist/extensions/interfaces/widget.d.ts +3 -3
- package/dist/extensions/interfaces/widget.d.ts.map +1 -1
- package/dist/extensions/order.d.ts +1076 -0
- package/dist/extensions/order.d.ts.map +1 -0
- package/dist/extensions/order.js +114 -0
- package/dist/extensions/order.js.map +1 -0
- package/dist/types/context.d.ts +28 -15
- package/dist/types/context.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,160 +1,141 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* API Key field type
|
|
4
|
-
*/
|
|
5
|
-
export declare const ApiKeyFieldType: z.ZodEnum<["text", "password", "select"]>;
|
|
6
|
-
export type ApiKeyFieldType = z.infer<typeof ApiKeyFieldType>;
|
|
7
|
-
/**
|
|
8
|
-
* API Key field option (for select type)
|
|
9
|
-
*/
|
|
10
|
-
export declare const ApiKeyFieldOptionSchema: z.ZodObject<{
|
|
11
|
-
label: z.ZodString;
|
|
12
|
-
value: z.ZodString;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
value: string;
|
|
15
|
-
label: string;
|
|
16
|
-
}, {
|
|
17
|
-
value: string;
|
|
18
|
-
label: string;
|
|
19
|
-
}>;
|
|
20
|
-
export type ApiKeyFieldOption = z.infer<typeof ApiKeyFieldOptionSchema>;
|
|
21
2
|
/**
|
|
22
3
|
* API Key field schema
|
|
23
4
|
*/
|
|
24
5
|
export declare const ApiKeyFieldSchema: z.ZodObject<{
|
|
25
6
|
name: z.ZodString;
|
|
26
|
-
|
|
27
|
-
type: z.ZodEnum<["text", "password", "select"]>;
|
|
28
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
7
|
+
displayName: z.ZodString;
|
|
30
8
|
description: z.ZodOptional<z.ZodString>;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
label: string;
|
|
37
|
-
}, {
|
|
38
|
-
value: string;
|
|
39
|
-
label: string;
|
|
40
|
-
}>, "many">>;
|
|
9
|
+
required: z.ZodBoolean;
|
|
10
|
+
sensitive: z.ZodBoolean;
|
|
11
|
+
maskType: z.ZodOptional<z.ZodString>;
|
|
12
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
13
|
+
validationRegex: z.ZodOptional<z.ZodString>;
|
|
41
14
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
type: "text" | "password" | "select";
|
|
43
15
|
name: string;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
label: string;
|
|
48
|
-
}[] | undefined;
|
|
49
|
-
required?: boolean | undefined;
|
|
50
|
-
placeholder?: string | undefined;
|
|
16
|
+
displayName: string;
|
|
17
|
+
required: boolean;
|
|
18
|
+
sensitive: boolean;
|
|
51
19
|
description?: string | undefined;
|
|
20
|
+
maskType?: string | undefined;
|
|
21
|
+
placeholder?: string | undefined;
|
|
22
|
+
validationRegex?: string | undefined;
|
|
52
23
|
}, {
|
|
53
|
-
type: "text" | "password" | "select";
|
|
54
24
|
name: string;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
label: string;
|
|
59
|
-
}[] | undefined;
|
|
60
|
-
required?: boolean | undefined;
|
|
61
|
-
placeholder?: string | undefined;
|
|
25
|
+
displayName: string;
|
|
26
|
+
required: boolean;
|
|
27
|
+
sensitive: boolean;
|
|
62
28
|
description?: string | undefined;
|
|
29
|
+
maskType?: string | undefined;
|
|
30
|
+
placeholder?: string | undefined;
|
|
31
|
+
validationRegex?: string | undefined;
|
|
63
32
|
}>;
|
|
64
33
|
export type ApiKeyField = z.infer<typeof ApiKeyFieldSchema>;
|
|
65
34
|
/**
|
|
66
|
-
* API Key
|
|
35
|
+
* Auth scope for API Key extension
|
|
67
36
|
*/
|
|
68
|
-
export declare const
|
|
37
|
+
export declare const ApiKeyAuthScope: z.ZodEnum<["channel", "manager"]>;
|
|
38
|
+
export type ApiKeyAuthScope = z.infer<typeof ApiKeyAuthScope>;
|
|
39
|
+
/**
|
|
40
|
+
* Output schema for extension.apikey.metadata.getAuthConfig
|
|
41
|
+
*/
|
|
42
|
+
export declare const GetAuthConfigOutputSchema: z.ZodObject<{
|
|
43
|
+
authType: z.ZodLiteral<"apiKey">;
|
|
44
|
+
authScope: z.ZodEnum<["channel", "manager"]>;
|
|
69
45
|
fields: z.ZodArray<z.ZodObject<{
|
|
70
46
|
name: z.ZodString;
|
|
71
|
-
|
|
72
|
-
type: z.ZodEnum<["text", "password", "select"]>;
|
|
73
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
47
|
+
displayName: z.ZodString;
|
|
75
48
|
description: z.ZodOptional<z.ZodString>;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
label: string;
|
|
82
|
-
}, {
|
|
83
|
-
value: string;
|
|
84
|
-
label: string;
|
|
85
|
-
}>, "many">>;
|
|
49
|
+
required: z.ZodBoolean;
|
|
50
|
+
sensitive: z.ZodBoolean;
|
|
51
|
+
maskType: z.ZodOptional<z.ZodString>;
|
|
52
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
53
|
+
validationRegex: z.ZodOptional<z.ZodString>;
|
|
86
54
|
}, "strip", z.ZodTypeAny, {
|
|
87
|
-
type: "text" | "password" | "select";
|
|
88
55
|
name: string;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
label: string;
|
|
93
|
-
}[] | undefined;
|
|
94
|
-
required?: boolean | undefined;
|
|
95
|
-
placeholder?: string | undefined;
|
|
56
|
+
displayName: string;
|
|
57
|
+
required: boolean;
|
|
58
|
+
sensitive: boolean;
|
|
96
59
|
description?: string | undefined;
|
|
60
|
+
maskType?: string | undefined;
|
|
61
|
+
placeholder?: string | undefined;
|
|
62
|
+
validationRegex?: string | undefined;
|
|
97
63
|
}, {
|
|
98
|
-
type: "text" | "password" | "select";
|
|
99
64
|
name: string;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
label: string;
|
|
104
|
-
}[] | undefined;
|
|
105
|
-
required?: boolean | undefined;
|
|
106
|
-
placeholder?: string | undefined;
|
|
65
|
+
displayName: string;
|
|
66
|
+
required: boolean;
|
|
67
|
+
sensitive: boolean;
|
|
107
68
|
description?: string | undefined;
|
|
69
|
+
maskType?: string | undefined;
|
|
70
|
+
placeholder?: string | undefined;
|
|
71
|
+
validationRegex?: string | undefined;
|
|
108
72
|
}>, "many">;
|
|
109
|
-
|
|
110
|
-
helpUrl: z.ZodOptional<z.ZodString>;
|
|
73
|
+
providerName: z.ZodString;
|
|
111
74
|
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
authType: "apiKey";
|
|
76
|
+
authScope: "manager" | "channel";
|
|
112
77
|
fields: {
|
|
113
|
-
type: "text" | "password" | "select";
|
|
114
78
|
name: string;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
label: string;
|
|
119
|
-
}[] | undefined;
|
|
120
|
-
required?: boolean | undefined;
|
|
121
|
-
placeholder?: string | undefined;
|
|
79
|
+
displayName: string;
|
|
80
|
+
required: boolean;
|
|
81
|
+
sensitive: boolean;
|
|
122
82
|
description?: string | undefined;
|
|
83
|
+
maskType?: string | undefined;
|
|
84
|
+
placeholder?: string | undefined;
|
|
85
|
+
validationRegex?: string | undefined;
|
|
123
86
|
}[];
|
|
124
|
-
|
|
125
|
-
helpUrl?: string | undefined;
|
|
87
|
+
providerName: string;
|
|
126
88
|
}, {
|
|
89
|
+
authType: "apiKey";
|
|
90
|
+
authScope: "manager" | "channel";
|
|
127
91
|
fields: {
|
|
128
|
-
type: "text" | "password" | "select";
|
|
129
92
|
name: string;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
label: string;
|
|
134
|
-
}[] | undefined;
|
|
135
|
-
required?: boolean | undefined;
|
|
136
|
-
placeholder?: string | undefined;
|
|
93
|
+
displayName: string;
|
|
94
|
+
required: boolean;
|
|
95
|
+
sensitive: boolean;
|
|
137
96
|
description?: string | undefined;
|
|
97
|
+
maskType?: string | undefined;
|
|
98
|
+
placeholder?: string | undefined;
|
|
99
|
+
validationRegex?: string | undefined;
|
|
138
100
|
}[];
|
|
139
|
-
|
|
140
|
-
helpUrl?: string | undefined;
|
|
101
|
+
providerName: string;
|
|
141
102
|
}>;
|
|
142
|
-
export type
|
|
103
|
+
export type GetAuthConfigOutput = z.infer<typeof GetAuthConfigOutputSchema>;
|
|
143
104
|
/**
|
|
144
|
-
*
|
|
105
|
+
* Output schema for extension.apikey.validation.validateCredentials
|
|
145
106
|
*/
|
|
146
|
-
export declare const
|
|
107
|
+
export declare const ValidateCredentialsOutputSchema: z.ZodObject<{
|
|
147
108
|
valid: z.ZodBoolean;
|
|
148
|
-
|
|
149
|
-
|
|
109
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
110
|
+
user_info: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
email: z.ZodOptional<z.ZodString>;
|
|
112
|
+
name: z.ZodOptional<z.ZodString>;
|
|
113
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
name?: string | undefined;
|
|
116
|
+
email?: string | undefined;
|
|
117
|
+
user_id?: string | undefined;
|
|
118
|
+
}, {
|
|
119
|
+
name?: string | undefined;
|
|
120
|
+
email?: string | undefined;
|
|
121
|
+
user_id?: string | undefined;
|
|
122
|
+
}>>;
|
|
150
123
|
}, "strip", z.ZodTypeAny, {
|
|
151
124
|
valid: boolean;
|
|
152
|
-
|
|
153
|
-
|
|
125
|
+
error_message?: string | undefined;
|
|
126
|
+
user_info?: {
|
|
127
|
+
name?: string | undefined;
|
|
128
|
+
email?: string | undefined;
|
|
129
|
+
user_id?: string | undefined;
|
|
130
|
+
} | undefined;
|
|
154
131
|
}, {
|
|
155
132
|
valid: boolean;
|
|
156
|
-
|
|
157
|
-
|
|
133
|
+
error_message?: string | undefined;
|
|
134
|
+
user_info?: {
|
|
135
|
+
name?: string | undefined;
|
|
136
|
+
email?: string | undefined;
|
|
137
|
+
user_id?: string | undefined;
|
|
138
|
+
} | undefined;
|
|
158
139
|
}>;
|
|
159
|
-
export type
|
|
140
|
+
export type ValidateCredentialsOutput = z.infer<typeof ValidateCredentialsOutputSchema>;
|
|
160
141
|
//# sourceMappingURL=apikey.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikey.d.ts","sourceRoot":"","sources":["../../src/extensions/apikey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"apikey.d.ts","sourceRoot":"","sources":["../../src/extensions/apikey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,eAAe,mCAAiC,CAAC;AAC9D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* API Key field type
|
|
4
|
-
*/
|
|
5
|
-
export const ApiKeyFieldType = z.enum(["text", "password", "select"]);
|
|
6
|
-
/**
|
|
7
|
-
* API Key field option (for select type)
|
|
8
|
-
*/
|
|
9
|
-
export const ApiKeyFieldOptionSchema = z.object({
|
|
10
|
-
label: z.string(),
|
|
11
|
-
value: z.string(),
|
|
12
|
-
});
|
|
13
2
|
/**
|
|
14
3
|
* API Key field schema
|
|
15
4
|
*/
|
|
16
5
|
export const ApiKeyFieldSchema = z.object({
|
|
17
6
|
name: z.string(),
|
|
18
|
-
|
|
19
|
-
type: ApiKeyFieldType,
|
|
20
|
-
required: z.boolean().optional(),
|
|
21
|
-
placeholder: z.string().optional(),
|
|
7
|
+
displayName: z.string(),
|
|
22
8
|
description: z.string().optional(),
|
|
23
|
-
|
|
9
|
+
required: z.boolean(),
|
|
10
|
+
sensitive: z.boolean(),
|
|
11
|
+
maskType: z.string().optional(),
|
|
12
|
+
placeholder: z.string().optional(),
|
|
13
|
+
validationRegex: z.string().optional(),
|
|
24
14
|
});
|
|
25
15
|
/**
|
|
26
|
-
* API Key
|
|
16
|
+
* Auth scope for API Key extension
|
|
17
|
+
*/
|
|
18
|
+
export const ApiKeyAuthScope = z.enum(["channel", "manager"]);
|
|
19
|
+
/**
|
|
20
|
+
* Output schema for extension.apikey.metadata.getAuthConfig
|
|
27
21
|
*/
|
|
28
|
-
export const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
export const GetAuthConfigOutputSchema = z.object({
|
|
23
|
+
authType: z.literal("apiKey"),
|
|
24
|
+
authScope: ApiKeyAuthScope,
|
|
25
|
+
fields: z.array(ApiKeyFieldSchema).min(1),
|
|
26
|
+
providerName: z.string(),
|
|
32
27
|
});
|
|
33
28
|
/**
|
|
34
|
-
*
|
|
29
|
+
* Output schema for extension.apikey.validation.validateCredentials
|
|
35
30
|
*/
|
|
36
|
-
export const
|
|
31
|
+
export const ValidateCredentialsOutputSchema = z.object({
|
|
37
32
|
valid: z.boolean(),
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
error_message: z.string().optional(),
|
|
34
|
+
user_info: z
|
|
35
|
+
.object({
|
|
36
|
+
email: z.string().optional(),
|
|
37
|
+
name: z.string().optional(),
|
|
38
|
+
user_id: z.string().optional(),
|
|
39
|
+
})
|
|
40
|
+
.optional(),
|
|
40
41
|
});
|
|
41
42
|
//# sourceMappingURL=apikey.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikey.js","sourceRoot":"","sources":["../../src/extensions/apikey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"apikey.js","sourceRoot":"","sources":["../../src/extensions/apikey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAIH;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;AAG9D;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IAC7B,SAAS,EAAE,eAAe;IAC1B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACzC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC;AAIH;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;IAClB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,SAAS,EAAE,CAAC;SACT,MAAM,CAAC;QACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export { OAuthConfigSchema, CredentialValidationResultSchema, type OAuthConfig, type CredentialValidationResult, } from "./oauth.js";
|
|
2
|
-
export {
|
|
2
|
+
export { ApiKeyFieldSchema, ApiKeyAuthScope, GetAuthConfigOutputSchema, ValidateCredentialsOutputSchema, type ApiKeyField, type GetAuthConfigOutput, type ValidateCredentialsOutput, } from "./apikey.js";
|
|
3
3
|
export { CalendarSchema, EventTypeSchema, TimeSlotSchema, AttendeeSchema, BookingStatus, BookingSchema, type Calendar, type EventType, type TimeSlot, type Attendee, type Booking, } from "./calendar.js";
|
|
4
4
|
export { CommandSuggestionSchema, CommandResultActionType, CommandResultSchema, type CommandSuggestion, type CommandResult, } from "./command.js";
|
|
5
5
|
export { WidgetScope, WidgetType, NameDescI18nSchema, WidgetConfigSchema, WidgetActionResultSchema, type NameDescI18n, type WidgetConfig, type WidgetActionResult, } from "./widget.js";
|
|
6
6
|
export { CustomTabNameI18nSchema, CustomTabConfigSchema, CustomTabContentSchema, type CustomTabNameI18n, type CustomTabConfig, type CustomTabContent, } from "./customtab.js";
|
|
7
7
|
export { MemoryDefinitionSchema, WorkflowNodeSchema, PredefinedTaskSchema, GetAlfTasksResponseSchema, type MemoryDefinition, type WorkflowNode, type PredefinedTask, type GetAlfTasksResponse, } from "./alftask.js";
|
|
8
|
+
export { AddressSchema, BankAccountSchema, DefectInfoSchema, ClaimReasonSchema, ClaimabilitySchema, ClaimSchema, OrderItemSchema, PaymentSchema, FulfillmentSchema, OrderSchema, FieldConfigSchema, OperationOptionsSchema, AppCapabilitiesSchema, type Address, type BankAccount, type DefectInfo, type ClaimReason, type Claimability, type Claim, type OrderItem, type Payment, type Fulfillment, type Order, type FieldConfig, type OperationOptions, type AppCapabilities, } from "./order.js";
|
|
8
9
|
export * from "./interfaces/index.js";
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/extensions/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,gCAAgC,EAChC,KAAK,WAAW,EAChB,KAAK,0BAA0B,GAChC,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/extensions/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,gCAAgC,EAChC,KAAK,WAAW,EAChB,KAAK,0BAA0B,GAChC,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,yBAAyB,EACzB,+BAA+B,EAC/B,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB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Y,CAAC;AAGpB,cAAc,uBAAuB,CAAC"}
|
package/dist/extensions/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// OAuth Extension Schemas (v1)
|
|
2
2
|
export { OAuthConfigSchema, CredentialValidationResultSchema, } from "./oauth.js";
|
|
3
3
|
// API Key Extension Schemas (v1)
|
|
4
|
-
export {
|
|
4
|
+
export { ApiKeyFieldSchema, ApiKeyAuthScope, GetAuthConfigOutputSchema, ValidateCredentialsOutputSchema, } from "./apikey.js";
|
|
5
5
|
// Calendar Extension Schemas (v1)
|
|
6
6
|
export { CalendarSchema, EventTypeSchema, TimeSlotSchema, AttendeeSchema, BookingStatus, BookingSchema, } from "./calendar.js";
|
|
7
7
|
// Command Extension Schemas (v1)
|
|
@@ -12,6 +12,8 @@ export { WidgetScope, WidgetType, NameDescI18nSchema, WidgetConfigSchema, Widget
|
|
|
12
12
|
export { CustomTabNameI18nSchema, CustomTabConfigSchema, CustomTabContentSchema, } from "./customtab.js";
|
|
13
13
|
// ALF Task Extension Schemas (v1)
|
|
14
14
|
export { MemoryDefinitionSchema, WorkflowNodeSchema, PredefinedTaskSchema, GetAlfTasksResponseSchema, } from "./alftask.js";
|
|
15
|
+
// Order Extension Schemas (v1)
|
|
16
|
+
export { AddressSchema, BankAccountSchema, DefectInfoSchema, ClaimReasonSchema, ClaimabilitySchema, ClaimSchema, OrderItemSchema, PaymentSchema, FulfillmentSchema, OrderSchema, FieldConfigSchema, OperationOptionsSchema, AppCapabilitiesSchema, } from "./order.js";
|
|
15
17
|
// Extension Interfaces (for implementing extensions)
|
|
16
18
|
export * from "./interfaces/index.js";
|
|
17
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/extensions/index.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,OAAO,EACL,iBAAiB,EACjB,gCAAgC,GAGjC,MAAM,YAAY,CAAC;AAEpB,iCAAiC;AACjC,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/extensions/index.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,OAAO,EACL,iBAAiB,EACjB,gCAAgC,GAGjC,MAAM,YAAY,CAAC;AAEpB,iCAAiC;AACjC,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,yBAAyB,EACzB,+BAA+B,GAIhC,MAAM,aAAa,CAAC;AAErB,kCAAkC;AAClC,OAAO,EACL,cAAc,EACd,eAAe,EACf,cAAc,EACd,cAAc,EACd,aAAa,EACb,aAAa,GAMd,MAAM,eAAe,CAAC;AAEvB,iCAAiC;AACjC,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,GAGpB,MAAM,cAAc,CAAC;AAEtB,gCAAgC;AAChC,OAAO,EACL,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,GAIzB,MAAM,aAAa,CAAC;AAErB,oCAAoC;AACpC,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,GAIvB,MAAM,gBAAgB,CAAC;AAExB,kCAAkC;AAClC,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,GAK1B,MAAM,cAAc,CAAC;AAEtB,+BAA+B;AAC/B,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,GActB,MAAM,YAAY,CAAC;AAEpB,qDAAqD;AACrD,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GetAlfTasksResponse } from "../alftask.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { Context } from "../../types/context.js";
|
|
3
3
|
/**
|
|
4
4
|
* ALF Task Extension Input Types
|
|
5
5
|
*/
|
|
@@ -47,7 +47,7 @@ export interface AlfTaskExtensionInterface {
|
|
|
47
47
|
*
|
|
48
48
|
* @returns List of predefined task configurations
|
|
49
49
|
*/
|
|
50
|
-
getTasks(ctx:
|
|
50
|
+
getTasks(ctx: Context, params: GetAlfTasksInput): Promise<GetAlfTasksResponse>;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* ALF Task Extension Function Names
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alftask.d.ts","sourceRoot":"","sources":["../../../src/extensions/interfaces/alftask.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"alftask.d.ts","sourceRoot":"","sources":["../../../src/extensions/interfaces/alftask.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,8BAA8B;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;;;;OAMG;IACH,QAAQ,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAChF;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB;;CAEvB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { GetAuthConfigOutput, ValidateCredentialsOutput } from "../apikey.js";
|
|
2
|
+
import type { Context } from "../../types/context.js";
|
|
3
3
|
/**
|
|
4
4
|
* API Key Extension Interface
|
|
5
5
|
*
|
|
@@ -7,28 +7,26 @@ import type { ExtensionContext } from "./oauth.js";
|
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```typescript
|
|
10
|
-
* @Extension({ name: "apikey"
|
|
10
|
+
* @Extension({ name: "apikey" })
|
|
11
11
|
* export class MyApiKeyExtension implements ApiKeyExtensionInterface {
|
|
12
|
-
* @Func("
|
|
13
|
-
* @OutputSchema(
|
|
14
|
-
* async
|
|
12
|
+
* @Func("metadata.getAuthConfig")
|
|
13
|
+
* @OutputSchema(GetAuthConfigOutputSchema)
|
|
14
|
+
* async getAuthConfig(ctx: Context): Promise<GetAuthConfigOutput> {
|
|
15
15
|
* return {
|
|
16
|
+
* authType: "apiKey",
|
|
17
|
+
* authScope: "channel",
|
|
18
|
+
* providerName: "My Provider",
|
|
16
19
|
* fields: [
|
|
17
|
-
* { name: "apiKey",
|
|
18
|
-
* { name: "region", label: "Region", type: "select", options: [...] },
|
|
20
|
+
* { name: "apiKey", displayName: "API Key", required: true, sensitive: true },
|
|
19
21
|
* ],
|
|
20
|
-
* instructions: "Get your API key from the settings page",
|
|
21
22
|
* };
|
|
22
23
|
* }
|
|
23
24
|
*
|
|
24
|
-
* @Func("
|
|
25
|
-
* @
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* params: { credentials: Record<string, string> }
|
|
30
|
-
* ): Promise<ApiKeyValidationResult> {
|
|
31
|
-
* // Validate the API key
|
|
25
|
+
* @Func("validation.validateCredentials")
|
|
26
|
+
* @OutputSchema(ValidateCredentialsOutputSchema)
|
|
27
|
+
* async validateCredentials(
|
|
28
|
+
* ctx: Context,
|
|
29
|
+
* ): Promise<ValidateCredentialsOutput> {
|
|
32
30
|
* return { valid: true };
|
|
33
31
|
* }
|
|
34
32
|
* }
|
|
@@ -36,31 +34,23 @@ import type { ExtensionContext } from "./oauth.js";
|
|
|
36
34
|
*/
|
|
37
35
|
export interface ApiKeyExtensionInterface {
|
|
38
36
|
/**
|
|
39
|
-
*
|
|
37
|
+
* Return API key field configuration for the provider.
|
|
40
38
|
*
|
|
41
|
-
* Function name: "
|
|
42
|
-
*
|
|
43
|
-
* @returns Configuration for the API key input form
|
|
39
|
+
* Function name: "metadata.getAuthConfig"
|
|
44
40
|
*/
|
|
45
|
-
|
|
41
|
+
getAuthConfig(ctx: Context): Promise<GetAuthConfigOutput>;
|
|
46
42
|
/**
|
|
47
|
-
* Validate
|
|
48
|
-
*
|
|
49
|
-
* Function name: "apikey.validateCredential"
|
|
43
|
+
* Validate submitted credentials (optional but recommended).
|
|
50
44
|
*
|
|
51
|
-
*
|
|
52
|
-
* @param params - Contains the credentials to validate (key-value pairs)
|
|
53
|
-
* @returns Validation result
|
|
45
|
+
* Function name: "validation.validateCredentials"
|
|
54
46
|
*/
|
|
55
|
-
|
|
56
|
-
credentials: Record<string, string>;
|
|
57
|
-
}): Promise<ApiKeyValidationResult>;
|
|
47
|
+
validateCredentials?(ctx: Context): Promise<ValidateCredentialsOutput>;
|
|
58
48
|
}
|
|
59
49
|
/**
|
|
60
50
|
* API Key Extension Function Names
|
|
61
51
|
*/
|
|
62
52
|
export declare const ApiKeyFunctionNames: {
|
|
63
|
-
readonly
|
|
64
|
-
readonly
|
|
53
|
+
readonly getAuthConfig: "metadata.getAuthConfig";
|
|
54
|
+
readonly validateCredentials: "validation.validateCredentials";
|
|
65
55
|
};
|
|
66
56
|
//# sourceMappingURL=apikey.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikey.d.ts","sourceRoot":"","sources":["../../../src/extensions/interfaces/apikey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"apikey.d.ts","sourceRoot":"","sources":["../../../src/extensions/interfaces/apikey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE1D;;;;OAIG;IACH,mBAAmB,CAAC,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;CACxE;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* API Key Extension Function Names
|
|
3
3
|
*/
|
|
4
4
|
export const ApiKeyFunctionNames = {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
getAuthConfig: "metadata.getAuthConfig",
|
|
6
|
+
validateCredentials: "validation.validateCredentials",
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=apikey.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikey.js","sourceRoot":"","sources":["../../../src/extensions/interfaces/apikey.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"apikey.js","sourceRoot":"","sources":["../../../src/extensions/interfaces/apikey.ts"],"names":[],"mappings":"AAmDA;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,aAAa,EAAE,wBAAwB;IACvC,mBAAmB,EAAE,gCAAgC;CAC7C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Calendar, EventType, TimeSlot, Attendee, Booking } from "../calendar.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { Context } from "../../types/context.js";
|
|
3
3
|
/**
|
|
4
4
|
* Calendar Extension Input Types
|
|
5
5
|
*/
|
|
@@ -107,37 +107,37 @@ export interface CalendarExtensionInterface {
|
|
|
107
107
|
*
|
|
108
108
|
* Function name: "calendar.listCalendars"
|
|
109
109
|
*/
|
|
110
|
-
listCalendars(ctx:
|
|
110
|
+
listCalendars(ctx: Context, params: ListCalendarsInput): Promise<ListCalendarsOutput>;
|
|
111
111
|
/**
|
|
112
112
|
* List event types (meeting types)
|
|
113
113
|
*
|
|
114
114
|
* Function name: "calendar.listEventTypes"
|
|
115
115
|
*/
|
|
116
|
-
listEventTypes(ctx:
|
|
116
|
+
listEventTypes(ctx: Context, params: ListEventTypesInput): Promise<ListEventTypesOutput>;
|
|
117
117
|
/**
|
|
118
118
|
* Get available time slots for booking
|
|
119
119
|
*
|
|
120
120
|
* Function name: "calendar.getAvailability"
|
|
121
121
|
*/
|
|
122
|
-
getAvailability(ctx:
|
|
122
|
+
getAvailability(ctx: Context, params: GetAvailabilityInput): Promise<GetAvailabilityOutput>;
|
|
123
123
|
/**
|
|
124
124
|
* Create a new booking
|
|
125
125
|
*
|
|
126
126
|
* Function name: "calendar.createBooking"
|
|
127
127
|
*/
|
|
128
|
-
createBooking(ctx:
|
|
128
|
+
createBooking(ctx: Context, params: CreateBookingInput): Promise<Booking>;
|
|
129
129
|
/**
|
|
130
130
|
* Cancel an existing booking
|
|
131
131
|
*
|
|
132
132
|
* Function name: "calendar.cancelBooking"
|
|
133
133
|
*/
|
|
134
|
-
cancelBooking(ctx:
|
|
134
|
+
cancelBooking(ctx: Context, params: CancelBookingInput): Promise<CancelBookingOutput>;
|
|
135
135
|
/**
|
|
136
136
|
* Get booking details
|
|
137
137
|
*
|
|
138
138
|
* Function name: "calendar.getBooking"
|
|
139
139
|
*/
|
|
140
|
-
getBooking(ctx:
|
|
140
|
+
getBooking(ctx: Context, params: GetBookingInput): Promise<Booking>;
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
143
143
|
* Calendar Extension Function Names
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/extensions/interfaces/calendar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ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endar.js","sourceRoot":"","sources":["../../../src/extensions/interfaces/calendar.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../src/extensions/interfaces/calendar.ts"],"names":[],"mappings":"AA8JA;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,aAAa,EAAE,wBAAwB;IACvC,cAAc,EAAE,yBAAyB;IACzC,eAAe,EAAE,0BAA0B;IAC3C,aAAa,EAAE,wBAAwB;IACvC,aAAa,EAAE,wBAAwB;IACvC,UAAU,EAAE,qBAAqB;CACzB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CommandSuggestion, CommandResult } from "../command.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { Context } from "../../types/context.js";
|
|
3
3
|
/**
|
|
4
4
|
* Command Extension Input Types
|
|
5
5
|
*/
|
|
@@ -72,7 +72,7 @@ export interface CommandExtensionInterface {
|
|
|
72
72
|
*
|
|
73
73
|
* Function name: "command.getSuggestions"
|
|
74
74
|
*/
|
|
75
|
-
getSuggestions(ctx:
|
|
75
|
+
getSuggestions(ctx: Context, params: GetSuggestionsInput): Promise<GetSuggestionsOutput>;
|
|
76
76
|
/**
|
|
77
77
|
* Execute a command
|
|
78
78
|
*
|
|
@@ -80,7 +80,7 @@ export interface CommandExtensionInterface {
|
|
|
80
80
|
*
|
|
81
81
|
* @returns Action to perform (sendMessage, insertText, openWam, openUrl, or none)
|
|
82
82
|
*/
|
|
83
|
-
execute(ctx:
|
|
83
|
+
execute(ctx: Context, params: ExecuteCommandInput): Promise<CommandResult>;
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
86
|
* Command Extension Function Names
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/extensions/interfaces/command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/extensions/interfaces/command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,kCAAkC;IAClC,WAAW,EAAE,iBAAiB,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,mBAAmB;IAClC,sCAAsC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,uBAAuB;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,cAAc,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEzF;;;;;;OAMG;IACH,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CAC5E;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC"}
|