@envsync-cloud/envsync-ts-sdk 0.3.3 → 0.3.7

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/index.d.mts CHANGED
@@ -338,10 +338,13 @@ declare class AuditLogsService {
338
338
  * Retrieve audit logs for the organization with pagination
339
339
  * @param page
340
340
  * @param perPage
341
+ * @param filterByUser
342
+ * @param filterByCategory
343
+ * @param filterByPastTime
341
344
  * @returns GetAuditLogsResponseWrapper Audit logs retrieved successfully
342
345
  * @throws ApiError
343
346
  */
344
- getAuditLogs(page?: string, perPage?: string): CancelablePromise<GetAuditLogsResponseWrapper>;
347
+ getAuditLogs(page?: string, perPage?: string, filterByUser?: string, filterByCategory?: 'app*' | 'audit_log*' | 'env*' | 'env_store*' | 'secret_store*' | 'onboarding*' | 'org*' | 'role*' | 'user*' | 'api_key*' | 'webhook*' | 'cli*', filterByPastTime?: 'last_3_hours' | 'last_24_hours' | 'last_7_days' | 'last_30_days' | 'last_90_days' | 'last_180_days' | 'last_1_year' | 'all_time'): CancelablePromise<GetAuditLogsResponseWrapper>;
345
348
  }
346
349
 
