@forteplatforms/sdk 1.0.395 → 1.0.396

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.
@@ -493,6 +493,11 @@ export interface ListManagedDatabasesRequest {
493
493
  page?: number;
494
494
  pageSize?: number;
495
495
  }
496
+ export interface ListPaymentTriggerInvocationsRequest {
497
+ projectId: string;
498
+ triggerId: string;
499
+ nextToken?: string;
500
+ }
496
501
  export interface ListPaymentTriggersRequest {
497
502
  projectId: string;
498
503
  }
@@ -1646,6 +1651,16 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
1646
1651
  /**
1647
1652
  */
1648
1653
  listManagedDatabases(requestParameters: ListManagedDatabasesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListManagedDatabasesResponse>;
1654
+ /**
1655
+ * Creates request options for listPaymentTriggerInvocations without sending the request
1656
+ */
1657
+ listPaymentTriggerInvocationsRequestOpts(requestParameters: ListPaymentTriggerInvocationsRequest): Promise<runtime.RequestOpts>;
1658
+ /**
1659
+ */
1660
+ listPaymentTriggerInvocationsRaw(requestParameters: ListPaymentTriggerInvocationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseRequestLogSummary>>;
1661
+ /**
1662
+ */
1663
+ listPaymentTriggerInvocations(requestParameters: ListPaymentTriggerInvocationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseRequestLogSummary>;
1649
1664
  /**
1650
1665
  * Creates request options for listPaymentTriggers without sending the request
1651
1666
  */
@@ -5156,6 +5156,70 @@ var ProjectsServerApi = /** @class */ (function (_super) {
5156
5156
  });
5157
5157
  });
5158
5158
  };
5159
+ /**
5160
+ * Creates request options for listPaymentTriggerInvocations without sending the request
5161
+ */
5162
+ ProjectsServerApi.prototype.listPaymentTriggerInvocationsRequestOpts = function (requestParameters) {
5163
+ return __awaiter(this, void 0, void 0, function () {
5164
+ var queryParameters, headerParameters, urlPath;
5165
+ return __generator(this, function (_a) {
5166
+ if (requestParameters['projectId'] == null) {
5167
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listPaymentTriggerInvocations().');
5168
+ }
5169
+ if (requestParameters['triggerId'] == null) {
5170
+ throw new runtime.RequiredError('triggerId', 'Required parameter "triggerId" was null or undefined when calling listPaymentTriggerInvocations().');
5171
+ }
5172
+ queryParameters = {};
5173
+ if (requestParameters['nextToken'] != null) {
5174
+ queryParameters['nextToken'] = requestParameters['nextToken'];
5175
+ }
5176
+ headerParameters = {};
5177
+ urlPath = "/api/v1/projects/{projectId}/payment-triggers/{triggerId}/invocations";
5178
+ urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
5179
+ urlPath = urlPath.replace('{triggerId}', encodeURIComponent(String(requestParameters['triggerId'])));
5180
+ return [2 /*return*/, {
5181
+ path: urlPath,
5182
+ method: 'GET',
5183
+ headers: headerParameters,
5184
+ query: queryParameters,
5185
+ }];
5186
+ });
5187
+ });
5188
+ };
5189
+ /**
5190
+ */
5191
+ ProjectsServerApi.prototype.listPaymentTriggerInvocationsRaw = function (requestParameters, initOverrides) {
5192
+ return __awaiter(this, void 0, void 0, function () {
5193
+ var requestOptions, response;
5194
+ return __generator(this, function (_a) {
5195
+ switch (_a.label) {
5196
+ case 0: return [4 /*yield*/, this.listPaymentTriggerInvocationsRequestOpts(requestParameters)];
5197
+ case 1:
5198
+ requestOptions = _a.sent();
5199
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
5200
+ case 2:
5201
+ response = _a.sent();
5202
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedResponseRequestLogSummary_1.PaginatedResponseRequestLogSummaryFromJSON)(jsonValue); })];
5203
+ }
5204
+ });
5205
+ });
5206
+ };
5207
+ /**
5208
+ */
5209
+ ProjectsServerApi.prototype.listPaymentTriggerInvocations = function (requestParameters, initOverrides) {
5210
+ return __awaiter(this, void 0, void 0, function () {
5211
+ var response;
5212
+ return __generator(this, function (_a) {
5213
+ switch (_a.label) {
5214
+ case 0: return [4 /*yield*/, this.listPaymentTriggerInvocationsRaw(requestParameters, initOverrides)];
5215
+ case 1:
5216
+ response = _a.sent();
5217
+ return [4 /*yield*/, response.value()];
5218
+ case 2: return [2 /*return*/, _a.sent()];
5219
+ }
5220
+ });
5221
+ });
5222
+ };
5159
5223
  /**
5160
5224
  * Creates request options for listPaymentTriggers without sending the request
5161
5225
  */
