@ampsec/platform-client 84.39.0 → 84.39.1

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.
@@ -1,5 +1,6 @@
1
- import { PlatformActionExecutionDto, PlatformActionExecutionUpsertDto, PlatformConnectorSyncDto, PlatformConnectorSyncUpsertDto, PlatformContextDto, PlatformContextUpsertDto, PlatformConversationContextDto, PlatformConversationContextUpsertDto, PlatformConversationDto, PlatformConversationUpsertDto, PlatformCustomActionDto, PlatformCustomActionUpsertDto, PlatformCustomScoreCohortDto, PlatformCustomScoreCohortUpsertDto, PlatformCustomScoreValueDto, PlatformCustomScoreValueUpsertDto, PlatformDialogueDto, PlatformDialogueUpsertDto, PlatformFindingSpecDto, PlatformWebhookProviderDto, PlatformWebhookProviderUpsertDto, PlatformWebhookRegistrationDto, PlatformWebhookRegistrationUpsertDto, PlatformFindingSpecUpsertDto, PlatformFlowSpecDto, PlatformFlowSpecUpsertDto, PlatformFlowStateDto, PlatformFlowStateUpsertDto, PlatformJobExecutionStateDto, PlatformJobExecutionStateUpsertDto, PlatformJobSpecDto, PlatformJobSpecUpsertDto, PlatformNotificationDto, PlatformNotificationUpsertDto, PlatformProviderUpsertDto, PlatformReportResultDto, PlatformReportResultUpsertDto, PlatformRiskContributorDto, PlatformRiskContributorUpsertDto, PlatformSaasComponentDto, PlatformSaasComponentUpsertDto, PlatformStagedSaasAssetDto, PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasUserDto, PlatformStagedSaasUserUpsertDto, PlatformTokenDto, PlatformTokenUpsertDto, ProviderDto } from '../dto';
1
+ import { PlatformActionExecutionDto, PlatformActionExecutionUpsertDto, PlatformConnectorSyncDto, PlatformConnectorSyncUpsertDto, PlatformContextDto, PlatformContextUpsertDto, PlatformConversationContextDto, PlatformConversationContextUpsertDto, PlatformConversationDto, PlatformConversationUpsertDto, PlatformCustomScoreCohortDto, PlatformCustomScoreCohortUpsertDto, PlatformCustomScoreValueDto, PlatformCustomScoreValueUpsertDto, PlatformDialogueDto, PlatformDialogueUpsertDto, PlatformFindingSpecDto, PlatformWebhookProviderDto, PlatformWebhookProviderUpsertDto, PlatformWebhookRegistrationDto, PlatformWebhookRegistrationUpsertDto, PlatformFindingSpecUpsertDto, PlatformFlowSpecDto, PlatformFlowSpecUpsertDto, PlatformFlowStateDto, PlatformFlowStateUpsertDto, PlatformJobExecutionStateDto, PlatformJobExecutionStateUpsertDto, PlatformJobSpecDto, PlatformJobSpecUpsertDto, PlatformNotificationDto, PlatformNotificationUpsertDto, PlatformProviderUpsertDto, PlatformReportResultDto, PlatformReportResultUpsertDto, PlatformRiskContributorDto, PlatformRiskContributorUpsertDto, PlatformSaasComponentDto, PlatformSaasComponentUpsertDto, PlatformStagedSaasAssetDto, PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasUserDto, PlatformStagedSaasUserUpsertDto, PlatformTokenDto, PlatformTokenUpsertDto, ProviderDto } from '../dto';
2
2
  import { AmpEntityService, AmpSdkAssetService, AmpSdkTenantService, AmpSdkUserService, TenantNotesService, TruncatableAmpEntityService } from './entity.service';
3
+ import { AmpSdkCustomActionsService } from './customActions.platform.service';
3
4
  import { AmpRestClientOptions, RestClient } from './rest';
4
5
  import { EnumService } from './rest/EnumService';
5
6
  import { AmpSdkSettingsService } from './settings.service';
