@zhafron/opencode-kiro-auth 1.6.1 → 1.6.3
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/constants.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const AccountSelectionStrategySchema: z.ZodEnum<["sticky", "round-robin", "lowest-usage"]>;
|
|
3
3
|
export type AccountSelectionStrategy = z.infer<typeof AccountSelectionStrategySchema>;
|
|
4
|
-
export declare const RegionSchema: z.ZodEnum<["us-east-1", "us-west-2"]>;
|
|
4
|
+
export declare const RegionSchema: z.ZodEnum<["us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-2", "ap-southeast-3", "ap-southeast-5", "ap-southeast-4", "ap-south-1", "ap-southeast-6", "ap-northeast-3", "ap-northeast-2", "ap-southeast-1", "ap-southeast-2", "ap-east-2", "ap-southeast-7", "ap-northeast-1", "ca-central-1", "ca-west-1", "eu-central-1", "eu-west-1", "eu-west-2", "eu-south-1", "eu-west-3", "eu-south-2", "eu-north-1", "eu-central-2", "il-central-1", "mx-central-1", "me-south-1", "me-central-1", "sa-east-1"]>;
|
|
5
5
|
export type Region = z.infer<typeof RegionSchema>;
|
|
6
6
|
export declare const KiroConfigSchema: z.ZodObject<{
|
|
7
7
|
$schema: z.ZodOptional<z.ZodString>;
|
|
8
8
|
idc_start_url: z.ZodOptional<z.ZodString>;
|
|
9
9
|
account_selection_strategy: z.ZodDefault<z.ZodEnum<["sticky", "round-robin", "lowest-usage"]>>;
|
|
10
|
-
default_region: z.ZodDefault<z.ZodEnum<["us-east-1", "us-west-2"]>>;
|
|
10
|
+
default_region: z.ZodDefault<z.ZodEnum<["us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-2", "ap-southeast-3", "ap-southeast-5", "ap-southeast-4", "ap-south-1", "ap-southeast-6", "ap-northeast-3", "ap-northeast-2", "ap-southeast-1", "ap-southeast-2", "ap-east-2", "ap-southeast-7", "ap-northeast-1", "ca-central-1", "ca-west-1", "eu-central-1", "eu-west-1", "eu-west-2", "eu-south-1", "eu-west-3", "eu-south-2", "eu-north-1", "eu-central-2", "il-central-1", "mx-central-1", "me-south-1", "me-central-1", "sa-east-1"]>>;
|
|
11
11
|
rate_limit_retry_delay_ms: z.ZodDefault<z.ZodNumber>;
|
|
12
12
|
rate_limit_max_retries: z.ZodDefault<z.ZodNumber>;
|
|
13
13
|
max_request_iterations: z.ZodDefault<z.ZodNumber>;
|
|
@@ -21,7 +21,7 @@ export declare const KiroConfigSchema: z.ZodObject<{
|
|
|
21
21
|
enable_log_api_request: z.ZodDefault<z.ZodBoolean>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
account_selection_strategy: "sticky" | "round-robin" | "lowest-usage";
|
|
24
|
-
default_region: "us-east-1" | "us-west-2";
|
|
24
|
+
default_region: "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "af-south-1" | "ap-east-1" | "ap-south-2" | "ap-southeast-3" | "ap-southeast-5" | "ap-southeast-4" | "ap-south-1" | "ap-southeast-6" | "ap-northeast-3" | "ap-northeast-2" | "ap-southeast-1" | "ap-southeast-2" | "ap-east-2" | "ap-southeast-7" | "ap-northeast-1" | "ca-central-1" | "ca-west-1" | "eu-central-1" | "eu-west-1" | "eu-west-2" | "eu-south-1" | "eu-west-3" | "eu-south-2" | "eu-north-1" | "eu-central-2" | "il-central-1" | "mx-central-1" | "me-south-1" | "me-central-1" | "sa-east-1";
|
|
25
25
|
rate_limit_retry_delay_ms: number;
|
|
26
26
|
rate_limit_max_retries: number;
|
|
27
27
|
max_request_iterations: number;
|
|
@@ -39,7 +39,7 @@ export declare const KiroConfigSchema: z.ZodObject<{
|
|
|
39
39
|
$schema?: string | undefined;
|
|
40
40
|
idc_start_url?: string | undefined;
|
|
41
41
|
account_selection_strategy?: "sticky" | "round-robin" | "lowest-usage" | undefined;
|
|
42
|
-
default_region?: "us-east-1" | "us-west-2" | undefined;
|
|
42
|
+
default_region?: "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "af-south-1" | "ap-east-1" | "ap-south-2" | "ap-southeast-3" | "ap-southeast-5" | "ap-southeast-4" | "ap-south-1" | "ap-southeast-6" | "ap-northeast-3" | "ap-northeast-2" | "ap-southeast-1" | "ap-southeast-2" | "ap-east-2" | "ap-southeast-7" | "ap-northeast-1" | "ca-central-1" | "ca-west-1" | "eu-central-1" | "eu-west-1" | "eu-west-2" | "eu-south-1" | "eu-west-3" | "eu-south-2" | "eu-north-1" | "eu-central-2" | "il-central-1" | "mx-central-1" | "me-south-1" | "me-central-1" | "sa-east-1" | undefined;
|
|
43
43
|
rate_limit_retry_delay_ms?: number | undefined;
|
|
44
44
|
rate_limit_max_retries?: number | undefined;
|
|
45
45
|
max_request_iterations?: number | undefined;
|
|
@@ -1,6 +1,41 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export const AccountSelectionStrategySchema = z.enum(['sticky', 'round-robin', 'lowest-usage']);
|
|
3
|
-
export const RegionSchema = z.enum([
|
|
3
|
+
export const RegionSchema = z.enum([
|
|
4
|
+
'us-east-1',
|
|
5
|
+
'us-east-2',
|
|
6
|
+
'us-west-1',
|
|
7
|
+
'us-west-2',
|
|
8
|
+
'af-south-1',
|
|
9
|
+
'ap-east-1',
|
|
10
|
+
'ap-south-2',
|
|
11
|
+
'ap-southeast-3',
|
|
12
|
+
'ap-southeast-5',
|
|
13
|
+
'ap-southeast-4',
|
|
14
|
+
'ap-south-1',
|
|
15
|
+
'ap-southeast-6',
|
|
16
|
+
'ap-northeast-3',
|
|
17
|
+
'ap-northeast-2',
|
|
18
|
+
'ap-southeast-1',
|
|
19
|
+
'ap-southeast-2',
|
|
20
|
+
'ap-east-2',
|
|
21
|
+
'ap-southeast-7',
|
|
22
|
+
'ap-northeast-1',
|
|
23
|
+
'ca-central-1',
|
|
24
|
+
'ca-west-1',
|
|
25
|
+
'eu-central-1',
|
|
26
|
+
'eu-west-1',
|
|
27
|
+
'eu-west-2',
|
|
28
|
+
'eu-south-1',
|
|
29
|
+
'eu-west-3',
|
|
30
|
+
'eu-south-2',
|
|
31
|
+
'eu-north-1',
|
|
32
|
+
'eu-central-2',
|
|
33
|
+
'il-central-1',
|
|
34
|
+
'mx-central-1',
|
|
35
|
+
'me-south-1',
|
|
36
|
+
'me-central-1',
|
|
37
|
+
'sa-east-1'
|
|
38
|
+
]);
|
|
4
39
|
export const KiroConfigSchema = z.object({
|
|
5
40
|
$schema: z.string().optional(),
|
|
6
41
|
idc_start_url: z.string().url().optional(),
|
package/dist/plugin/types.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { RegionSchema } from './config/schema';
|
|
1
3
|
export type KiroAuthMethod = 'idc' | 'desktop';
|
|
2
|
-
export type KiroRegion =
|
|
4
|
+
export type KiroRegion = z.infer<typeof RegionSchema>;
|
|
3
5
|
export interface KiroAuthDetails {
|
|
4
6
|
refresh: string;
|
|
5
7
|
access: string;
|