347
350
  type RoleResponse = {
@@ -658,6 +661,7 @@ type EnvPitStateResponse = Array<{
658
661
  key: string;
659
662
  value: string;
660
663
  last_updated: string;
664
+ operation: 'CREATE' | 'UPDATE' | 'DELETE';
661
665
  }>;
662
666
 
663
667
  type EnvTimestampRequest = {
@@ -1581,7 +1585,7 @@ type CreateWebhookRequest = {
1581
1585
  event_types: Array<string>;
1582
1586
  webhook_type: CreateWebhookRequest.webhook_type;
1583
1587
  linked_to?: CreateWebhookRequest.linked_to;
1584
- app_id?: string;
1588
+ app_id?: string | null;
1585
1589
  };
1586
1590
  declare namespace CreateWebhookRequest {
1587
1591
  enum webhook_type {
package/dist/index.d.ts CHANGED
@@ -338,10 +338,13 @@ declare class AuditLogsService {
338
338
  * Retrieve audit logs for the organization with pagination
339
339
  * @param page
340
340
  * @param perPage
341
+ * @param filterByUser
342
+ * @param filterByCategory
343
+ * @param filterByPastTime
341
344
  * @returns GetAuditLogsResponseWrapper Audit logs retrieved successfully
342
345
  * @throws ApiError
343
346
  */
344
- getAuditLogs(page?: string, perPage?: string): CancelablePromise<GetAuditLogsResponseWrapper>;
347
+ getAuditLogs(page?: string, perPage?: string, filterByUser?: string, filterByCategory?: 'app*' | 'audit_log*' | 'env*' | 'env_store*' | 'secret_store*' | 'onboarding*' | 'org*' | 'role*' | 'user*' | 'api_key*' | 'webhook*' | 'cli*', filterByPastTime?: 'last_3_hours' | 'last_24_hours' | 'last_7_days' | 'last_30_days' | 'last_90_days' | 'last_180_days' | 'last_1_year' | 'all_time'): CancelablePromise<GetAuditLogsResponseWrapper>;
345
348
  }
346
349
 
347
350
  type RoleResponse = {
@@ -658,6 +661,7 @@ type EnvPitStateResponse = Array<{
658
661
  key: string;
659
662
  value: string;
660
663
  last_updated: string;
664
+ operation: 'CREATE' | 'UPDATE' | 'DELETE';
661
665
  }>;
662
666
 
663
667
  type EnvTimestampRequest = {
@@ -1581,7 +1585,7 @@ type CreateWebhookRequest = {
1581
1585
  event_types: Array<string>;
1582
1586
  webhook_type: CreateWebhookRequest.webhook_type;
1583
1587
  linked_to?: CreateWebhookRequest.linked_to;
1584
- app_id?: string;
1588
+ app_id?: string | null;
1585
1589
  };
1586
1590
  declare namespace CreateWebhookRequest {
1587
1591
  enum webhook_type {
@@ -694,16 +694,22 @@
694
694
  * Retrieve audit logs for the organization with pagination
695
695
  * @param page
696
696
  * @param perPage
697
+ * @param filterByUser
698
+ * @param filterByCategory
699
+ * @param filterByPastTime
697
700
  * @returns GetAuditLogsResponseWrapper Audit logs retrieved successfully
698
701
  * @throws ApiError
699
702
  */
700
- getAuditLogs(page = "1", perPage = "20") {
703
+ getAuditLogs(page = "1", perPage = "20", filterByUser, filterByCategory, filterByPastTime) {
701
704
  return this.httpRequest.request({
702
705
  method: "GET",
703
706
  url: "/api/audit_log",
704
707
  query: {
705
708
  "page": page,
706
- "per_page": perPage
709
+ "per_page": perPage,
710
+ "filter_by_user": filterByUser,
711
+ "filter_by_category": filterByCategory,
712
+ "filter_by_past_time": filterByPastTime
707
713
  },
708
714
  errors: {
709
715
  500: `Internal server error`
@@ -2176,7 +2182,7 @@
2176
2182
  constructor(config, HttpRequest = FetchHttpRequest) {
2177
2183
  this.request = new HttpRequest({
2178
2184
  BASE: config?.BASE ?? "http://localhost:8600",
2179
- VERSION: config?.VERSION ?? "0.3.3",
2185
+ VERSION: config?.VERSION ?? "0.3.7",
2180
2186
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
2181
2187
  CREDENTIALS: config?.CREDENTIALS ?? "include",
2182
2188
  TOKEN: config?.TOKEN,
@@ -2209,7 +2215,7 @@
2209
2215
  // src/core/OpenAPI.ts
2210
2216
  var OpenAPI = {
2211
2217
  BASE: "http://localhost:8600",
2212
- VERSION: "0.3.3",
2218
+ VERSION: "0.3.7",
2213
2219
  WITH_CREDENTIALS: false,
2214
2220
  CREDENTIALS: "include",
2215
2221
  TOKEN: void 0,
package/dist/index.js CHANGED
@@ -746,16 +746,22 @@ var AuditLogsService = class {
746
746
  * Retrieve audit logs for the organization with pagination
747
747
  * @param page
748
748
  * @param perPage
749
+ * @param filterByUser
750
+ * @param filterByCategory
751
+ * @param filterByPastTime
749
752
  * @returns GetAuditLogsResponseWrapper Audit logs retrieved successfully
750
753
  * @throws ApiError
751
754
  */
752
- getAuditLogs(page = "1", perPage = "20") {
755
+ getAuditLogs(page = "1", perPage = "20", filterByUser, filterByCategory, filterByPastTime) {
753
756
  return this.httpRequest.request({
754
757
  method: "GET",
755
758
  url: "/api/audit_log",
756
759
  query: {
757
760
  "page": page,
758
- "per_page": perPage
761
+ "per_page": perPage,
762
+ "filter_by_user": filterByUser,
763
+ "filter_by_category": filterByCategory,
764
+ "filter_by_past_time": filterByPastTime
759
765
  },
760
766
  errors: {
761
767
  500: `Internal server error`
@@ -2228,7 +2234,7 @@ var EnvSyncAPISDK = class {
2228
2234
  constructor(config, HttpRequest = FetchHttpRequest) {
2229
2235
  this.request = new HttpRequest({
2230
2236
  BASE: config?.BASE ?? "http://localhost:8600",
2231
- VERSION: config?.VERSION ?? "0.3.3",
2237
+ VERSION: config?.VERSION ?? "0.3.7",
2232
2238
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
2233
2239
  CREDENTIALS: config?.CREDENTIALS ?? "include",
2234
2240
  TOKEN: config?.TOKEN,
@@ -2261,7 +2267,7 @@ var EnvSyncAPISDK = class {
2261
2267
  // src/core/OpenAPI.ts
2262
2268
  var OpenAPI = {
2263
2269
  BASE: "http://localhost:8600",
2264
- VERSION: "0.3.3",
2270
+ VERSION: "0.3.7",
2265
2271
  WITH_CREDENTIALS: false,
2266
2272
  CREDENTIALS: "include",
2267
2273
  TOKEN: void 0,
package/dist/index.mjs CHANGED
@@ -692,16 +692,22 @@ var AuditLogsService = class {
692
692
  * Retrieve audit logs for the organization with pagination
693
693
  * @param page
694
694
  * @param perPage
695
+ * @param filterByUser
696
+ * @param filterByCategory
697
+ * @param filterByPastTime
695
698
  * @returns GetAuditLogsResponseWrapper Audit logs retrieved successfully
696
699
  * @throws ApiError
697
700
  */
698
- getAuditLogs(page = "1", perPage = "20") {
701
+ getAuditLogs(page = "1", perPage = "20", filterByUser, filterByCategory, filterByPastTime) {
699
702
  return this.httpRequest.request({
700
703
  method: "GET",
701
704
  url: "/api/audit_log",
702
705
  query: {
703
706
  "page": page,
704
- "per_page": perPage
707
+ "per_page": perPage,
708
+ "filter_by_user": filterByUser,
709
+ "filter_by_category": filterByCategory,
710
+ "filter_by_past_time": filterByPastTime
705
711
  },
706
712
  errors: {
707
713
  500: `Internal server error`
@@ -2174,7 +2180,7 @@ var EnvSyncAPISDK = class {
2174
2180
  constructor(config, HttpRequest = FetchHttpRequest) {
2175
2181
  this.request = new HttpRequest({
2176
2182
  BASE: config?.BASE ?? "http://localhost:8600",
2177
- VERSION: config?.VERSION ?? "0.3.3",
2183
+ VERSION: config?.VERSION ?? "0.3.7",
2178
2184
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
2179
2185
  CREDENTIALS: config?.CREDENTIALS ?? "include",
2180
2186
  TOKEN: config?.TOKEN,
@@ -2207,7 +2213,7 @@ var EnvSyncAPISDK = class {
2207
2213
  // src/core/OpenAPI.ts
2208
2214
  var OpenAPI = {
2209
2215
  BASE: "http://localhost:8600",
2210
- VERSION: "0.3.3",
2216
+ VERSION: "0.3.7",
2211
2217
  WITH_CREDENTIALS: false,
2212
2218
  CREDENTIALS: "include",
2213
2219
  TOKEN: void 0,
package/package.json CHANGED
@@ -33,7 +33,7 @@
33
33
  "peerDependencies": {
34
34
  "typescript": "^5"
35
35
  },
36
- "version": "0.3.3",
36
+ "version": "0.3.7",
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  }