@@ -132,6 +132,7 @@ export declare const ForteApiExceptionErrorCodeType: {
132
132
  readonly SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED";
133
133
  readonly GOOGLE_OAUTH_NOT_CONFIGURED: "GOOGLE_OAUTH_NOT_CONFIGURED";
134
134
  readonly GOOGLE_IDENTITY_ALREADY_LINKED: "GOOGLE_IDENTITY_ALREADY_LINKED";
135
+ readonly INVALID_GOOGLE_CREDENTIAL: "INVALID_GOOGLE_CREDENTIAL";
135
136
  readonly TERMS_OF_SERVICE_CANNOT_BE_UNACCEPTED: "TERMS_OF_SERVICE_CANNOT_BE_UNACCEPTED";
136
137
  readonly TERMS_OF_SERVICE_NOT_ACCEPTED: "TERMS_OF_SERVICE_NOT_ACCEPTED";
137
138
  readonly API_KEY_NOT_FOUND: "API_KEY_NOT_FOUND";
@@ -117,6 +117,7 @@ exports.ForteApiExceptionErrorCodeType = {
117
117
  SERVICE_QUOTA_EXCEEDED: 'SERVICE_QUOTA_EXCEEDED',
118
118
  GOOGLE_OAUTH_NOT_CONFIGURED: 'GOOGLE_OAUTH_NOT_CONFIGURED',
119
119
  GOOGLE_IDENTITY_ALREADY_LINKED: 'GOOGLE_IDENTITY_ALREADY_LINKED',
120
+ INVALID_GOOGLE_CREDENTIAL: 'INVALID_GOOGLE_CREDENTIAL',
120
121
  TERMS_OF_SERVICE_CANNOT_BE_UNACCEPTED: 'TERMS_OF_SERVICE_CANNOT_BE_UNACCEPTED',
121
122
  TERMS_OF_SERVICE_NOT_ACCEPTED: 'TERMS_OF_SERVICE_NOT_ACCEPTED',
122
123
  API_KEY_NOT_FOUND: 'API_KEY_NOT_FOUND',
@@ -0,0 +1,52 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface InternalSource
16
+ */
17
+ export interface InternalSource {
18
+ /**
19
+ *
20
+ * @type {InternalSourceTypeType}
21
+ * @memberof InternalSource
22
+ */
23
+ type: InternalSourceTypeType;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof InternalSource
28
+ */
29
+ id: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof InternalSource
34
+ */
35
+ subjectId?: string;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const InternalSourceTypeType: {
41
+ readonly PAYMENT_TRIGGER: "PAYMENT_TRIGGER";
42
+ readonly ACTION: "ACTION";
43
+ };
44
+ export type InternalSourceTypeType = typeof InternalSourceTypeType[keyof typeof InternalSourceTypeType];
45
+ /**
46
+ * Check if a given object implements the InternalSource interface.
47
+ */
48
+ export declare function instanceOfInternalSource(value: object): value is InternalSource;
49
+ export declare function InternalSourceFromJSON(json: any): InternalSource;
50
+ export declare function InternalSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): InternalSource;
51
+ export declare function InternalSourceToJSON(json: any): InternalSource;
52
+ export declare function InternalSourceToJSONTyped(value?: InternalSource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,65 @@
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.InternalSourceTypeType = void 0;
17
+ exports.instanceOfInternalSource = instanceOfInternalSource;
18
+ exports.InternalSourceFromJSON = InternalSourceFromJSON;
19
+ exports.InternalSourceFromJSONTyped = InternalSourceFromJSONTyped;
20
+ exports.InternalSourceToJSON = InternalSourceToJSON;
21
+ exports.InternalSourceToJSONTyped = InternalSourceToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.InternalSourceTypeType = {
26
+ PAYMENT_TRIGGER: 'PAYMENT_TRIGGER',
27
+ ACTION: 'ACTION'
28
+ };
29
+ /**
30
+ * Check if a given object implements the InternalSource interface.
31
+ */
32
+ function instanceOfInternalSource(value) {
33
+ if (!('type' in value) || value['type'] === undefined)
34
+ return false;
35
+ if (!('id' in value) || value['id'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function InternalSourceFromJSON(json) {
40
+ return InternalSourceFromJSONTyped(json, false);
41
+ }
42
+ function InternalSourceFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'type': json['type'],
48
+ 'id': json['id'],
49
+ 'subjectId': json['subjectId'] == null ? undefined : json['subjectId'],
50
+ };
51
+ }
52
+ function InternalSourceToJSON(json) {
53
+ return InternalSourceToJSONTyped(json, false);
54
+ }
55
+ function InternalSourceToJSONTyped(value, ignoreDiscriminator) {
56
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'type': value['type'],
62
+ 'id': value['id'],
63
+ 'subjectId': value['subjectId'],
64
+ };
65
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { RequestLogObjectMeta } from './RequestLogObjectMeta';
13
+ import type { InternalSource } from './InternalSource';
13
14
  import type { BodyRef } from './BodyRef';
14
15
  /**
15
16
  *
@@ -117,6 +118,12 @@ export interface RequestLogObject {
117
118
  * @memberof RequestLogObject
118
119
  */
119
120
  retryCount?: number;
121
+ /**
122
+ *
123
+ * @type {InternalSource}
124
+ * @memberof RequestLogObject
125
+ */
126
+ internalSource?: InternalSource;
120
127
  /**
121
128
  *
122
129
  * @type {string}
@@ -19,6 +19,7 @@ exports.RequestLogObjectFromJSONTyped = RequestLogObjectFromJSONTyped;
19
19
  exports.RequestLogObjectToJSON = RequestLogObjectToJSON;
20
20
  exports.RequestLogObjectToJSONTyped = RequestLogObjectToJSONTyped;
21
21
  var RequestLogObjectMeta_1 = require("./RequestLogObjectMeta");
22
+ var InternalSource_1 = require("./InternalSource");
22
23
  var BodyRef_1 = require("./BodyRef");
23
24
  /**
24
25
  * Check if a given object implements the RequestLogObject interface.
@@ -66,6 +67,7 @@ function RequestLogObjectFromJSONTyped(json, ignoreDiscriminator) {
66
67
  'requestHeaders': json['requestHeaders'],
67
68
  'responseHeaders': json['responseHeaders'],
68
69
  'retryCount': json['retryCount'] == null ? undefined : json['retryCount'],
70
+ 'internalSource': json['internalSource'] == null ? undefined : (0, InternalSource_1.InternalSourceFromJSON)(json['internalSource']),
69
71
  'exceptionType': json['exceptionType'] == null ? undefined : json['exceptionType'],
70
72
  'exceptionMessage': json['exceptionMessage'] == null ? undefined : json['exceptionMessage'],
71
73
  'exceptionStackTrace': json['exceptionStackTrace'] == null ? undefined : json['exceptionStackTrace'],
@@ -98,6 +100,7 @@ function RequestLogObjectToJSONTyped(value, ignoreDiscriminator) {
98
100
  'requestHeaders': value['requestHeaders'],
99
101
  'responseHeaders': value['responseHeaders'],
100
102
  'retryCount': value['retryCount'],
103
+ 'internalSource': (0, InternalSource_1.InternalSourceToJSON)(value['internalSource']),
101
104
  'exceptionType': value['exceptionType'],
102
105
  'exceptionMessage': value['exceptionMessage'],
103
106
  'exceptionStackTrace': value['exceptionStackTrace'],
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { RequestLogObjectMeta } from './RequestLogObjectMeta';
13
+ import type { InternalSource } from './InternalSource';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -52,6 +53,12 @@ export interface RequestLogSummary {
52
53
  * @memberof RequestLogSummary
53
54
  */
54
55
  exceptionType?: string;
56
+ /**
57
+ *
58
+ * @type {InternalSource}
59
+ * @memberof RequestLogSummary
60
+ */
61
+ internalSource?: InternalSource;
55
62
  }
56
63
  /**
57
64
  * Check if a given object implements the RequestLogSummary interface.
@@ -19,6 +19,7 @@ exports.RequestLogSummaryFromJSONTyped = RequestLogSummaryFromJSONTyped;
19
19
  exports.RequestLogSummaryToJSON = RequestLogSummaryToJSON;
20
20
  exports.RequestLogSummaryToJSONTyped = RequestLogSummaryToJSONTyped;
21
21
  var RequestLogObjectMeta_1 = require("./RequestLogObjectMeta");
22
+ var InternalSource_1 = require("./InternalSource");
22
23
  /**
23
24
  * Check if a given object implements the RequestLogSummary interface.
24
25
  */
@@ -49,6 +50,7 @@ function RequestLogSummaryFromJSONTyped(json, ignoreDiscriminator) {
49
50
  'statusCode': json['statusCode'],
50
51
  'totalLatencyMilliseconds': json['totalLatencyMilliseconds'],
51
52
  'exceptionType': json['exceptionType'] == null ? undefined : json['exceptionType'],
53
+ 'internalSource': json['internalSource'] == null ? undefined : (0, InternalSource_1.InternalSourceFromJSON)(json['internalSource']),
52
54
  };
53
55
  }
54
56
  function RequestLogSummaryToJSON(json) {
@@ -66,5 +68,6 @@ function RequestLogSummaryToJSONTyped(value, ignoreDiscriminator) {
66
68
  'statusCode': value['statusCode'],
67
69
  'totalLatencyMilliseconds': value['totalLatencyMilliseconds'],
68
70
  'exceptionType': value['exceptionType'],
71
+ 'internalSource': (0, InternalSource_1.InternalSourceToJSON)(value['internalSource']),
69
72
  };
70
73
  }
@@ -123,16 +123,16 @@ export interface UserObject {
123
123
  backupCodesGeneratedAt?: Date;
124
124
  /**
125
125
  *
126
- * @type {boolean}
126
+ * @type {number}
127
127
  * @memberof UserObject
128
128
  */
129
- hasPassword?: boolean;
129
+ remainingBackupCodeCount?: number;
130
130
  /**
131
131
  *
132
- * @type {number}
132
+ * @type {boolean}
133
133
  * @memberof UserObject
134
134
  */
135
- remainingBackupCodeCount?: number;
135
+ hasPassword?: boolean;
136
136
  }
137
137
  /**
138
138
  * @export
@@ -72,8 +72,8 @@ function UserObjectFromJSONTyped(json, ignoreDiscriminator) {
72
72
  'passwordResetLastRequestedAt': json['passwordResetLastRequestedAt'] == null ? undefined : (new Date(json['passwordResetLastRequestedAt'])),
73
73
  'mfaMethods': json['mfaMethods'] == null ? undefined : (json['mfaMethods'].map(MfaMethod_1.MfaMethodFromJSON)),
74
74
  'backupCodesGeneratedAt': json['backupCodesGeneratedAt'] == null ? undefined : (new Date(json['backupCodesGeneratedAt'])),
75
- 'hasPassword': json['hasPassword'] == null ? undefined : json['hasPassword'],
76
75
  'remainingBackupCodeCount': json['remainingBackupCodeCount'] == null ? undefined : json['remainingBackupCodeCount'],
76
+ 'hasPassword': json['hasPassword'] == null ? undefined : json['hasPassword'],
77
77
  };
78
78
  }
79
79
  function UserObjectToJSON(json) {
@@ -102,7 +102,7 @@ function UserObjectToJSONTyped(value, ignoreDiscriminator) {
102
102
  'passwordResetLastRequestedAt': value['passwordResetLastRequestedAt'] == null ? value['passwordResetLastRequestedAt'] : value['passwordResetLastRequestedAt'].toISOString(),
103
103
  'mfaMethods': value['mfaMethods'] == null ? undefined : (value['mfaMethods'].map(MfaMethod_1.MfaMethodToJSON)),
104
104
  'backupCodesGeneratedAt': value['backupCodesGeneratedAt'] == null ? value['backupCodesGeneratedAt'] : value['backupCodesGeneratedAt'].toISOString(),
105
- 'hasPassword': value['hasPassword'],
106
105
  'remainingBackupCodeCount': value['remainingBackupCodeCount'],
106
+ 'hasPassword': value['hasPassword'],
107
107
  };
108
108
  }
@@ -75,6 +75,7 @@ export * from './HealthCheckDetectionOutput';
75
75
  export * from './HealthCheckDetectionResponse';
76
76
  export * from './ImpersonationTokenResponse';
77
77
  export * from './InstanceCountSeries';
78
+ export * from './InternalSource';
78
79
  export * from './LatencyMetrics';
79
80
  export * from './LatencyPercentileSeries';
80
81
  export * from './LatencyStats';
@@ -93,6 +93,7 @@ __exportStar(require("./HealthCheckDetectionOutput"), exports);
93
93
  __exportStar(require("./HealthCheckDetectionResponse"), exports);
94
94
  __exportStar(require("./ImpersonationTokenResponse"), exports);
95
95
  __exportStar(require("./InstanceCountSeries"), exports);
96
+ __exportStar(require("./InternalSource"), exports);
96
97
  __exportStar(require("./LatencyMetrics"), exports);
97
98
  __exportStar(require("./LatencyPercentileSeries"), exports);
98
99
  __exportStar(require("./LatencyStats"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forteplatforms/sdk",
3
- "version": "1.0.395",
3
+ "version": "1.0.396",
4
4
  "description": "Official TypeScript SDK for Forte Platforms",
5
5
  "author": "Forte Platforms <support@forteplatforms.com>",
6
6
  "repository": {