@@ -30,7 +31,7 @@ export declare class AmpSdkServices {
30
31
  readonly connectors: PlatformConnectorService;
31
32
  readonly connectorSyncs: AmpEntityService<PlatformConnectorSyncUpsertDto, PlatformConnectorSyncDto>;
32
33
  readonly contentful: ContentfulService;
33
- readonly customActions: AmpEntityService<PlatformCustomActionUpsertDto, PlatformCustomActionDto>;
34
+ readonly customActions: AmpSdkCustomActionsService;
34
35
  readonly customScoreCohorts: AmpEntityService<PlatformCustomScoreCohortUpsertDto, PlatformCustomScoreCohortDto>;
35
36
  readonly customScoreValues: AmpEntityService<PlatformCustomScoreValueUpsertDto, PlatformCustomScoreValueDto>;
36
37
  readonly engagements: EngagementService;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AmpSdkServices = void 0;
4
4
  const entity_service_1 = require("./entity.service");
5
+ const customActions_platform_service_1 = require("./customActions.platform.service");
5
6
  const rest_1 = require("./rest");
6
7
  const constants_1 = require("./constants");
7
8
  const EnumService_1 = require("./rest/EnumService");
@@ -33,7 +34,7 @@ class AmpSdkServices {
33
34
  this.connectors = new connector_platform_service_1.PlatformConnectorService(rest);
34
35
  this.connectorSyncs = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CONNECTOR_SYNCS, constants_1.TARGET_API_PLATFORM);
35
36
  this.contentful = new contentful_service_1.ContentfulService();
36
- this.customActions = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_ACTIONS, constants_1.TARGET_API_PLATFORM);
37
+ this.customActions = new customActions_platform_service_1.AmpSdkCustomActionsService(rest);
37
38
  this.conversations = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CONVERSATION, constants_1.TARGET_API_PLATFORM);
38
39
  this.conversationContexts = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CONVERSATION_CONTEXT, constants_1.TARGET_API_PLATFORM);
39
40
  this.contexts = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CONTEXT, constants_1.TARGET_API_PLATFORM);
