@dagger.io/dagger 0.19.3 → 0.19.5
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/src/api/client.gen.d.ts +143 -6
- package/dist/src/api/client.gen.d.ts.map +1 -1
- package/dist/src/api/client.gen.js +204 -6
- package/dist/src/module/decorators.d.ts.map +1 -1
- package/dist/src/module/entrypoint/register.d.ts.map +1 -1
- package/dist/src/module/entrypoint/register.js +37 -9
- package/dist/src/module/introspector/dagger_module/argument.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/argument.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/argument.js +9 -2
- package/dist/src/module/introspector/dagger_module/enum.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/enum.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/enum.js +5 -1
- package/dist/src/module/introspector/dagger_module/enumBase.d.ts +1 -0
- package/dist/src/module/introspector/dagger_module/enumBase.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/enumClass.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/enumClass.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/enumClass.js +5 -1
- package/dist/src/module/introspector/dagger_module/function.d.ts +4 -2
- package/dist/src/module/introspector/dagger_module/function.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/function.js +19 -10
- package/dist/src/module/introspector/dagger_module/interfaceFunction.d.ts +4 -1
- package/dist/src/module/introspector/dagger_module/interfaceFunction.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/interfaceFunction.js +8 -3
- package/dist/src/module/introspector/dagger_module/object.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/object.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/object.js +5 -1
- package/dist/src/module/introspector/dagger_module/objectBase.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/objectBase.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/property.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/property.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/property.js +5 -1
- package/dist/src/module/introspector/dagger_module/typeObject.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/typeObject.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/typeObject.js +5 -1
- package/dist/src/module/introspector/dagger_module/typeObjectProperty.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/typeObjectProperty.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/typeObjectProperty.js +5 -1
- package/dist/src/module/introspector/typescript_module/ast.d.ts +5 -0
- package/dist/src/module/introspector/typescript_module/ast.d.ts.map +1 -1
- package/dist/src/module/introspector/typescript_module/ast.js +24 -1
- package/dist/src/module/registry.d.ts +14 -0
- package/dist/src/module/registry.d.ts.map +1 -1
- package/dist/src/provisioning/default.d.ts +1 -1
- package/dist/src/provisioning/default.js +1 -1
- package/package.json +15 -15
|
@@ -17,11 +17,13 @@ declare class BaseClient {
|
|
|
17
17
|
export type AddressDirectoryOpts = {
|
|
18
18
|
exclude?: string[];
|
|
19
19
|
include?: string[];
|
|
20
|
+
gitignore?: boolean;
|
|
20
21
|
noCache?: boolean;
|
|
21
22
|
};
|
|
22
23
|
export type AddressFileOpts = {
|
|
23
24
|
exclude?: string[];
|
|
24
25
|
include?: string[];
|
|
26
|
+
gitignore?: boolean;
|
|
25
27
|
noCache?: boolean;
|
|
26
28
|
};
|
|
27
29
|
/**
|
|
@@ -296,6 +298,10 @@ export type ContainerWithDirectoryOpts = {
|
|
|
296
298
|
* Patterns to include in the written directory (e.g. ["*.go", "go.mod", "go.sum"]).
|
|
297
299
|
*/
|
|
298
300
|
include?: string[];
|
|
301
|
+
/**
|
|
302
|
+
* Apply .gitignore rules when writing the directory.
|
|
303
|
+
*/
|
|
304
|
+
gitignore?: boolean;
|
|
299
305
|
/**
|
|
300
306
|
* A user:group to set for the directory and its contents.
|
|
301
307
|
*
|
|
@@ -600,6 +606,10 @@ export type CurrentModuleWorkdirOpts = {
|
|
|
600
606
|
* Include only artifacts that match the given pattern (e.g., ["app/", "package.*"]).
|
|
601
607
|
*/
|
|
602
608
|
include?: string[];
|
|
609
|
+
/**
|
|
610
|
+
* Apply .gitignore filter rules inside the directory
|
|
611
|
+
*/
|
|
612
|
+
gitignore?: boolean;
|
|
603
613
|
};
|
|
604
614
|
/**
|
|
605
615
|
* The `CurrentModuleID` scalar type represents an identifier for an object of type CurrentModule.
|
|
@@ -684,6 +694,10 @@ export type DirectoryFilterOpts = {
|
|
|
684
694
|
* If set, only paths matching one of these glob patterns is included in the new snapshot. Example: (e.g., ["app/", "package.*"]).
|
|
685
695
|
*/
|
|
686
696
|
include?: string[];
|
|
697
|
+
/**
|
|
698
|
+
* If set, apply .gitignore rules when filtering the directory.
|
|
699
|
+
*/
|
|
700
|
+
gitignore?: boolean;
|
|
687
701
|
};
|
|
688
702
|
export type DirectorySearchOpts = {
|
|
689
703
|
/**
|
|
@@ -758,6 +772,10 @@ export type DirectoryWithDirectoryOpts = {
|
|
|
758
772
|
* Include only artifacts that match the given pattern (e.g., ["app/", "package.*"]).
|
|
759
773
|
*/
|
|
760
774
|
include?: string[];
|
|
775
|
+
/**
|
|
776
|
+
* Apply .gitignore filter rules inside the directory
|
|
777
|
+
*/
|
|
778
|
+
gitignore?: boolean;
|
|
761
779
|
/**
|
|
762
780
|
* A user:group to set for the copied directory and its contents.
|
|
763
781
|
*
|
|
@@ -918,6 +936,8 @@ export type FieldTypeDefID = string & {
|
|
|
918
936
|
export type FileAsEnvFileOpts = {
|
|
919
937
|
/**
|
|
920
938
|
* Replace "${VAR}" or "$VAR" with the value of other vars
|
|
939
|
+
*
|
|
940
|
+
* @deprecated Variable expansion is now enabled by default
|
|
921
941
|
*/
|
|
922
942
|
expand?: boolean;
|
|
923
943
|
};
|
|
@@ -1016,6 +1036,22 @@ export type FunctionWithArgOpts = {
|
|
|
1016
1036
|
* The source map for the argument definition.
|
|
1017
1037
|
*/
|
|
1018
1038
|
sourceMap?: SourceMap;
|
|
1039
|
+
/**
|
|
1040
|
+
* If deprecated, the reason or migration path.
|
|
1041
|
+
*/
|
|
1042
|
+
deprecated?: string;
|
|
1043
|
+
};
|
|
1044
|
+
export type FunctionWithCachePolicyOpts = {
|
|
1045
|
+
/**
|
|
1046
|
+
* The TTL for the cache policy, if applicable. Provided as a duration string, e.g. "5m", "1h30s".
|
|
1047
|
+
*/
|
|
1048
|
+
timeToLive?: string;
|
|
1049
|
+
};
|
|
1050
|
+
export type FunctionWithDeprecatedOpts = {
|
|
1051
|
+
/**
|
|
1052
|
+
* Reason or migration path describing the deprecation.
|
|
1053
|
+
*/
|
|
1054
|
+
reason?: string;
|
|
1019
1055
|
};
|
|
1020
1056
|
/**
|
|
1021
1057
|
* The `FunctionArgID` scalar type represents an identifier for an object of type FunctionArg.
|
|
@@ -1023,6 +1059,14 @@ export type FunctionWithArgOpts = {
|
|
|
1023
1059
|
export type FunctionArgID = string & {
|
|
1024
1060
|
__FunctionArgID: never;
|
|
1025
1061
|
};
|
|
1062
|
+
/**
|
|
1063
|
+
* The behavior configured for function result caching.
|
|
1064
|
+
*/
|
|
1065
|
+
export declare enum FunctionCachePolicy {
|
|
1066
|
+
Default = "Default",
|
|
1067
|
+
Never = "Never",
|
|
1068
|
+
PerSession = "PerSession"
|
|
1069
|
+
}
|
|
1026
1070
|
/**
|
|
1027
1071
|
* The `FunctionCallArgValueID` scalar type represents an identifier for an object of type FunctionCallArgValue.
|
|
1028
1072
|
*/
|
|
@@ -1329,6 +1373,8 @@ export type ClientEnvOpts = {
|
|
|
1329
1373
|
export type ClientEnvFileOpts = {
|
|
1330
1374
|
/**
|
|
1331
1375
|
* Replace "${VAR}" or "$VAR" with the value of other vars
|
|
1376
|
+
*
|
|
1377
|
+
* @deprecated Variable expansion is now enabled by default
|
|
1332
1378
|
*/
|
|
1333
1379
|
expand?: boolean;
|
|
1334
1380
|
};
|
|
@@ -1341,6 +1387,8 @@ export type ClientFileOpts = {
|
|
|
1341
1387
|
export type ClientGitOpts = {
|
|
1342
1388
|
/**
|
|
1343
1389
|
* DEPRECATED: Set to true to keep .git directory.
|
|
1390
|
+
*
|
|
1391
|
+
* @deprecated Set to true to keep .git directory.
|
|
1344
1392
|
*/
|
|
1345
1393
|
keepGitDir?: boolean;
|
|
1346
1394
|
/**
|
|
@@ -1549,6 +1597,10 @@ export type TypeDefWithEnumMemberOpts = {
|
|
|
1549
1597
|
* The source map for the enum member definition.
|
|
1550
1598
|
*/
|
|
1551
1599
|
sourceMap?: SourceMap;
|
|
1600
|
+
/**
|
|
1601
|
+
* If deprecated, the reason or migration path.
|
|
1602
|
+
*/
|
|
1603
|
+
deprecated?: string;
|
|
1552
1604
|
};
|
|
1553
1605
|
export type TypeDefWithEnumValueOpts = {
|
|
1554
1606
|
/**
|
|
@@ -1559,6 +1611,10 @@ export type TypeDefWithEnumValueOpts = {
|
|
|
1559
1611
|
* The source map for the enum value definition.
|
|
1560
1612
|
*/
|
|
1561
1613
|
sourceMap?: SourceMap;
|
|
1614
|
+
/**
|
|
1615
|
+
* If deprecated, the reason or migration path.
|
|
1616
|
+
*/
|
|
1617
|
+
deprecated?: string;
|
|
1562
1618
|
};
|
|
1563
1619
|
export type TypeDefWithFieldOpts = {
|
|
1564
1620
|
/**
|
|
@@ -1569,6 +1625,10 @@ export type TypeDefWithFieldOpts = {
|
|
|
1569
1625
|
* The source map for the field definition.
|
|
1570
1626
|
*/
|
|
1571
1627
|
sourceMap?: SourceMap;
|
|
1628
|
+
/**
|
|
1629
|
+
* If deprecated, the reason or migration path.
|
|
1630
|
+
*/
|
|
1631
|
+
deprecated?: string;
|
|
1572
1632
|
};
|
|
1573
1633
|
export type TypeDefWithInterfaceOpts = {
|
|
1574
1634
|
description?: string;
|
|
@@ -1577,6 +1637,7 @@ export type TypeDefWithInterfaceOpts = {
|
|
|
1577
1637
|
export type TypeDefWithObjectOpts = {
|
|
1578
1638
|
description?: string;
|
|
1579
1639
|
sourceMap?: SourceMap;
|
|
1640
|
+
deprecated?: string;
|
|
1580
1641
|
};
|
|
1581
1642
|
export type TypeDefWithScalarOpts = {
|
|
1582
1643
|
description?: string;
|
|
@@ -2274,6 +2335,7 @@ export declare class Container extends BaseClient {
|
|
|
2274
2335
|
* @param source Identifier of the directory to write
|
|
2275
2336
|
* @param opts.exclude Patterns to exclude in the written directory (e.g. ["node_modules/**", ".gitignore", ".git/"]).
|
|
2276
2337
|
* @param opts.include Patterns to include in the written directory (e.g. ["*.go", "go.mod", "go.sum"]).
|
|
2338
|
+
* @param opts.gitignore Apply .gitignore rules when writing the directory.
|
|
2277
2339
|
* @param opts.owner A user:group to set for the directory and its contents.
|
|
2278
2340
|
*
|
|
2279
2341
|
* The user and group can either be an ID (1000:1000) or a name (foo:bar).
|
|
@@ -2626,6 +2688,7 @@ export declare class CurrentModule extends BaseClient {
|
|
|
2626
2688
|
* @param path Location of the directory to access (e.g., ".").
|
|
2627
2689
|
* @param opts.exclude Exclude artifacts that match the given pattern (e.g., ["node_modules/", ".git*"]).
|
|
2628
2690
|
* @param opts.include Include only artifacts that match the given pattern (e.g., ["app/", "package.*"]).
|
|
2691
|
+
* @param opts.gitignore Apply .gitignore filter rules inside the directory
|
|
2629
2692
|
*/
|
|
2630
2693
|
workdir: (path: string, opts?: CurrentModuleWorkdirOpts) => Directory;
|
|
2631
2694
|
/**
|
|
@@ -2743,6 +2806,7 @@ export declare class Directory extends BaseClient {
|
|
|
2743
2806
|
* Return a snapshot with some paths included or excluded
|
|
2744
2807
|
* @param opts.exclude If set, paths matching one of these glob patterns is excluded from the new snapshot. Example: ["node_modules/", ".git*", ".env"]
|
|
2745
2808
|
* @param opts.include If set, only paths matching one of these glob patterns is included in the new snapshot. Example: (e.g., ["app/", "package.*"]).
|
|
2809
|
+
* @param opts.gitignore If set, apply .gitignore rules when filtering the directory.
|
|
2746
2810
|
*/
|
|
2747
2811
|
filter: (opts?: DirectoryFilterOpts) => Directory;
|
|
2748
2812
|
/**
|
|
@@ -2800,6 +2864,7 @@ export declare class Directory extends BaseClient {
|
|
|
2800
2864
|
* @param source Identifier of the directory to copy.
|
|
2801
2865
|
* @param opts.exclude Exclude artifacts that match the given pattern (e.g., ["node_modules/", ".git*"]).
|
|
2802
2866
|
* @param opts.include Include only artifacts that match the given pattern (e.g., ["app/", "package.*"]).
|
|
2867
|
+
* @param opts.gitignore Apply .gitignore filter rules inside the directory
|
|
2803
2868
|
* @param opts.owner A user:group to set for the copied directory and its contents.
|
|
2804
2869
|
*
|
|
2805
2870
|
* The user and group must be an ID (1000:1000), not a name (foo:bar).
|
|
@@ -2905,6 +2970,10 @@ export declare class Engine extends BaseClient {
|
|
|
2905
2970
|
* A unique identifier for this Engine.
|
|
2906
2971
|
*/
|
|
2907
2972
|
id: () => Promise<EngineID>;
|
|
2973
|
+
/**
|
|
2974
|
+
* The list of connected client IDs
|
|
2975
|
+
*/
|
|
2976
|
+
clients: () => Promise<string[]>;
|
|
2908
2977
|
/**
|
|
2909
2978
|
* The local (on-disk) cache for the Dagger engine
|
|
2910
2979
|
*/
|
|
@@ -3071,17 +3140,22 @@ export declare class EnumTypeDef extends BaseClient {
|
|
|
3071
3140
|
*/
|
|
3072
3141
|
export declare class EnumValueTypeDef extends BaseClient {
|
|
3073
3142
|
private readonly _id?;
|
|
3143
|
+
private readonly _deprecated?;
|
|
3074
3144
|
private readonly _description?;
|
|
3075
3145
|
private readonly _name?;
|
|
3076
3146
|
private readonly _value?;
|
|
3077
3147
|
/**
|
|
3078
3148
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3079
3149
|
*/
|
|
3080
|
-
constructor(ctx?: Context, _id?: EnumValueTypeDefID, _description?: string, _name?: string, _value?: string);
|
|
3150
|
+
constructor(ctx?: Context, _id?: EnumValueTypeDefID, _deprecated?: string, _description?: string, _name?: string, _value?: string);
|
|
3081
3151
|
/**
|
|
3082
3152
|
* A unique identifier for this EnumValueTypeDef.
|
|
3083
3153
|
*/
|
|
3084
3154
|
id: () => Promise<EnumValueTypeDefID>;
|
|
3155
|
+
/**
|
|
3156
|
+
* The reason this enum member is deprecated, if any.
|
|
3157
|
+
*/
|
|
3158
|
+
deprecated: () => Promise<string>;
|
|
3085
3159
|
/**
|
|
3086
3160
|
* A doc string for the enum member, if any.
|
|
3087
3161
|
*/
|
|
@@ -3569,16 +3643,21 @@ export declare class ErrorValue extends BaseClient {
|
|
|
3569
3643
|
*/
|
|
3570
3644
|
export declare class FieldTypeDef extends BaseClient {
|
|
3571
3645
|
private readonly _id?;
|
|
3646
|
+
private readonly _deprecated?;
|
|
3572
3647
|
private readonly _description?;
|
|
3573
3648
|
private readonly _name?;
|
|
3574
3649
|
/**
|
|
3575
3650
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3576
3651
|
*/
|
|
3577
|
-
constructor(ctx?: Context, _id?: FieldTypeDefID, _description?: string, _name?: string);
|
|
3652
|
+
constructor(ctx?: Context, _id?: FieldTypeDefID, _deprecated?: string, _description?: string, _name?: string);
|
|
3578
3653
|
/**
|
|
3579
3654
|
* A unique identifier for this FieldTypeDef.
|
|
3580
3655
|
*/
|
|
3581
3656
|
id: () => Promise<FieldTypeDefID>;
|
|
3657
|
+
/**
|
|
3658
|
+
* The reason this enum member is deprecated, if any.
|
|
3659
|
+
*/
|
|
3660
|
+
deprecated: () => Promise<string>;
|
|
3582
3661
|
/**
|
|
3583
3662
|
* A doc string for the field, if any.
|
|
3584
3663
|
*/
|
|
@@ -3715,12 +3794,13 @@ export declare class File extends BaseClient {
|
|
|
3715
3794
|
*/
|
|
3716
3795
|
export declare class Function_ extends BaseClient {
|
|
3717
3796
|
private readonly _id?;
|
|
3797
|
+
private readonly _deprecated?;
|
|
3718
3798
|
private readonly _description?;
|
|
3719
3799
|
private readonly _name?;
|
|
3720
3800
|
/**
|
|
3721
3801
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3722
3802
|
*/
|
|
3723
|
-
constructor(ctx?: Context, _id?: FunctionID, _description?: string, _name?: string);
|
|
3803
|
+
constructor(ctx?: Context, _id?: FunctionID, _deprecated?: string, _description?: string, _name?: string);
|
|
3724
3804
|
/**
|
|
3725
3805
|
* A unique identifier for this Function.
|
|
3726
3806
|
*/
|
|
@@ -3729,6 +3809,10 @@ export declare class Function_ extends BaseClient {
|
|
|
3729
3809
|
* Arguments accepted by the function, if any.
|
|
3730
3810
|
*/
|
|
3731
3811
|
args: () => Promise<FunctionArg[]>;
|
|
3812
|
+
/**
|
|
3813
|
+
* The reason this function is deprecated, if any.
|
|
3814
|
+
*/
|
|
3815
|
+
deprecated: () => Promise<string>;
|
|
3732
3816
|
/**
|
|
3733
3817
|
* A doc string for the function, if any.
|
|
3734
3818
|
*/
|
|
@@ -3754,8 +3838,20 @@ export declare class Function_ extends BaseClient {
|
|
|
3754
3838
|
* @param opts.defaultPath If the argument is a Directory or File type, default to load path from context directory, relative to root directory.
|
|
3755
3839
|
* @param opts.ignore Patterns to ignore when loading the contextual argument value.
|
|
3756
3840
|
* @param opts.sourceMap The source map for the argument definition.
|
|
3841
|
+
* @param opts.deprecated If deprecated, the reason or migration path.
|
|
3757
3842
|
*/
|
|
3758
3843
|
withArg: (name: string, typeDef: TypeDef, opts?: FunctionWithArgOpts) => Function_;
|
|
3844
|
+
/**
|
|
3845
|
+
* Returns the function updated to use the provided cache policy.
|
|
3846
|
+
* @param policy The cache policy to use.
|
|
3847
|
+
* @param opts.timeToLive The TTL for the cache policy, if applicable. Provided as a duration string, e.g. "5m", "1h30s".
|
|
3848
|
+
*/
|
|
3849
|
+
withCachePolicy: (policy: FunctionCachePolicy, opts?: FunctionWithCachePolicyOpts) => Function_;
|
|
3850
|
+
/**
|
|
3851
|
+
* Returns the function with the provided deprecation reason.
|
|
3852
|
+
* @param opts.reason Reason or migration path describing the deprecation.
|
|
3853
|
+
*/
|
|
3854
|
+
withDeprecated: (opts?: FunctionWithDeprecatedOpts) => Function_;
|
|
3759
3855
|
/**
|
|
3760
3856
|
* Returns the function with the given doc string.
|
|
3761
3857
|
* @param description The doc string to set.
|
|
@@ -3782,12 +3878,13 @@ export declare class FunctionArg extends BaseClient {
|
|
|
3782
3878
|
private readonly _id?;
|
|
3783
3879
|
private readonly _defaultPath?;
|
|
3784
3880
|
private readonly _defaultValue?;
|
|
3881
|
+
private readonly _deprecated?;
|
|
3785
3882
|
private readonly _description?;
|
|
3786
3883
|
private readonly _name?;
|
|
3787
3884
|
/**
|
|
3788
3885
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3789
3886
|
*/
|
|
3790
|
-
constructor(ctx?: Context, _id?: FunctionArgID, _defaultPath?: string, _defaultValue?: JSON, _description?: string, _name?: string);
|
|
3887
|
+
constructor(ctx?: Context, _id?: FunctionArgID, _defaultPath?: string, _defaultValue?: JSON, _deprecated?: string, _description?: string, _name?: string);
|
|
3791
3888
|
/**
|
|
3792
3889
|
* A unique identifier for this FunctionArg.
|
|
3793
3890
|
*/
|
|
@@ -3800,6 +3897,10 @@ export declare class FunctionArg extends BaseClient {
|
|
|
3800
3897
|
* A default value to use for this argument when not explicitly set by the caller, if any.
|
|
3801
3898
|
*/
|
|
3802
3899
|
defaultValue: () => Promise<JSON>;
|
|
3900
|
+
/**
|
|
3901
|
+
* The reason this function is deprecated, if any.
|
|
3902
|
+
*/
|
|
3903
|
+
deprecated: () => Promise<string>;
|
|
3803
3904
|
/**
|
|
3804
3905
|
* A doc string for the argument, if any.
|
|
3805
3906
|
*/
|
|
@@ -4023,6 +4124,10 @@ export declare class GitRepository extends BaseClient {
|
|
|
4023
4124
|
* @param opts.patterns Glob patterns (e.g., "refs/tags/v*").
|
|
4024
4125
|
*/
|
|
4025
4126
|
tags: (opts?: GitRepositoryTagsOpts) => Promise<string[]>;
|
|
4127
|
+
/**
|
|
4128
|
+
* Returns the changeset of uncommitted changes in the git repository.
|
|
4129
|
+
*/
|
|
4130
|
+
uncommitted: () => Changeset;
|
|
4026
4131
|
/**
|
|
4027
4132
|
* The URL of the git repository.
|
|
4028
4133
|
*/
|
|
@@ -4702,6 +4807,10 @@ export declare class ModuleSource extends BaseClient {
|
|
|
4702
4807
|
* Forces evaluation of the module source, including any loading into the engine and associated validation.
|
|
4703
4808
|
*/
|
|
4704
4809
|
sync: () => Promise<ModuleSource>;
|
|
4810
|
+
/**
|
|
4811
|
+
* The toolchains referenced by the module source.
|
|
4812
|
+
*/
|
|
4813
|
+
toolchains: () => Promise<ModuleSource[]>;
|
|
4705
4814
|
/**
|
|
4706
4815
|
* User-defined defaults read from local .env files
|
|
4707
4816
|
*/
|
|
@@ -4756,6 +4865,11 @@ export declare class ModuleSource extends BaseClient {
|
|
|
4756
4865
|
* @param path The path to set as the source subpath. Must be relative to the module source's source root directory.
|
|
4757
4866
|
*/
|
|
4758
4867
|
withSourceSubpath: (path: string) => ModuleSource;
|
|
4868
|
+
/**
|
|
4869
|
+
* Add toolchains to the module source.
|
|
4870
|
+
* @param toolchains The toolchain modules to add.
|
|
4871
|
+
*/
|
|
4872
|
+
withToolchains: (toolchains: ModuleSource[]) => ModuleSource;
|
|
4759
4873
|
/**
|
|
4760
4874
|
* Update the blueprint module to the latest version.
|
|
4761
4875
|
*/
|
|
@@ -4765,6 +4879,11 @@ export declare class ModuleSource extends BaseClient {
|
|
|
4765
4879
|
* @param dependencies The dependencies to update.
|
|
4766
4880
|
*/
|
|
4767
4881
|
withUpdateDependencies: (dependencies: string[]) => ModuleSource;
|
|
4882
|
+
/**
|
|
4883
|
+
* Update one or more toolchains.
|
|
4884
|
+
* @param toolchains The toolchains to update.
|
|
4885
|
+
*/
|
|
4886
|
+
withUpdateToolchains: (toolchains: string[]) => ModuleSource;
|
|
4768
4887
|
/**
|
|
4769
4888
|
* Update one or more clients.
|
|
4770
4889
|
* @param clients The clients to update
|
|
@@ -4789,6 +4908,11 @@ export declare class ModuleSource extends BaseClient {
|
|
|
4789
4908
|
* @param features The experimental features to disable.
|
|
4790
4909
|
*/
|
|
4791
4910
|
withoutExperimentalFeatures: (features: ModuleSourceExperimentalFeature[]) => ModuleSource;
|
|
4911
|
+
/**
|
|
4912
|
+
* Remove the provided toolchains from the module source.
|
|
4913
|
+
* @param toolchains The toolchains to remove.
|
|
4914
|
+
*/
|
|
4915
|
+
withoutToolchains: (toolchains: string[]) => ModuleSource;
|
|
4792
4916
|
/**
|
|
4793
4917
|
* Call the provided function with current ModuleSource.
|
|
4794
4918
|
*
|
|
@@ -4801,13 +4925,14 @@ export declare class ModuleSource extends BaseClient {
|
|
|
4801
4925
|
*/
|
|
4802
4926
|
export declare class ObjectTypeDef extends BaseClient {
|
|
4803
4927
|
private readonly _id?;
|
|
4928
|
+
private readonly _deprecated?;
|
|
4804
4929
|
private readonly _description?;
|
|
4805
4930
|
private readonly _name?;
|
|
4806
4931
|
private readonly _sourceModuleName?;
|
|
4807
4932
|
/**
|
|
4808
4933
|
* Constructor is used for internal usage only, do not create object from it.
|
|
4809
4934
|
*/
|
|
4810
|
-
constructor(ctx?: Context, _id?: ObjectTypeDefID, _description?: string, _name?: string, _sourceModuleName?: string);
|
|
4935
|
+
constructor(ctx?: Context, _id?: ObjectTypeDefID, _deprecated?: string, _description?: string, _name?: string, _sourceModuleName?: string);
|
|
4811
4936
|
/**
|
|
4812
4937
|
* A unique identifier for this ObjectTypeDef.
|
|
4813
4938
|
*/
|
|
@@ -4816,6 +4941,10 @@ export declare class ObjectTypeDef extends BaseClient {
|
|
|
4816
4941
|
* The function used to construct new instances of this object, if any
|
|
4817
4942
|
*/
|
|
4818
4943
|
constructor_: () => Function_;
|
|
4944
|
+
/**
|
|
4945
|
+
* The reason this enum member is deprecated, if any.
|
|
4946
|
+
*/
|
|
4947
|
+
deprecated: () => Promise<string>;
|
|
4819
4948
|
/**
|
|
4820
4949
|
* The doc string for the object, if any.
|
|
4821
4950
|
*/
|
|
@@ -5274,15 +5403,20 @@ export declare class Client extends BaseClient {
|
|
|
5274
5403
|
*/
|
|
5275
5404
|
export declare class SDKConfig extends BaseClient {
|
|
5276
5405
|
private readonly _id?;
|
|
5406
|
+
private readonly _debug?;
|
|
5277
5407
|
private readonly _source?;
|
|
5278
5408
|
/**
|
|
5279
5409
|
* Constructor is used for internal usage only, do not create object from it.
|
|
5280
5410
|
*/
|
|
5281
|
-
constructor(ctx?: Context, _id?: SDKConfigID, _source?: string);
|
|
5411
|
+
constructor(ctx?: Context, _id?: SDKConfigID, _debug?: boolean, _source?: string);
|
|
5282
5412
|
/**
|
|
5283
5413
|
* A unique identifier for this SDKConfig.
|
|
5284
5414
|
*/
|
|
5285
5415
|
id: () => Promise<SDKConfigID>;
|
|
5416
|
+
/**
|
|
5417
|
+
* Whether to start the SDK runtime in debug mode with an interactive terminal.
|
|
5418
|
+
*/
|
|
5419
|
+
debug: () => Promise<boolean>;
|
|
5286
5420
|
/**
|
|
5287
5421
|
* Source of the SDK. Either a name of a builtin SDK or a module source ref string pointing to the SDK's implementation.
|
|
5288
5422
|
*/
|
|
@@ -5620,6 +5754,7 @@ export declare class TypeDef extends BaseClient {
|
|
|
5620
5754
|
* @param opts.value The value of the member in the enum
|
|
5621
5755
|
* @param opts.description A doc string for the member, if any
|
|
5622
5756
|
* @param opts.sourceMap The source map for the enum member definition.
|
|
5757
|
+
* @param opts.deprecated If deprecated, the reason or migration path.
|
|
5623
5758
|
*/
|
|
5624
5759
|
withEnumMember: (name: string, opts?: TypeDefWithEnumMemberOpts) => TypeDef;
|
|
5625
5760
|
/**
|
|
@@ -5627,6 +5762,7 @@ export declare class TypeDef extends BaseClient {
|
|
|
5627
5762
|
* @param value The name of the value in the enum
|
|
5628
5763
|
* @param opts.description A doc string for the value, if any
|
|
5629
5764
|
* @param opts.sourceMap The source map for the enum value definition.
|
|
5765
|
+
* @param opts.deprecated If deprecated, the reason or migration path.
|
|
5630
5766
|
* @deprecated Use withEnumMember instead
|
|
5631
5767
|
*/
|
|
5632
5768
|
withEnumValue: (value: string, opts?: TypeDefWithEnumValueOpts) => TypeDef;
|
|
@@ -5636,6 +5772,7 @@ export declare class TypeDef extends BaseClient {
|
|
|
5636
5772
|
* @param typeDef The type of the field
|
|
5637
5773
|
* @param opts.description A doc string for the field, if any
|
|
5638
5774
|
* @param opts.sourceMap The source map for the field definition.
|
|
5775
|
+
* @param opts.deprecated If deprecated, the reason or migration path.
|
|
5639
5776
|
*/
|
|
5640
5777
|
withField: (name: string, typeDef: TypeDef, opts?: TypeDefWithFieldOpts) => TypeDef;
|
|
5641
5778
|
/**
|