@forteplatforms/sdk 1.0.156 → 1.0.163

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.
Files changed (33) hide show
  1. package/README.md +29 -8
  2. package/dist/generated/apis/ProjectsServerApi.d.ts +98 -0
  3. package/dist/generated/apis/ProjectsServerApi.js +402 -0
  4. package/dist/generated/models/CreateCustomDomainRequest.d.ts +32 -0
  5. package/dist/generated/models/CreateCustomDomainRequest.js +51 -0
  6. package/dist/generated/models/CustomDomain.d.ts +112 -0
  7. package/dist/generated/models/CustomDomain.js +95 -0
  8. package/dist/generated/models/CustomDomainResponse.d.ts +33 -0
  9. package/dist/generated/models/CustomDomainResponse.js +50 -0
  10. package/dist/generated/models/DnsRecordCheck.d.ts +62 -0
  11. package/dist/generated/models/DnsRecordCheck.js +67 -0
  12. package/dist/generated/models/DnsRecordRequirement.d.ts +87 -0
  13. package/dist/generated/models/DnsRecordRequirement.js +83 -0
  14. package/dist/generated/models/DnsValidationResult.d.ts +45 -0
  15. package/dist/generated/models/DnsValidationResult.js +54 -0
  16. package/dist/generated/models/ForteApiException.d.ts +5 -0
  17. package/dist/generated/models/ForteApiException.js +6 -1
  18. package/dist/generated/models/ListCustomDomainsResponse.d.ts +33 -0
  19. package/dist/generated/models/ListCustomDomainsResponse.js +50 -0
  20. package/dist/generated/models/SyncCustomDomainResponse.d.ts +40 -0
  21. package/dist/generated/models/SyncCustomDomainResponse.js +53 -0
  22. package/dist/generated/models/UserActionLogObject.d.ts +1 -0
  23. package/dist/generated/models/UserActionLogObject.js +1 -0
  24. package/dist/generated/models/WebAppBuildRequestObject.d.ts +28 -0
  25. package/dist/generated/models/WebAppBuildRequestObject.js +16 -1
  26. package/dist/generated/models/WebAppDetectionResponse.d.ts +28 -0
  27. package/dist/generated/models/WebAppDetectionResponse.js +16 -1
  28. package/dist/generated/models/WebAppObject.d.ts +37 -2
  29. package/dist/generated/models/WebAppObject.js +21 -3
  30. package/dist/generated/models/index.d.ts +8 -0
  31. package/dist/generated/models/index.js +8 -0
  32. package/dist/index.js +10 -4
  33. package/package.json +1 -1
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenAPI definition
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfListCustomDomainsResponse = instanceOfListCustomDomainsResponse;
17
+ exports.ListCustomDomainsResponseFromJSON = ListCustomDomainsResponseFromJSON;
18
+ exports.ListCustomDomainsResponseFromJSONTyped = ListCustomDomainsResponseFromJSONTyped;
19
+ exports.ListCustomDomainsResponseToJSON = ListCustomDomainsResponseToJSON;
20
+ exports.ListCustomDomainsResponseToJSONTyped = ListCustomDomainsResponseToJSONTyped;
21
+ var CustomDomain_1 = require("./CustomDomain");
22
+ /**
23
+ * Check if a given object implements the ListCustomDomainsResponse interface.
24
+ */
25
+ function instanceOfListCustomDomainsResponse(value) {
26
+ return true;
27
+ }
28
+ function ListCustomDomainsResponseFromJSON(json) {
29
+ return ListCustomDomainsResponseFromJSONTyped(json, false);
30
+ }
31
+ function ListCustomDomainsResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'customDomains': json['customDomains'] == null ? undefined : (json['customDomains'].map(CustomDomain_1.CustomDomainFromJSON)),
37
+ };
38
+ }
39
+ function ListCustomDomainsResponseToJSON(json) {
40
+ return ListCustomDomainsResponseToJSONTyped(json, false);
41
+ }
42
+ function ListCustomDomainsResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'customDomains': value['customDomains'] == null ? undefined : (value['customDomains'].map(CustomDomain_1.CustomDomainToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CustomDomain } from './CustomDomain';
13
+ import type { DnsValidationResult } from './DnsValidationResult';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface SyncCustomDomainResponse
18
+ */
19
+ export interface SyncCustomDomainResponse {
20
+ /**
21
+ *
22
+ * @type {CustomDomain}
23
+ * @memberof SyncCustomDomainResponse
24
+ */
25
+ customDomain?: CustomDomain;
26
+ /**
27
+ *
28
+ * @type {DnsValidationResult}
29
+ * @memberof SyncCustomDomainResponse
30
+ */
31
+ dnsCheck?: DnsValidationResult;
32
+ }
33
+ /**
34
+ * Check if a given object implements the SyncCustomDomainResponse interface.
35
+ */
36
+ export declare function instanceOfSyncCustomDomainResponse(value: object): value is SyncCustomDomainResponse;
37
+ export declare function SyncCustomDomainResponseFromJSON(json: any): SyncCustomDomainResponse;
38
+ export declare function SyncCustomDomainResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncCustomDomainResponse;
39
+ export declare function SyncCustomDomainResponseToJSON(json: any): SyncCustomDomainResponse;
40
+ export declare function SyncCustomDomainResponseToJSONTyped(value?: SyncCustomDomainResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenAPI definition
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSyncCustomDomainResponse = instanceOfSyncCustomDomainResponse;
17
+ exports.SyncCustomDomainResponseFromJSON = SyncCustomDomainResponseFromJSON;
18
+ exports.SyncCustomDomainResponseFromJSONTyped = SyncCustomDomainResponseFromJSONTyped;
19
+ exports.SyncCustomDomainResponseToJSON = SyncCustomDomainResponseToJSON;
20
+ exports.SyncCustomDomainResponseToJSONTyped = SyncCustomDomainResponseToJSONTyped;
21
+ var CustomDomain_1 = require("./CustomDomain");
22
+ var DnsValidationResult_1 = require("./DnsValidationResult");
23
+ /**
24
+ * Check if a given object implements the SyncCustomDomainResponse interface.
25
+ */
26
+ function instanceOfSyncCustomDomainResponse(value) {
27
+ return true;
28
+ }
29
+ function SyncCustomDomainResponseFromJSON(json) {
30
+ return SyncCustomDomainResponseFromJSONTyped(json, false);
31
+ }
32
+ function SyncCustomDomainResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'customDomain': json['customDomain'] == null ? undefined : (0, CustomDomain_1.CustomDomainFromJSON)(json['customDomain']),
38
+ 'dnsCheck': json['dnsCheck'] == null ? undefined : (0, DnsValidationResult_1.DnsValidationResultFromJSON)(json['dnsCheck']),
39
+ };
40
+ }
41
+ function SyncCustomDomainResponseToJSON(json) {
42
+ return SyncCustomDomainResponseToJSONTyped(json, false);
43
+ }
44
+ function SyncCustomDomainResponseToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'customDomain': (0, CustomDomain_1.CustomDomainToJSON)(value['customDomain']),
51
+ 'dnsCheck': (0, DnsValidationResult_1.DnsValidationResultToJSON)(value['dnsCheck']),
52
+ };
53
+ }
@@ -64,6 +64,7 @@ export declare const UserActionLogObjectActionTypeType: {
64
64
  readonly USER_HARD_DELETED: "USER_HARD_DELETED";
65
65
  readonly CONTACT_METHOD_ADDED: "CONTACT_METHOD_ADDED";
66
66
  readonly CONTACT_METHOD_REMOVED: "CONTACT_METHOD_REMOVED";
67
+ readonly CONTACT_METHOD_DISPLACED: "CONTACT_METHOD_DISPLACED";
67
68
  readonly CONTACT_METHOD_VERIFICATION_CODE_SENT: "CONTACT_METHOD_VERIFICATION_CODE_SENT";
68
69
  readonly CONTACT_METHOD_VERIFICATION_CODE_RE_SENT: "CONTACT_METHOD_VERIFICATION_CODE_RE_SENT";
69
70
  readonly CONTACT_METHOD_VERIFIED: "CONTACT_METHOD_VERIFIED";
@@ -29,6 +29,7 @@ exports.UserActionLogObjectActionTypeType = {
29
29
  USER_HARD_DELETED: 'USER_HARD_DELETED',
30
30
  CONTACT_METHOD_ADDED: 'CONTACT_METHOD_ADDED',
31
31
  CONTACT_METHOD_REMOVED: 'CONTACT_METHOD_REMOVED',
32
+ CONTACT_METHOD_DISPLACED: 'CONTACT_METHOD_DISPLACED',
32
33
  CONTACT_METHOD_VERIFICATION_CODE_SENT: 'CONTACT_METHOD_VERIFICATION_CODE_SENT',
33
34
  CONTACT_METHOD_VERIFICATION_CODE_RE_SENT: 'CONTACT_METHOD_VERIFICATION_CODE_RE_SENT',
34
35
  CONTACT_METHOD_VERIFIED: 'CONTACT_METHOD_VERIFIED',
@@ -71,6 +71,24 @@ export interface WebAppBuildRequestObject {
71
71
  * @memberof WebAppBuildRequestObject
72
72
  */
73
73
  subdirectory?: string;
74
+ /**
75
+ *
76
+ * @type {WebAppBuildRequestObjectMonorepoTypeType}
77
+ * @memberof WebAppBuildRequestObject
78
+ */
79
+ monorepoType?: WebAppBuildRequestObjectMonorepoTypeType;
80
+ /**
81
+ *
82
+ * @type {string}
83
+ * @memberof WebAppBuildRequestObject
84
+ */
85
+ workspaceRoot?: string;
86
+ /**
87
+ *
88
+ * @type {string}
89
+ * @memberof WebAppBuildRequestObject
90
+ */
91
+ appPackageName?: string;
74
92
  /**
75
93
  *
76
94
  * @type {string}
@@ -162,6 +180,16 @@ export interface WebAppBuildRequestObject {
162
180
  */
163
181
  origin?: WebAppBuildRequestObjectOriginType;
164
182
  }
183
+ /**
184
+ * @export
185
+ */
186
+ export declare const WebAppBuildRequestObjectMonorepoTypeType: {
187
+ readonly PNPM_WORKSPACES: "PNPM_WORKSPACES";
188
+ readonly YARN_WORKSPACES: "YARN_WORKSPACES";
189
+ readonly NPM_WORKSPACES: "NPM_WORKSPACES";
190
+ readonly BUN_WORKSPACES: "BUN_WORKSPACES";
191
+ };
192
+ export type WebAppBuildRequestObjectMonorepoTypeType = typeof WebAppBuildRequestObjectMonorepoTypeType[keyof typeof WebAppBuildRequestObjectMonorepoTypeType];
165
193
  /**
166
194
  * @export
167
195
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.WebAppBuildRequestObjectOriginType = exports.WebAppBuildRequestObjectStatusType = void 0;
16
+ exports.WebAppBuildRequestObjectOriginType = exports.WebAppBuildRequestObjectStatusType = exports.WebAppBuildRequestObjectMonorepoTypeType = void 0;
17
17
  exports.instanceOfWebAppBuildRequestObject = instanceOfWebAppBuildRequestObject;
18
18
  exports.WebAppBuildRequestObjectFromJSON = WebAppBuildRequestObjectFromJSON;
19
19
  exports.WebAppBuildRequestObjectFromJSONTyped = WebAppBuildRequestObjectFromJSONTyped;
@@ -21,6 +21,15 @@ exports.WebAppBuildRequestObjectToJSON = WebAppBuildRequestObjectToJSON;
21
21
  exports.WebAppBuildRequestObjectToJSONTyped = WebAppBuildRequestObjectToJSONTyped;
22
22
  var WebAppDetectionError_1 = require("./WebAppDetectionError");
23
23
  var BuildStepLog_1 = require("./BuildStepLog");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.WebAppBuildRequestObjectMonorepoTypeType = {
28
+ PNPM_WORKSPACES: 'PNPM_WORKSPACES',
29
+ YARN_WORKSPACES: 'YARN_WORKSPACES',
30
+ NPM_WORKSPACES: 'NPM_WORKSPACES',
31
+ BUN_WORKSPACES: 'BUN_WORKSPACES'
32
+ };
24
33
  /**
25
34
  * @export
26
35
  */
@@ -95,6 +104,9 @@ function WebAppBuildRequestObjectFromJSONTyped(json, ignoreDiscriminator) {
95
104
  'detectedFramework': json['detectedFramework'] == null ? undefined : json['detectedFramework'],
96
105
  'installCommand': json['installCommand'] == null ? undefined : json['installCommand'],
97
106
  'subdirectory': json['subdirectory'] == null ? undefined : json['subdirectory'],
107
+ 'monorepoType': json['monorepoType'] == null ? undefined : json['monorepoType'],
108
+ 'workspaceRoot': json['workspaceRoot'] == null ? undefined : json['workspaceRoot'],
109
+ 'appPackageName': json['appPackageName'] == null ? undefined : json['appPackageName'],
98
110
  'outputZipS3Key': json['outputZipS3Key'] == null ? undefined : json['outputZipS3Key'],
99
111
  'hostingDeploymentId': json['hostingDeploymentId'] == null ? undefined : json['hostingDeploymentId'],
100
112
  'hostingDeploymentStatus': json['hostingDeploymentStatus'] == null ? undefined : json['hostingDeploymentStatus'],
@@ -130,6 +142,9 @@ function WebAppBuildRequestObjectToJSONTyped(value, ignoreDiscriminator) {
130
142
  'detectedFramework': value['detectedFramework'],
131
143
  'installCommand': value['installCommand'],
132
144
  'subdirectory': value['subdirectory'],
145
+ 'monorepoType': value['monorepoType'],
146
+ 'workspaceRoot': value['workspaceRoot'],
147
+ 'appPackageName': value['appPackageName'],
133
148
  'outputZipS3Key': value['outputZipS3Key'],
134
149
  'hostingDeploymentId': value['hostingDeploymentId'],
135
150
  'hostingDeploymentStatus': value['hostingDeploymentStatus'],
@@ -64,6 +64,24 @@ export interface WebAppDetectionResponse {
64
64
  * @memberof WebAppDetectionResponse
65
65
  */
66
66
  subdirectory?: string;
67
+ /**
68
+ * Monorepo flavor detected from lockfile + workspace declaration; null for single-project repos
69
+ * @type {WebAppDetectionResponseMonorepoTypeType}
70
+ * @memberof WebAppDetectionResponse
71
+ */
72
+ monorepoType?: WebAppDetectionResponseMonorepoTypeType;
73
+ /**
74
+ * Path (relative to repo root) of the directory containing pnpm-workspace.yaml or the root package.json with a workspaces field; empty string for repo root; null for single-project repos
75
+ * @type {string}
76
+ * @memberof WebAppDetectionResponse
77
+ */
78
+ workspaceRoot?: string;
79
+ /**
80
+ * The `name` field from the web app's package.json, used by monorepo --filter flags
81
+ * @type {string}
82
+ * @memberof WebAppDetectionResponse
83
+ */
84
+ appPackageName?: string;
67
85
  /**
68
86
  * Analysis results from scanning the repository structure
69
87
  * @type {RepositoryAnalysis}
@@ -79,6 +97,16 @@ export declare const WebAppDetectionResponseWebAppTypeType: {
79
97
  readonly SERVER_SIDE: "SERVER_SIDE";
80
98
  };
81
99
  export type WebAppDetectionResponseWebAppTypeType = typeof WebAppDetectionResponseWebAppTypeType[keyof typeof WebAppDetectionResponseWebAppTypeType];
100
+ /**
101
+ * @export
102
+ */
103
+ export declare const WebAppDetectionResponseMonorepoTypeType: {
104
+ readonly PNPM_WORKSPACES: "PNPM_WORKSPACES";
105
+ readonly YARN_WORKSPACES: "YARN_WORKSPACES";
106
+ readonly NPM_WORKSPACES: "NPM_WORKSPACES";
107
+ readonly BUN_WORKSPACES: "BUN_WORKSPACES";
108
+ };
109
+ export type WebAppDetectionResponseMonorepoTypeType = typeof WebAppDetectionResponseMonorepoTypeType[keyof typeof WebAppDetectionResponseMonorepoTypeType];
82
110
  /**
83
111
  * Check if a given object implements the WebAppDetectionResponse interface.
84
112
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.WebAppDetectionResponseWebAppTypeType = void 0;
16
+ exports.WebAppDetectionResponseMonorepoTypeType = exports.WebAppDetectionResponseWebAppTypeType = void 0;
17
17
  exports.instanceOfWebAppDetectionResponse = instanceOfWebAppDetectionResponse;
18
18
  exports.WebAppDetectionResponseFromJSON = WebAppDetectionResponseFromJSON;
19
19
  exports.WebAppDetectionResponseFromJSONTyped = WebAppDetectionResponseFromJSONTyped;
@@ -27,6 +27,15 @@ exports.WebAppDetectionResponseWebAppTypeType = {
27
27
  STATIC: 'STATIC',
28
28
  SERVER_SIDE: 'SERVER_SIDE'
29
29
  };
30
+ /**
31
+ * @export
32
+ */
33
+ exports.WebAppDetectionResponseMonorepoTypeType = {
34
+ PNPM_WORKSPACES: 'PNPM_WORKSPACES',
35
+ YARN_WORKSPACES: 'YARN_WORKSPACES',
36
+ NPM_WORKSPACES: 'NPM_WORKSPACES',
37
+ BUN_WORKSPACES: 'BUN_WORKSPACES'
38
+ };
30
39
  /**
31
40
  * Check if a given object implements the WebAppDetectionResponse interface.
32
41
  */
@@ -49,6 +58,9 @@ function WebAppDetectionResponseFromJSONTyped(json, ignoreDiscriminator) {
49
58
  'installCommand': json['installCommand'] == null ? undefined : json['installCommand'],
50
59
  'detectedFramework': json['detectedFramework'] == null ? undefined : json['detectedFramework'],
51
60
  'subdirectory': json['subdirectory'] == null ? undefined : json['subdirectory'],
61
+ 'monorepoType': json['monorepoType'] == null ? undefined : json['monorepoType'],
62
+ 'workspaceRoot': json['workspaceRoot'] == null ? undefined : json['workspaceRoot'],
63
+ 'appPackageName': json['appPackageName'] == null ? undefined : json['appPackageName'],
52
64
  'repositoryAnalysis': json['repositoryAnalysis'] == null ? undefined : (0, RepositoryAnalysis_1.RepositoryAnalysisFromJSON)(json['repositoryAnalysis']),
53
65
  };
54
66
  }
@@ -69,6 +81,9 @@ function WebAppDetectionResponseToJSONTyped(value, ignoreDiscriminator) {
69
81
  'installCommand': value['installCommand'],
70
82
  'detectedFramework': value['detectedFramework'],
71
83
  'subdirectory': value['subdirectory'],
84
+ 'monorepoType': value['monorepoType'],
85
+ 'workspaceRoot': value['workspaceRoot'],
86
+ 'appPackageName': value['appPackageName'],
72
87
  'repositoryAnalysis': (0, RepositoryAnalysis_1.RepositoryAnalysisToJSON)(value['repositoryAnalysis']),
73
88
  };
74
89
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { CustomDomain } from './CustomDomain';
12
13
  import type { WebAppDetectionResponse } from './WebAppDetectionResponse';
13
14
  /**
14
15
  *
@@ -42,10 +43,10 @@ export interface WebAppObject {
42
43
  forteDnsEndpointEnabled: boolean;
43
44
  /**
44
45
  *
45
- * @type {Array<string>}
46
+ * @type {Array<CustomDomain>}
46
47
  * @memberof WebAppObject
47
48
  */
48
- customDnsEndpoints?: Array<string>;
49
+ customDomains?: Array<CustomDomain>;
49
50
  /**
50
51
  *
51
52
  * @type {string}
@@ -88,6 +89,30 @@ export interface WebAppObject {
88
89
  * @memberof WebAppObject
89
90
  */
90
91
  detectedFramework?: string;
92
+ /**
93
+ *
94
+ * @type {WebAppObjectMonorepoTypeType}
95
+ * @memberof WebAppObject
96
+ */
97
+ monorepoType?: WebAppObjectMonorepoTypeType;
98
+ /**
99
+ *
100
+ * @type {string}
101
+ * @memberof WebAppObject
102
+ */
103
+ workspaceRoot?: string;
104
+ /**
105
+ *
106
+ * @type {string}
107
+ * @memberof WebAppObject
108
+ */
109
+ appPackageName?: string;
110
+ /**
111
+ *
112
+ * @type {number}
113
+ * @memberof WebAppObject
114
+ */
115
+ detectionVersion?: number;
91
116
  /**
92
117
  *
93
118
  * @type {WebAppDetectionResponse}
@@ -183,6 +208,16 @@ export declare const WebAppObjectWebAppTypeType: {
183
208
  readonly SERVER_SIDE: "SERVER_SIDE";
184
209
  };
185
210
  export type WebAppObjectWebAppTypeType = typeof WebAppObjectWebAppTypeType[keyof typeof WebAppObjectWebAppTypeType];
211
+ /**
212
+ * @export
213
+ */
214
+ export declare const WebAppObjectMonorepoTypeType: {
215
+ readonly PNPM_WORKSPACES: "PNPM_WORKSPACES";
216
+ readonly YARN_WORKSPACES: "YARN_WORKSPACES";
217
+ readonly NPM_WORKSPACES: "NPM_WORKSPACES";
218
+ readonly BUN_WORKSPACES: "BUN_WORKSPACES";
219
+ };
220
+ export type WebAppObjectMonorepoTypeType = typeof WebAppObjectMonorepoTypeType[keyof typeof WebAppObjectMonorepoTypeType];
186
221
  /**
187
222
  * @export
188
223
  */
@@ -13,12 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.WebAppObjectGithubBuildTriggerType = exports.WebAppObjectWebAppTypeType = void 0;
16
+ exports.WebAppObjectGithubBuildTriggerType = exports.WebAppObjectMonorepoTypeType = exports.WebAppObjectWebAppTypeType = void 0;
17
17
  exports.instanceOfWebAppObject = instanceOfWebAppObject;
18
18
  exports.WebAppObjectFromJSON = WebAppObjectFromJSON;
19
19
  exports.WebAppObjectFromJSONTyped = WebAppObjectFromJSONTyped;
20
20
  exports.WebAppObjectToJSON = WebAppObjectToJSON;
21
21
  exports.WebAppObjectToJSONTyped = WebAppObjectToJSONTyped;
22
+ var CustomDomain_1 = require("./CustomDomain");
22
23
  var WebAppDetectionResponse_1 = require("./WebAppDetectionResponse");
23
24
  /**
24
25
  * @export
@@ -27,6 +28,15 @@ exports.WebAppObjectWebAppTypeType = {
27
28
  STATIC: 'STATIC',
28
29
  SERVER_SIDE: 'SERVER_SIDE'
29
30
  };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.WebAppObjectMonorepoTypeType = {
35
+ PNPM_WORKSPACES: 'PNPM_WORKSPACES',
36
+ YARN_WORKSPACES: 'YARN_WORKSPACES',
37
+ NPM_WORKSPACES: 'NPM_WORKSPACES',
38
+ BUN_WORKSPACES: 'BUN_WORKSPACES'
39
+ };
30
40
  /**
31
41
  * @export
32
42
  */
@@ -60,7 +70,7 @@ function WebAppObjectFromJSONTyped(json, ignoreDiscriminator) {
60
70
  'webAppName': json['webAppName'],
61
71
  'forteDnsEndpoint': json['forteDnsEndpoint'] == null ? undefined : json['forteDnsEndpoint'],
62
72
  'forteDnsEndpointEnabled': json['forteDnsEndpointEnabled'],
63
- 'customDnsEndpoints': json['customDnsEndpoints'] == null ? undefined : json['customDnsEndpoints'],
73
+ 'customDomains': json['customDomains'] == null ? undefined : (json['customDomains'].map(CustomDomain_1.CustomDomainFromJSON)),
64
74
  'buildPath': json['buildPath'] == null ? undefined : json['buildPath'],
65
75
  'webAppType': json['webAppType'] == null ? undefined : json['webAppType'],
66
76
  'packageManager': json['packageManager'] == null ? undefined : json['packageManager'],
@@ -68,6 +78,10 @@ function WebAppObjectFromJSONTyped(json, ignoreDiscriminator) {
68
78
  'installCommand': json['installCommand'] == null ? undefined : json['installCommand'],
69
79
  'subdirectory': json['subdirectory'] == null ? undefined : json['subdirectory'],
70
80
  'detectedFramework': json['detectedFramework'] == null ? undefined : json['detectedFramework'],
81
+ 'monorepoType': json['monorepoType'] == null ? undefined : json['monorepoType'],
82
+ 'workspaceRoot': json['workspaceRoot'] == null ? undefined : json['workspaceRoot'],
83
+ 'appPackageName': json['appPackageName'] == null ? undefined : json['appPackageName'],
84
+ 'detectionVersion': json['detectionVersion'] == null ? undefined : json['detectionVersion'],
71
85
  'detectionResponse': json['detectionResponse'] == null ? undefined : (0, WebAppDetectionResponse_1.WebAppDetectionResponseFromJSON)(json['detectionResponse']),
72
86
  'hostingProviderAppId': json['hostingProviderAppId'] == null ? undefined : json['hostingProviderAppId'],
73
87
  'hostingProviderBranchName': json['hostingProviderBranchName'] == null ? undefined : json['hostingProviderBranchName'],
@@ -97,7 +111,7 @@ function WebAppObjectToJSONTyped(value, ignoreDiscriminator) {
97
111
  'webAppName': value['webAppName'],
98
112
  'forteDnsEndpoint': value['forteDnsEndpoint'],
99
113
  'forteDnsEndpointEnabled': value['forteDnsEndpointEnabled'],
100
- 'customDnsEndpoints': value['customDnsEndpoints'],
114
+ 'customDomains': value['customDomains'] == null ? undefined : (value['customDomains'].map(CustomDomain_1.CustomDomainToJSON)),
101
115
  'buildPath': value['buildPath'],
102
116
  'webAppType': value['webAppType'],
103
117
  'packageManager': value['packageManager'],
@@ -105,6 +119,10 @@ function WebAppObjectToJSONTyped(value, ignoreDiscriminator) {
105
119
  'installCommand': value['installCommand'],
106
120
  'subdirectory': value['subdirectory'],
107
121
  'detectedFramework': value['detectedFramework'],
122
+ 'monorepoType': value['monorepoType'],
123
+ 'workspaceRoot': value['workspaceRoot'],
124
+ 'appPackageName': value['appPackageName'],
125
+ 'detectionVersion': value['detectionVersion'],
108
126
  'detectionResponse': (0, WebAppDetectionResponse_1.WebAppDetectionResponseToJSON)(value['detectionResponse']),
109
127
  'hostingProviderAppId': value['hostingProviderAppId'],
110
128
  'hostingProviderBranchName': value['hostingProviderBranchName'],
@@ -9,6 +9,7 @@ export * from './ContentShare';
9
9
  export * from './ContentShareRequestItem';
10
10
  export * from './CreateContentUploadLinkRequest';
11
11
  export * from './CreateContentUploadLinkResponse';
12
+ export * from './CreateCustomDomainRequest';
12
13
  export * from './CreateForteServiceRequest';
13
14
  export * from './CreateOtpLoginRequest';
14
15
  export * from './CreateOtpLoginResponse';
@@ -23,6 +24,11 @@ export * from './CreateServiceRequestProxyRequest';
23
24
  export * from './CreateServiceRequestProxyResponse';
24
25
  export * from './CreateUserInviteRequest';
25
26
  export * from './CreateWebAppRequest';
27
+ export * from './CustomDomain';
28
+ export * from './CustomDomainResponse';
29
+ export * from './DnsRecordCheck';
30
+ export * from './DnsRecordRequirement';
31
+ export * from './DnsValidationResult';
26
32
  export * from './DockerfileDetectionOutput';
27
33
  export * from './DockerfileGenerationError';
28
34
  export * from './DockerfileGenerationResponse';
@@ -36,6 +42,7 @@ export * from './ImpersonationTokenResponse';
36
42
  export * from './LatencyMetrics';
37
43
  export * from './LatencyStats';
38
44
  export * from './ListContentResponse';
45
+ export * from './ListCustomDomainsResponse';
39
46
  export * from './ListUserInvitesResponse';
40
47
  export * from './LogLineObject';
41
48
  export * from './LoginUserResponse';
@@ -68,6 +75,7 @@ export * from './ServiceBuildRequestObject';
68
75
  export * from './ServiceMetricsResponse';
69
76
  export * from './ServiceObject';
70
77
  export * from './StateHistory';
78
+ export * from './SyncCustomDomainResponse';
71
79
  export * from './TestInvocationRequest';
72
80
  export * from './TestInvocationResponse';
73
81
  export * from './TimeSeriesDataPoint';
@@ -27,6 +27,7 @@ __exportStar(require("./ContentShare"), exports);
27
27
  __exportStar(require("./ContentShareRequestItem"), exports);
28
28
  __exportStar(require("./CreateContentUploadLinkRequest"), exports);
29
29
  __exportStar(require("./CreateContentUploadLinkResponse"), exports);
30
+ __exportStar(require("./CreateCustomDomainRequest"), exports);
30
31
  __exportStar(require("./CreateForteServiceRequest"), exports);
31
32
  __exportStar(require("./CreateOtpLoginRequest"), exports);
32
33
  __exportStar(require("./CreateOtpLoginResponse"), exports);
@@ -41,6 +42,11 @@ __exportStar(require("./CreateServiceRequestProxyRequest"), exports);
41
42
  __exportStar(require("./CreateServiceRequestProxyResponse"), exports);
42
43
  __exportStar(require("./CreateUserInviteRequest"), exports);
43
44
  __exportStar(require("./CreateWebAppRequest"), exports);
45
+ __exportStar(require("./CustomDomain"), exports);
46
+ __exportStar(require("./CustomDomainResponse"), exports);
47
+ __exportStar(require("./DnsRecordCheck"), exports);
48
+ __exportStar(require("./DnsRecordRequirement"), exports);
49
+ __exportStar(require("./DnsValidationResult"), exports);
44
50
  __exportStar(require("./DockerfileDetectionOutput"), exports);
45
51
  __exportStar(require("./DockerfileGenerationError"), exports);
46
52
  __exportStar(require("./DockerfileGenerationResponse"), exports);
@@ -54,6 +60,7 @@ __exportStar(require("./ImpersonationTokenResponse"), exports);
54
60
  __exportStar(require("./LatencyMetrics"), exports);
55
61
  __exportStar(require("./LatencyStats"), exports);
56
62
  __exportStar(require("./ListContentResponse"), exports);
63
+ __exportStar(require("./ListCustomDomainsResponse"), exports);
57
64
  __exportStar(require("./ListUserInvitesResponse"), exports);
58
65
  __exportStar(require("./LogLineObject"), exports);
59
66
  __exportStar(require("./LoginUserResponse"), exports);
@@ -86,6 +93,7 @@ __exportStar(require("./ServiceBuildRequestObject"), exports);
86
93
  __exportStar(require("./ServiceMetricsResponse"), exports);
87
94
  __exportStar(require("./ServiceObject"), exports);
88
95
  __exportStar(require("./StateHistory"), exports);
96
+ __exportStar(require("./SyncCustomDomainResponse"), exports);
89
97
  __exportStar(require("./TestInvocationRequest"), exports);
90
98
  __exportStar(require("./TestInvocationResponse"), exports);
91
99
  __exportStar(require("./TimeSeriesDataPoint"), exports);
package/dist/index.js CHANGED
@@ -23,14 +23,20 @@ var ForteClient = /** @class */ (function () {
23
23
  function ForteClient(options) {
24
24
  if (options === void 0) { options = {}; }
25
25
  var _a, _b, _c;
26
- // Falls back to FORTE_API_TOKEN env var in Node.js; safe in browsers where process is undefined
26
+ // Falls back to FORTE_API_TOKEN env var in Node.js; safe in browsers where process is undefined.
27
+ // No token is OK: in browsers the Forte-User-Session-Token cookie authenticates users.*;
28
+ // in BFFs the caller passes `authorization` per-call to users.*.
27
29
  var token = (_a = options.apiToken) !== null && _a !== void 0 ? _a : (typeof process !== 'undefined' ? (_b = process.env) === null || _b === void 0 ? void 0 : _b.FORTE_API_TOKEN : undefined);
28
- if (!token) {
29
- throw new Error('API token is required. Pass apiToken in the constructor options, or set the FORTE_API_TOKEN environment variable (Node.js only).');
30
+ var headers = {};
31
+ if (token) {
32
+ headers.Authorization = "Bearer ".concat(token);
30
33
  }
31
34
  var config = new runtime_1.Configuration({
32
35
  basePath: (_c = options.baseUrl) !== null && _c !== void 0 ? _c : 'https://api.forteplatforms.com',
33
- headers: { Authorization: "Bearer ".concat(token) },
36
+ headers: headers,
37
+ // Always include credentials so browsers send the Forte-User-Session-Token cookie
38
+ // cross-origin. No-op for Node.js fetch.
39
+ credentials: 'include',
34
40
  });
35
41
  this.projects = new ProjectsServerApi_1.ProjectsServerApi(config);
36
42
  this.users = new UsersServerApi_1.UsersServerApi(config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forteplatforms/sdk",
3
- "version": "1.0.156",
3
+ "version": "1.0.163",
4
4
  "description": "Official TypeScript SDK for Forte Platforms",
5
5
  "author": "Forte Platforms <support@forteplatforms.com>",
6
6
  "repository": {