@@ -1 +1 @@
1
- {"version":3,"file":"AmpSdk.js","sourceRoot":"","sources":["../../../src/services/AmpSdk.ts"],"names":[],"mappings":";;;AAoDA,qDAS0B;AAC1B,iCAA0E;AAC1E,2CAAsD;AACtD,oDAAmE;AACnE,yDAAyD;AACzD,6DAA+J;AAC/J,6DAAuD;AACvD,yEAAmE;AACnE,6EAAsE;AACtE,mDAAqD;AACrD,0DAAqD;AACrD,yDAAmD;AACnD,+DAAwD;AACxD,yDAAyD;AACzD,iEAAiE;AAIjE;;;;;;;;GAQG;AACH,MAAa,cAAc;IA2CzB,YAAY,IAAgB;QAC1B,IAAI,C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MAAM,CAAC,QAAQ,CAAC,OAAsB;QACpC,MAAM,IAAI,GAAG,IAAA,uBAAgB,EAAC,OAAO,CAAC,CAAC;QACvC,OAAO,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;CACF;AAzGD,wCAyGC"}
@@ -0,0 +1,12 @@
1
+ import { Page, PlatformCustomActionDto, PlatformCustomActionUpsertDto } from '../dto';
2
+ import { AmpEntityServiceImpl } from './entity.service';
3
+ import { RestClient } from './rest';
4
+ export declare class AmpSdkCustomActionsService extends AmpEntityServiceImpl<PlatformCustomActionUpsertDto, PlatformCustomActionDto> {
5
+ constructor(rest: RestClient);
6
+ /**
7
+ * Returns the custom action with unmasked headers and params for execution.
8
+ * Use this when triggering custom actions (e.g. from action engine) so HTTP
9
+ * requests use the actual secret values instead of masked placeholders.
10
+ */
11
+ getByIdForExecution: (id: string) => Promise<Page<PlatformCustomActionDto>>;
12
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AmpSdkCustomActionsService = void 0;
4
+ const entity_service_1 = require("./entity.service");
5
+ const constants_1 = require("./constants");
6
+ class AmpSdkCustomActionsService extends entity_service_1.AmpEntityServiceImpl {
7
+ constructor(rest) {
8
+ super(rest, constants_1.KIND.CUSTOM_ACTIONS, constants_1.TARGET_API_PLATFORM);
9
+ /**
10
+ * Returns the custom action with unmasked headers and params for execution.
11
+ * Use this when triggering custom actions (e.g. from action engine) so HTTP
12
+ * requests use the actual secret values instead of masked placeholders.
13
+ */
14
+ this.getByIdForExecution = (id) => {
15
+ return this.getPage({
16
+ url: `/${this.targetApi}/v1/${this.kind}/${id}/_for_execution`,
17
+ method: 'GET',
18
+ });
19
+ };
20
+ }
21
+ }
22
+ exports.AmpSdkCustomActionsService = AmpSdkCustomActionsService;
23
+ //# sourceMappingURL=customActions.platform.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customActions.platform.service.js","sourceRoot":"","sources":["../../../src/services/customActions.platform.service.ts"],"names":[],"mappings":";;;AACA,qDAAsD;AAEtD,2CAAsD;AAEtD,MAAa,0BAA2B,SAAQ,qCAA4E;IAC1H,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,EAAE,gBAAI,CAAC,cAAc,EAAE,+BAAmB,CAAC,CAAC;QAGxD;;;;WAIG;QACH,wBAAmB,GAAG,CAAC,EAAU,EAA0C,EAAE;YAC3E,OAAO,IAAI,CAAC,OAAO,CAAC;gBAClB,GAAG,EAAE,IAAI,IAAI,CAAC,SAAS,OAAO,IAAI,CAAC,IAAI,IAAI,EAAE,iBAAiB;gBAC9D,MAAM,EAAE,KAAK;aACd,CAAC,CAAC;QACL,CAAC,CAAC;IAZF,CAAC;CAaF;AAhBD,gEAgBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "84.39.0",
3
+ "version": "84.39.1",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -9,8 +9,6 @@ import {
9
9
  PlatformConversationContextUpsertDto,
10
10
  PlatformConversationDto,
11
11
  PlatformConversationUpsertDto,
12
- PlatformCustomActionDto,
13
- PlatformCustomActionUpsertDto,
14
12
  PlatformCustomScoreCohortDto,
15
13
  PlatformCustomScoreCohortUpsertDto,
16
14
  PlatformCustomScoreValueDto,
@@ -60,6 +58,7 @@ import {
60
58
  TruncatableAmpEntityService,
61
59
  TruncatableAmpEntityServiceImpl,
62
60
  } from './entity.service';
61
+ import {AmpSdkCustomActionsService} from './customActions.platform.service';
63
62
  import {AmpRestClientOptions, RestClient, getAmpRestClient} from './rest';
64
63
  import {KIND, TARGET_API_PLATFORM} from './constants';
65
64
  import {DefaultEnumService, EnumService} from './rest/EnumService';
@@ -93,7 +92,7 @@ export class AmpSdkServices {
93
92
  readonly connectors: PlatformConnectorService;
94
93
  readonly connectorSyncs: AmpEntityService<PlatformConnectorSyncUpsertDto, PlatformConnectorSyncDto>;
95
94
  readonly contentful: ContentfulService;
96
- readonly customActions: AmpEntityService<PlatformCustomActionUpsertDto, PlatformCustomActionDto>;
95
+ readonly customActions: AmpSdkCustomActionsService;
97
96
  readonly customScoreCohorts: AmpEntityService<PlatformCustomScoreCohortUpsertDto, PlatformCustomScoreCohortDto>;
98
97
  readonly customScoreValues: AmpEntityService<PlatformCustomScoreValueUpsertDto, PlatformCustomScoreValueDto>;
99
98
  readonly engagements: EngagementService;
@@ -136,7 +135,7 @@ export class AmpSdkServices {
136
135
  this.connectors = new PlatformConnectorService(rest);
137
136
  this.connectorSyncs = new AmpEntityServiceImpl<PlatformConnectorSyncUpsertDto, PlatformConnectorSyncDto>(rest, KIND.CONNECTOR_SYNCS, TARGET_API_PLATFORM);
138
137
  this.contentful = new ContentfulService();
139
- this.customActions = new AmpEntityServiceImpl<PlatformCustomActionUpsertDto, PlatformCustomActionDto>(rest, KIND.CUSTOM_ACTIONS, TARGET_API_PLATFORM);
138
+ this.customActions = new AmpSdkCustomActionsService(rest);
140
139
  this.conversations = new AmpEntityServiceImpl<PlatformConversationUpsertDto, PlatformConversationDto>(rest, KIND.CONVERSATION, TARGET_API_PLATFORM);
141
140
  this.conversationContexts = new AmpEntityServiceImpl<PlatformConversationContextUpsertDto, PlatformConversationContextDto>(
142
141
  rest,
@@ -0,0 +1,22 @@
1
+ import {Page, PlatformCustomActionDto, PlatformCustomActionUpsertDto} from '../dto';
2
+ import {AmpEntityServiceImpl} from './entity.service';
3
+ import {RestClient} from './rest';
4
+ import {KIND, TARGET_API_PLATFORM} from './constants';
5
+
6
+ export class AmpSdkCustomActionsService extends AmpEntityServiceImpl<PlatformCustomActionUpsertDto, PlatformCustomActionDto> {
7
+ constructor(rest: RestClient) {
8
+ super(rest, KIND.CUSTOM_ACTIONS, TARGET_API_PLATFORM);
9
+ }
10
+
11
+ /**
12
+ * Returns the custom action with unmasked headers and params for execution.
13
+ * Use this when triggering custom actions (e.g. from action engine) so HTTP
14
+ * requests use the actual secret values instead of masked placeholders.
15
+ */
16
+ getByIdForExecution = (id: string): Promise<Page<PlatformCustomActionDto>> => {
17
+ return this.getPage({
18
+ url: `/${this.targetApi}/v1/${this.kind}/${id}/_for_execution`,
19
+ method: 'GET',
20
+ });
21
+ };
22
+ }