magicbell-js 0.2.0 → 1.0.0
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/README.md +10 -25
- package/dist/commonjs/project-client/http/transport/request-builder.js.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast-collection.d.ts +26 -26
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast.d.ts +16 -16
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast.js +3 -3
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast.js.map +1 -1
- package/dist/commonjs/project-client/services/integrations/integrations-service.d.ts +1 -105
- package/dist/commonjs/project-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/integrations/integrations-service.js +0 -419
- package/dist/commonjs/project-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/commonjs/project-client/services/integrations/models/index.d.ts +0 -14
- package/dist/commonjs/project-client/services/integrations/models/index.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/integrations/models/index.js.map +1 -1
- package/dist/commonjs/project-client/services/integrations/request-params.d.ts +0 -15
- package/dist/commonjs/project-client/services/integrations/request-params.d.ts.map +1 -1
- package/dist/commonjs/user-client/http/transport/request-builder.js.map +1 -1
- package/dist/commonjs/user-client/services/integrations/integrations-service.d.ts +0 -7
- package/dist/commonjs/user-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/commonjs/user-client/services/integrations/integrations-service.js +0 -28
- package/dist/commonjs/user-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/commonjs/user-client/services/integrations/models/index.d.ts +0 -1
- package/dist/commonjs/user-client/services/integrations/models/index.d.ts.map +1 -1
- package/dist/esm/project-client/http/transport/request-builder.js.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/broadcast-collection.d.ts +26 -26
- package/dist/esm/project-client/services/broadcasts/models/broadcast.d.ts +16 -16
- package/dist/esm/project-client/services/broadcasts/models/broadcast.js +3 -3
- package/dist/esm/project-client/services/broadcasts/models/broadcast.js.map +1 -1
- package/dist/esm/project-client/services/integrations/integrations-service.d.ts +1 -105
- package/dist/esm/project-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/esm/project-client/services/integrations/integrations-service.js +0 -419
- package/dist/esm/project-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/esm/project-client/services/integrations/models/index.d.ts +0 -14
- package/dist/esm/project-client/services/integrations/models/index.d.ts.map +1 -1
- package/dist/esm/project-client/services/integrations/models/index.js.map +1 -1
- package/dist/esm/project-client/services/integrations/request-params.d.ts +0 -15
- package/dist/esm/project-client/services/integrations/request-params.d.ts.map +1 -1
- package/dist/esm/user-client/http/transport/request-builder.js.map +1 -1
- package/dist/esm/user-client/services/integrations/integrations-service.d.ts +0 -7
- package/dist/esm/user-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/esm/user-client/services/integrations/integrations-service.js +0 -28
- package/dist/esm/user-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/esm/user-client/services/integrations/models/index.d.ts +0 -1
- package/dist/esm/user-client/services/integrations/models/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/project-client/http/transport/request-builder.ts +1 -1
- package/src/project-client/services/broadcasts/models/broadcast.ts +3 -3
- package/src/project-client/services/integrations/integrations-service.ts +0 -485
- package/src/project-client/services/integrations/models/index.ts +0 -14
- package/src/project-client/services/integrations/request-params.ts +0 -20
- package/src/user-client/http/transport/request-builder.ts +1 -1
- package/src/user-client/services/integrations/integrations-service.ts +0 -36
- package/src/user-client/services/integrations/models/index.ts +0 -1
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-collection.d.ts +0 -312
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-collection.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-collection.js +0 -46
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-collection.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-payload.d.ts +0 -48
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-payload.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-payload.js +0 -39
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-payload.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/awssns-config.d.ts +0 -122
- package/dist/commonjs/project-client/services/integrations/models/awssns-config.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/awssns-config.js +0 -50
- package/dist/commonjs/project-client/services/integrations/models/awssns-config.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.d.ts +0 -312
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.js +0 -46
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.d.ts +0 -48
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.js +0 -39
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/event-source-config.d.ts +0 -122
- package/dist/commonjs/project-client/services/integrations/models/event-source-config.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/event-source-config.js +0 -50
- package/dist/commonjs/project-client/services/integrations/models/event-source-config.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/github-config-collection.d.ts +0 -312
- package/dist/commonjs/project-client/services/integrations/models/github-config-collection.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/github-config-collection.js +0 -46
- package/dist/commonjs/project-client/services/integrations/models/github-config-collection.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/github-config-payload.d.ts +0 -48
- package/dist/commonjs/project-client/services/integrations/models/github-config-payload.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/github-config-payload.js +0 -39
- package/dist/commonjs/project-client/services/integrations/models/github-config-payload.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/github-config.d.ts +0 -122
- package/dist/commonjs/project-client/services/integrations/models/github-config.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/github-config.js +0 -50
- package/dist/commonjs/project-client/services/integrations/models/github-config.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-collection.d.ts +0 -312
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-collection.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-collection.js +0 -46
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-collection.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.d.ts +0 -48
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.js +0 -39
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config.d.ts +0 -122
- package/dist/commonjs/project-client/services/integrations/models/stripe-config.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config.js +0 -50
- package/dist/commonjs/project-client/services/integrations/models/stripe-config.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/templates-config-collection.d.ts +0 -246
- package/dist/commonjs/project-client/services/integrations/models/templates-config-collection.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/templates-config-collection.js +0 -46
- package/dist/commonjs/project-client/services/integrations/models/templates-config-collection.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/templates-config.d.ts +0 -76
- package/dist/commonjs/project-client/services/integrations/models/templates-config.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/templates-config.js +0 -49
- package/dist/commonjs/project-client/services/integrations/models/templates-config.js.map +0 -1
- package/dist/commonjs/user-client/services/integrations/models/templates-installation.d.ts +0 -76
- package/dist/commonjs/user-client/services/integrations/models/templates-installation.d.ts.map +0 -1
- package/dist/commonjs/user-client/services/integrations/models/templates-installation.js +0 -49
- package/dist/commonjs/user-client/services/integrations/models/templates-installation.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/awssns-config-collection.d.ts +0 -312
- package/dist/esm/project-client/services/integrations/models/awssns-config-collection.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/awssns-config-collection.js +0 -43
- package/dist/esm/project-client/services/integrations/models/awssns-config-collection.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/awssns-config-payload.d.ts +0 -48
- package/dist/esm/project-client/services/integrations/models/awssns-config-payload.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/awssns-config-payload.js +0 -36
- package/dist/esm/project-client/services/integrations/models/awssns-config-payload.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/awssns-config.d.ts +0 -122
- package/dist/esm/project-client/services/integrations/models/awssns-config.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/awssns-config.js +0 -47
- package/dist/esm/project-client/services/integrations/models/awssns-config.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/event-source-config-collection.d.ts +0 -312
- package/dist/esm/project-client/services/integrations/models/event-source-config-collection.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/event-source-config-collection.js +0 -43
- package/dist/esm/project-client/services/integrations/models/event-source-config-collection.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/event-source-config-payload.d.ts +0 -48
- package/dist/esm/project-client/services/integrations/models/event-source-config-payload.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/event-source-config-payload.js +0 -36
- package/dist/esm/project-client/services/integrations/models/event-source-config-payload.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/event-source-config.d.ts +0 -122
- package/dist/esm/project-client/services/integrations/models/event-source-config.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/event-source-config.js +0 -47
- package/dist/esm/project-client/services/integrations/models/event-source-config.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/github-config-collection.d.ts +0 -312
- package/dist/esm/project-client/services/integrations/models/github-config-collection.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/github-config-collection.js +0 -43
- package/dist/esm/project-client/services/integrations/models/github-config-collection.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/github-config-payload.d.ts +0 -48
- package/dist/esm/project-client/services/integrations/models/github-config-payload.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/github-config-payload.js +0 -36
- package/dist/esm/project-client/services/integrations/models/github-config-payload.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/github-config.d.ts +0 -122
- package/dist/esm/project-client/services/integrations/models/github-config.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/github-config.js +0 -47
- package/dist/esm/project-client/services/integrations/models/github-config.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config-collection.d.ts +0 -312
- package/dist/esm/project-client/services/integrations/models/stripe-config-collection.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config-collection.js +0 -43
- package/dist/esm/project-client/services/integrations/models/stripe-config-collection.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config-payload.d.ts +0 -48
- package/dist/esm/project-client/services/integrations/models/stripe-config-payload.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config-payload.js +0 -36
- package/dist/esm/project-client/services/integrations/models/stripe-config-payload.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config.d.ts +0 -122
- package/dist/esm/project-client/services/integrations/models/stripe-config.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config.js +0 -47
- package/dist/esm/project-client/services/integrations/models/stripe-config.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/templates-config-collection.d.ts +0 -246
- package/dist/esm/project-client/services/integrations/models/templates-config-collection.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/templates-config-collection.js +0 -43
- package/dist/esm/project-client/services/integrations/models/templates-config-collection.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/templates-config.d.ts +0 -76
- package/dist/esm/project-client/services/integrations/models/templates-config.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/templates-config.js +0 -46
- package/dist/esm/project-client/services/integrations/models/templates-config.js.map +0 -1
- package/dist/esm/user-client/services/integrations/models/templates-installation.d.ts +0 -76
- package/dist/esm/user-client/services/integrations/models/templates-installation.d.ts.map +0 -1
- package/dist/esm/user-client/services/integrations/models/templates-installation.js +0 -46
- package/dist/esm/user-client/services/integrations/models/templates-installation.js.map +0 -1
- package/src/project-client/services/integrations/models/awssns-config-collection.ts +0 -54
- package/src/project-client/services/integrations/models/awssns-config-payload.ts +0 -45
- package/src/project-client/services/integrations/models/awssns-config.ts +0 -64
- package/src/project-client/services/integrations/models/event-source-config-collection.ts +0 -59
- package/src/project-client/services/integrations/models/event-source-config-payload.ts +0 -45
- package/src/project-client/services/integrations/models/event-source-config.ts +0 -64
- package/src/project-client/services/integrations/models/github-config-collection.ts +0 -54
- package/src/project-client/services/integrations/models/github-config-payload.ts +0 -45
- package/src/project-client/services/integrations/models/github-config.ts +0 -64
- package/src/project-client/services/integrations/models/stripe-config-collection.ts +0 -54
- package/src/project-client/services/integrations/models/stripe-config-payload.ts +0 -45
- package/src/project-client/services/integrations/models/stripe-config.ts +0 -64
- package/src/project-client/services/integrations/models/templates-config-collection.ts +0 -59
- package/src/project-client/services/integrations/models/templates-config.ts +0 -57
- package/src/user-client/services/integrations/models/templates-installation.ts +0 -57
|
@@ -12,21 +12,6 @@ import {
|
|
|
12
12
|
apnsConfigPayloadRequest,
|
|
13
13
|
apnsConfigPayloadResponse,
|
|
14
14
|
} from './models/apns-config-payload.js';
|
|
15
|
-
import { AwssnsConfigCollection, awssnsConfigCollectionResponse } from './models/awssns-config-collection.js';
|
|
16
|
-
import {
|
|
17
|
-
AwssnsConfigPayload,
|
|
18
|
-
awssnsConfigPayloadRequest,
|
|
19
|
-
awssnsConfigPayloadResponse,
|
|
20
|
-
} from './models/awssns-config-payload.js';
|
|
21
|
-
import {
|
|
22
|
-
EventSourceConfigCollection,
|
|
23
|
-
eventSourceConfigCollectionResponse,
|
|
24
|
-
} from './models/event-source-config-collection.js';
|
|
25
|
-
import {
|
|
26
|
-
EventSourceConfigPayload,
|
|
27
|
-
eventSourceConfigPayloadRequest,
|
|
28
|
-
eventSourceConfigPayloadResponse,
|
|
29
|
-
} from './models/event-source-config-payload.js';
|
|
30
15
|
import { ExpoConfigCollection, expoConfigCollectionResponse } from './models/expo-config-collection.js';
|
|
31
16
|
import {
|
|
32
17
|
ExpoConfigPayload,
|
|
@@ -35,12 +20,6 @@ import {
|
|
|
35
20
|
} from './models/expo-config-payload.js';
|
|
36
21
|
import { FcmConfigCollection, fcmConfigCollectionResponse } from './models/fcm-config-collection.js';
|
|
37
22
|
import { FcmConfigPayload, fcmConfigPayloadRequest, fcmConfigPayloadResponse } from './models/fcm-config-payload.js';
|
|
38
|
-
import { GithubConfigCollection, githubConfigCollectionResponse } from './models/github-config-collection.js';
|
|
39
|
-
import {
|
|
40
|
-
GithubConfigPayload,
|
|
41
|
-
githubConfigPayloadRequest,
|
|
42
|
-
githubConfigPayloadResponse,
|
|
43
|
-
} from './models/github-config-payload.js';
|
|
44
23
|
import { InboxConfigCollection, inboxConfigCollectionResponse } from './models/inbox-config-collection.js';
|
|
45
24
|
import {
|
|
46
25
|
InboxConfigPayload,
|
|
@@ -77,13 +56,6 @@ import {
|
|
|
77
56
|
slackConfigPayloadRequest,
|
|
78
57
|
slackConfigPayloadResponse,
|
|
79
58
|
} from './models/slack-config-payload.js';
|
|
80
|
-
import { StripeConfigCollection, stripeConfigCollectionResponse } from './models/stripe-config-collection.js';
|
|
81
|
-
import {
|
|
82
|
-
StripeConfigPayload,
|
|
83
|
-
stripeConfigPayloadRequest,
|
|
84
|
-
stripeConfigPayloadResponse,
|
|
85
|
-
} from './models/stripe-config-payload.js';
|
|
86
|
-
import { TemplatesConfigCollection, templatesConfigCollectionResponse } from './models/templates-config-collection.js';
|
|
87
59
|
import { TwilioConfigCollection, twilioConfigCollectionResponse } from './models/twilio-config-collection.js';
|
|
88
60
|
import {
|
|
89
61
|
TwilioConfigPayload,
|
|
@@ -98,19 +70,14 @@ import {
|
|
|
98
70
|
} from './models/webpush-config-payload.js';
|
|
99
71
|
import {
|
|
100
72
|
DeleteApnsIntegrationParams,
|
|
101
|
-
DeleteAwssnsIntegrationParams,
|
|
102
|
-
DeleteEventsourceIntegrationParams,
|
|
103
73
|
DeleteExpoIntegrationParams,
|
|
104
74
|
DeleteFcmIntegrationParams,
|
|
105
|
-
DeleteGithubIntegrationParams,
|
|
106
75
|
DeleteInboxIntegrationParams,
|
|
107
76
|
DeleteMailgunIntegrationParams,
|
|
108
77
|
DeletePingEmailIntegrationParams,
|
|
109
78
|
DeleteSendgridIntegrationParams,
|
|
110
79
|
DeleteSesIntegrationParams,
|
|
111
80
|
DeleteSlackIntegrationParams,
|
|
112
|
-
DeleteStripeIntegrationParams,
|
|
113
|
-
DeleteTemplatesIntegrationParams,
|
|
114
81
|
DeleteTwilioIntegrationParams,
|
|
115
82
|
DeleteWebPushIntegrationParams,
|
|
116
83
|
ListIntegrationsParams,
|
|
@@ -252,188 +219,6 @@ export class IntegrationsService extends BaseService {
|
|
|
252
219
|
return this.client.call<void>(request);
|
|
253
220
|
}
|
|
254
221
|
|
|
255
|
-
/**
|
|
256
|
-
* Retrieves the current Amazon SNS integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
257
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
258
|
-
* @returns {Promise<HttpResponse<AwssnsConfigCollection>>} OK
|
|
259
|
-
*/
|
|
260
|
-
async listAwssnsIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<AwssnsConfigCollection>> {
|
|
261
|
-
const request = new RequestBuilder()
|
|
262
|
-
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
263
|
-
.setConfig(this.config)
|
|
264
|
-
.setMethod('GET')
|
|
265
|
-
.setPath('/integrations/awssns')
|
|
266
|
-
.setRequestSchema(z.any())
|
|
267
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
268
|
-
.setRequestContentType(ContentType.Json)
|
|
269
|
-
.addResponse({
|
|
270
|
-
schema: awssnsConfigCollectionResponse,
|
|
271
|
-
contentType: ContentType.Json,
|
|
272
|
-
status: 200,
|
|
273
|
-
})
|
|
274
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
275
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
276
|
-
.setResponseValidation(this.config, requestConfig)
|
|
277
|
-
.build();
|
|
278
|
-
return this.client.call<AwssnsConfigCollection>(request);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* Updates or creates the Amazon SNS integration for the project.
|
|
283
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
284
|
-
* @returns {Promise<HttpResponse<AwssnsConfigPayload>>} OK
|
|
285
|
-
*/
|
|
286
|
-
async saveAwssnsIntegration(
|
|
287
|
-
body: AwssnsConfigPayload,
|
|
288
|
-
requestConfig?: RequestConfig,
|
|
289
|
-
): Promise<HttpResponse<AwssnsConfigPayload>> {
|
|
290
|
-
const request = new RequestBuilder()
|
|
291
|
-
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
292
|
-
.setConfig(this.config)
|
|
293
|
-
.setMethod('PUT')
|
|
294
|
-
.setPath('/integrations/awssns')
|
|
295
|
-
.setRequestSchema(awssnsConfigPayloadRequest)
|
|
296
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
297
|
-
.setRequestContentType(ContentType.Json)
|
|
298
|
-
.addResponse({
|
|
299
|
-
schema: awssnsConfigPayloadResponse,
|
|
300
|
-
contentType: ContentType.Json,
|
|
301
|
-
status: 200,
|
|
302
|
-
})
|
|
303
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
304
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
305
|
-
.setResponseValidation(this.config, requestConfig)
|
|
306
|
-
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
307
|
-
.addBody(body)
|
|
308
|
-
.build();
|
|
309
|
-
return this.client.call<AwssnsConfigPayload>(request);
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* Deletes the Amazon SNS integration configuration from the project. This will disable the integration's functionality within the project.
|
|
314
|
-
* @param {string} [params.id] -
|
|
315
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
316
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
317
|
-
*/
|
|
318
|
-
async deleteAwssnsIntegration(
|
|
319
|
-
params?: DeleteAwssnsIntegrationParams,
|
|
320
|
-
requestConfig?: RequestConfig,
|
|
321
|
-
): Promise<HttpResponse<void>> {
|
|
322
|
-
const request = new RequestBuilder()
|
|
323
|
-
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
324
|
-
.setConfig(this.config)
|
|
325
|
-
.setMethod('DELETE')
|
|
326
|
-
.setPath('/integrations/awssns')
|
|
327
|
-
.setRequestSchema(z.any())
|
|
328
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
329
|
-
.setRequestContentType(ContentType.Json)
|
|
330
|
-
.addResponse({
|
|
331
|
-
schema: z.undefined(),
|
|
332
|
-
contentType: ContentType.NoContent,
|
|
333
|
-
status: 204,
|
|
334
|
-
})
|
|
335
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
336
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
337
|
-
.setResponseValidation(this.config, requestConfig)
|
|
338
|
-
.addQueryParam({
|
|
339
|
-
key: 'id',
|
|
340
|
-
value: params?.id,
|
|
341
|
-
})
|
|
342
|
-
.build();
|
|
343
|
-
return this.client.call<void>(request);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Retrieves the current EventSource integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
348
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
349
|
-
* @returns {Promise<HttpResponse<EventSourceConfigCollection>>} OK
|
|
350
|
-
*/
|
|
351
|
-
async listEventsourceIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<EventSourceConfigCollection>> {
|
|
352
|
-
const request = new RequestBuilder()
|
|
353
|
-
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
354
|
-
.setConfig(this.config)
|
|
355
|
-
.setMethod('GET')
|
|
356
|
-
.setPath('/integrations/eventsource')
|
|
357
|
-
.setRequestSchema(z.any())
|
|
358
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
359
|
-
.setRequestContentType(ContentType.Json)
|
|
360
|
-
.addResponse({
|
|
361
|
-
schema: eventSourceConfigCollectionResponse,
|
|
362
|
-
contentType: ContentType.Json,
|
|
363
|
-
status: 200,
|
|
364
|
-
})
|
|
365
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
366
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
367
|
-
.setResponseValidation(this.config, requestConfig)
|
|
368
|
-
.build();
|
|
369
|
-
return this.client.call<EventSourceConfigCollection>(request);
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* Updates or creates the EventSource integration for the project.
|
|
374
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
375
|
-
* @returns {Promise<HttpResponse<EventSourceConfigPayload>>} OK
|
|
376
|
-
*/
|
|
377
|
-
async saveEventsourceIntegration(
|
|
378
|
-
body: EventSourceConfigPayload,
|
|
379
|
-
requestConfig?: RequestConfig,
|
|
380
|
-
): Promise<HttpResponse<EventSourceConfigPayload>> {
|
|
381
|
-
const request = new RequestBuilder()
|
|
382
|
-
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
383
|
-
.setConfig(this.config)
|
|
384
|
-
.setMethod('PUT')
|
|
385
|
-
.setPath('/integrations/eventsource')
|
|
386
|
-
.setRequestSchema(eventSourceConfigPayloadRequest)
|
|
387
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
388
|
-
.setRequestContentType(ContentType.Json)
|
|
389
|
-
.addResponse({
|
|
390
|
-
schema: eventSourceConfigPayloadResponse,
|
|
391
|
-
contentType: ContentType.Json,
|
|
392
|
-
status: 200,
|
|
393
|
-
})
|
|
394
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
395
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
396
|
-
.setResponseValidation(this.config, requestConfig)
|
|
397
|
-
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
398
|
-
.addBody(body)
|
|
399
|
-
.build();
|
|
400
|
-
return this.client.call<EventSourceConfigPayload>(request);
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
/**
|
|
404
|
-
* Deletes the EventSource integration configuration from the project. This will disable the integration's functionality within the project.
|
|
405
|
-
* @param {string} [params.id] -
|
|
406
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
407
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
408
|
-
*/
|
|
409
|
-
async deleteEventsourceIntegration(
|
|
410
|
-
params?: DeleteEventsourceIntegrationParams,
|
|
411
|
-
requestConfig?: RequestConfig,
|
|
412
|
-
): Promise<HttpResponse<void>> {
|
|
413
|
-
const request = new RequestBuilder()
|
|
414
|
-
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
415
|
-
.setConfig(this.config)
|
|
416
|
-
.setMethod('DELETE')
|
|
417
|
-
.setPath('/integrations/eventsource')
|
|
418
|
-
.setRequestSchema(z.any())
|
|
419
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
420
|
-
.setRequestContentType(ContentType.Json)
|
|
421
|
-
.addResponse({
|
|
422
|
-
schema: z.undefined(),
|
|
423
|
-
contentType: ContentType.NoContent,
|
|
424
|
-
status: 204,
|
|
425
|
-
})
|
|
426
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
427
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
428
|
-
.setResponseValidation(this.config, requestConfig)
|
|
429
|
-
.addQueryParam({
|
|
430
|
-
key: 'id',
|
|
431
|
-
value: params?.id,
|
|
432
|
-
})
|
|
433
|
-
.build();
|
|
434
|
-
return this.client.call<void>(request);
|
|
435
|
-
}
|
|
436
|
-
|
|
437
222
|
/**
|
|
438
223
|
* Retrieves the current Expo integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
439
224
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
@@ -616,97 +401,6 @@ export class IntegrationsService extends BaseService {
|
|
|
616
401
|
return this.client.call<void>(request);
|
|
617
402
|
}
|
|
618
403
|
|
|
619
|
-
/**
|
|
620
|
-
* Retrieves the current GitHub integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
621
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
622
|
-
* @returns {Promise<HttpResponse<GithubConfigCollection>>} OK
|
|
623
|
-
*/
|
|
624
|
-
async listGithubIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<GithubConfigCollection>> {
|
|
625
|
-
const request = new RequestBuilder()
|
|
626
|
-
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
627
|
-
.setConfig(this.config)
|
|
628
|
-
.setMethod('GET')
|
|
629
|
-
.setPath('/integrations/github')
|
|
630
|
-
.setRequestSchema(z.any())
|
|
631
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
632
|
-
.setRequestContentType(ContentType.Json)
|
|
633
|
-
.addResponse({
|
|
634
|
-
schema: githubConfigCollectionResponse,
|
|
635
|
-
contentType: ContentType.Json,
|
|
636
|
-
status: 200,
|
|
637
|
-
})
|
|
638
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
639
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
640
|
-
.setResponseValidation(this.config, requestConfig)
|
|
641
|
-
.build();
|
|
642
|
-
return this.client.call<GithubConfigCollection>(request);
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
/**
|
|
646
|
-
* Updates or creates the GitHub integration for the project.
|
|
647
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
648
|
-
* @returns {Promise<HttpResponse<GithubConfigPayload>>} OK
|
|
649
|
-
*/
|
|
650
|
-
async saveGithubIntegration(
|
|
651
|
-
body: GithubConfigPayload,
|
|
652
|
-
requestConfig?: RequestConfig,
|
|
653
|
-
): Promise<HttpResponse<GithubConfigPayload>> {
|
|
654
|
-
const request = new RequestBuilder()
|
|
655
|
-
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
656
|
-
.setConfig(this.config)
|
|
657
|
-
.setMethod('PUT')
|
|
658
|
-
.setPath('/integrations/github')
|
|
659
|
-
.setRequestSchema(githubConfigPayloadRequest)
|
|
660
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
661
|
-
.setRequestContentType(ContentType.Json)
|
|
662
|
-
.addResponse({
|
|
663
|
-
schema: githubConfigPayloadResponse,
|
|
664
|
-
contentType: ContentType.Json,
|
|
665
|
-
status: 200,
|
|
666
|
-
})
|
|
667
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
668
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
669
|
-
.setResponseValidation(this.config, requestConfig)
|
|
670
|
-
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
671
|
-
.addBody(body)
|
|
672
|
-
.build();
|
|
673
|
-
return this.client.call<GithubConfigPayload>(request);
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
/**
|
|
677
|
-
* Deletes the GitHub integration configuration from the project. This will disable the integration's functionality within the project.
|
|
678
|
-
* @param {string} [params.id] -
|
|
679
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
680
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
681
|
-
*/
|
|
682
|
-
async deleteGithubIntegration(
|
|
683
|
-
params?: DeleteGithubIntegrationParams,
|
|
684
|
-
requestConfig?: RequestConfig,
|
|
685
|
-
): Promise<HttpResponse<void>> {
|
|
686
|
-
const request = new RequestBuilder()
|
|
687
|
-
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
688
|
-
.setConfig(this.config)
|
|
689
|
-
.setMethod('DELETE')
|
|
690
|
-
.setPath('/integrations/github')
|
|
691
|
-
.setRequestSchema(z.any())
|
|
692
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
693
|
-
.setRequestContentType(ContentType.Json)
|
|
694
|
-
.addResponse({
|
|
695
|
-
schema: z.undefined(),
|
|
696
|
-
contentType: ContentType.NoContent,
|
|
697
|
-
status: 204,
|
|
698
|
-
})
|
|
699
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
700
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
701
|
-
.setResponseValidation(this.config, requestConfig)
|
|
702
|
-
.addQueryParam({
|
|
703
|
-
key: 'id',
|
|
704
|
-
value: params?.id,
|
|
705
|
-
})
|
|
706
|
-
.build();
|
|
707
|
-
return this.client.call<void>(request);
|
|
708
|
-
}
|
|
709
|
-
|
|
710
404
|
/**
|
|
711
405
|
* Retrieves the current Inbox integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
712
406
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
@@ -1253,185 +947,6 @@ export class IntegrationsService extends BaseService {
|
|
|
1253
947
|
return this.client.call<void>(request);
|
|
1254
948
|
}
|
|
1255
949
|
|
|
1256
|
-
/**
|
|
1257
|
-
* Retrieves the current Stripe integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1258
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1259
|
-
* @returns {Promise<HttpResponse<StripeConfigCollection>>} OK
|
|
1260
|
-
*/
|
|
1261
|
-
async listStripeIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<StripeConfigCollection>> {
|
|
1262
|
-
const request = new RequestBuilder()
|
|
1263
|
-
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1264
|
-
.setConfig(this.config)
|
|
1265
|
-
.setMethod('GET')
|
|
1266
|
-
.setPath('/integrations/stripe')
|
|
1267
|
-
.setRequestSchema(z.any())
|
|
1268
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1269
|
-
.setRequestContentType(ContentType.Json)
|
|
1270
|
-
.addResponse({
|
|
1271
|
-
schema: stripeConfigCollectionResponse,
|
|
1272
|
-
contentType: ContentType.Json,
|
|
1273
|
-
status: 200,
|
|
1274
|
-
})
|
|
1275
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
1276
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
1277
|
-
.setResponseValidation(this.config, requestConfig)
|
|
1278
|
-
.build();
|
|
1279
|
-
return this.client.call<StripeConfigCollection>(request);
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
/**
|
|
1283
|
-
* Updates or creates the Stripe integration for the project.
|
|
1284
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1285
|
-
* @returns {Promise<HttpResponse<StripeConfigPayload>>} OK
|
|
1286
|
-
*/
|
|
1287
|
-
async saveStripeIntegration(
|
|
1288
|
-
body: StripeConfigPayload,
|
|
1289
|
-
requestConfig?: RequestConfig,
|
|
1290
|
-
): Promise<HttpResponse<StripeConfigPayload>> {
|
|
1291
|
-
const request = new RequestBuilder()
|
|
1292
|
-
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1293
|
-
.setConfig(this.config)
|
|
1294
|
-
.setMethod('PUT')
|
|
1295
|
-
.setPath('/integrations/stripe')
|
|
1296
|
-
.setRequestSchema(stripeConfigPayloadRequest)
|
|
1297
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1298
|
-
.setRequestContentType(ContentType.Json)
|
|
1299
|
-
.addResponse({
|
|
1300
|
-
schema: stripeConfigPayloadResponse,
|
|
1301
|
-
contentType: ContentType.Json,
|
|
1302
|
-
status: 200,
|
|
1303
|
-
})
|
|
1304
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
1305
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
1306
|
-
.setResponseValidation(this.config, requestConfig)
|
|
1307
|
-
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
1308
|
-
.addBody(body)
|
|
1309
|
-
.build();
|
|
1310
|
-
return this.client.call<StripeConfigPayload>(request);
|
|
1311
|
-
}
|
|
1312
|
-
|
|
1313
|
-
/**
|
|
1314
|
-
* Deletes the Stripe integration configuration from the project. This will disable the integration's functionality within the project.
|
|
1315
|
-
* @param {string} [params.id] -
|
|
1316
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1317
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1318
|
-
*/
|
|
1319
|
-
async deleteStripeIntegration(
|
|
1320
|
-
params?: DeleteStripeIntegrationParams,
|
|
1321
|
-
requestConfig?: RequestConfig,
|
|
1322
|
-
): Promise<HttpResponse<void>> {
|
|
1323
|
-
const request = new RequestBuilder()
|
|
1324
|
-
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1325
|
-
.setConfig(this.config)
|
|
1326
|
-
.setMethod('DELETE')
|
|
1327
|
-
.setPath('/integrations/stripe')
|
|
1328
|
-
.setRequestSchema(z.any())
|
|
1329
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1330
|
-
.setRequestContentType(ContentType.Json)
|
|
1331
|
-
.addResponse({
|
|
1332
|
-
schema: z.undefined(),
|
|
1333
|
-
contentType: ContentType.NoContent,
|
|
1334
|
-
status: 204,
|
|
1335
|
-
})
|
|
1336
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
1337
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
1338
|
-
.setResponseValidation(this.config, requestConfig)
|
|
1339
|
-
.addQueryParam({
|
|
1340
|
-
key: 'id',
|
|
1341
|
-
value: params?.id,
|
|
1342
|
-
})
|
|
1343
|
-
.build();
|
|
1344
|
-
return this.client.call<void>(request);
|
|
1345
|
-
}
|
|
1346
|
-
|
|
1347
|
-
/**
|
|
1348
|
-
* Retrieves the current Templates integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1349
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1350
|
-
* @returns {Promise<HttpResponse<TemplatesConfigCollection>>} OK
|
|
1351
|
-
*/
|
|
1352
|
-
async listTemplatesIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<TemplatesConfigCollection>> {
|
|
1353
|
-
const request = new RequestBuilder()
|
|
1354
|
-
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1355
|
-
.setConfig(this.config)
|
|
1356
|
-
.setMethod('GET')
|
|
1357
|
-
.setPath('/integrations/templates')
|
|
1358
|
-
.setRequestSchema(z.any())
|
|
1359
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1360
|
-
.setRequestContentType(ContentType.Json)
|
|
1361
|
-
.addResponse({
|
|
1362
|
-
schema: templatesConfigCollectionResponse,
|
|
1363
|
-
contentType: ContentType.Json,
|
|
1364
|
-
status: 200,
|
|
1365
|
-
})
|
|
1366
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
1367
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
1368
|
-
.setResponseValidation(this.config, requestConfig)
|
|
1369
|
-
.build();
|
|
1370
|
-
return this.client.call<TemplatesConfigCollection>(request);
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
/**
|
|
1374
|
-
* Updates or creates the Templates integration for the project.
|
|
1375
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1376
|
-
* @returns {Promise<HttpResponse<any>>} OK
|
|
1377
|
-
*/
|
|
1378
|
-
async saveTemplatesIntegration(body: any, requestConfig?: RequestConfig): Promise<HttpResponse<any>> {
|
|
1379
|
-
const request = new RequestBuilder()
|
|
1380
|
-
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1381
|
-
.setConfig(this.config)
|
|
1382
|
-
.setMethod('PUT')
|
|
1383
|
-
.setPath('/integrations/templates')
|
|
1384
|
-
.setRequestSchema(z.any())
|
|
1385
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1386
|
-
.setRequestContentType(ContentType.Json)
|
|
1387
|
-
.addResponse({
|
|
1388
|
-
schema: z.any(),
|
|
1389
|
-
contentType: ContentType.Json,
|
|
1390
|
-
status: 200,
|
|
1391
|
-
})
|
|
1392
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
1393
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
1394
|
-
.setResponseValidation(this.config, requestConfig)
|
|
1395
|
-
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
1396
|
-
.addBody(body)
|
|
1397
|
-
.build();
|
|
1398
|
-
return this.client.call<any>(request);
|
|
1399
|
-
}
|
|
1400
|
-
|
|
1401
|
-
/**
|
|
1402
|
-
* Deletes the Templates integration configuration from the project. This will disable the integration's functionality within the project.
|
|
1403
|
-
* @param {string} [params.id] -
|
|
1404
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1405
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1406
|
-
*/
|
|
1407
|
-
async deleteTemplatesIntegration(
|
|
1408
|
-
params?: DeleteTemplatesIntegrationParams,
|
|
1409
|
-
requestConfig?: RequestConfig,
|
|
1410
|
-
): Promise<HttpResponse<void>> {
|
|
1411
|
-
const request = new RequestBuilder()
|
|
1412
|
-
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1413
|
-
.setConfig(this.config)
|
|
1414
|
-
.setMethod('DELETE')
|
|
1415
|
-
.setPath('/integrations/templates')
|
|
1416
|
-
.setRequestSchema(z.any())
|
|
1417
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1418
|
-
.setRequestContentType(ContentType.Json)
|
|
1419
|
-
.addResponse({
|
|
1420
|
-
schema: z.undefined(),
|
|
1421
|
-
contentType: ContentType.NoContent,
|
|
1422
|
-
status: 204,
|
|
1423
|
-
})
|
|
1424
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
1425
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
1426
|
-
.setResponseValidation(this.config, requestConfig)
|
|
1427
|
-
.addQueryParam({
|
|
1428
|
-
key: 'id',
|
|
1429
|
-
value: params?.id,
|
|
1430
|
-
})
|
|
1431
|
-
.build();
|
|
1432
|
-
return this.client.call<void>(request);
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
950
|
/**
|
|
1436
951
|
* Retrieves the current Twilio integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1437
952
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
export type { ApnsConfig } from './apns-config.js';
|
|
2
2
|
export type { ApnsConfigCollection } from './apns-config-collection.js';
|
|
3
3
|
export type { ApnsConfigPayload } from './apns-config-payload.js';
|
|
4
|
-
export type { AwssnsConfig } from './awssns-config.js';
|
|
5
|
-
export type { AwssnsConfigCollection } from './awssns-config-collection.js';
|
|
6
|
-
export type { AwssnsConfigPayload } from './awssns-config-payload.js';
|
|
7
4
|
export { Badge } from './badge.js';
|
|
8
5
|
export type { Banner } from './banner.js';
|
|
9
6
|
export type { Default_ } from './default_.js';
|
|
10
7
|
export type { DefaultHover } from './default-hover.js';
|
|
11
8
|
export type { DefaultState } from './default-state.js';
|
|
12
9
|
export type { Dialog } from './dialog.js';
|
|
13
|
-
export type { EventSourceConfig } from './event-source-config.js';
|
|
14
|
-
export type { EventSourceConfigCollection } from './event-source-config-collection.js';
|
|
15
|
-
export type { EventSourceConfigPayload } from './event-source-config-payload.js';
|
|
16
10
|
export type { ExpoConfig } from './expo-config.js';
|
|
17
11
|
export type { ExpoConfigCollection } from './expo-config-collection.js';
|
|
18
12
|
export type { ExpoConfigPayload } from './expo-config-payload.js';
|
|
@@ -20,9 +14,6 @@ export type { FcmConfig } from './fcm-config.js';
|
|
|
20
14
|
export type { FcmConfigCollection } from './fcm-config-collection.js';
|
|
21
15
|
export type { FcmConfigPayload } from './fcm-config-payload.js';
|
|
22
16
|
export type { Footer } from './footer.js';
|
|
23
|
-
export type { GithubConfig } from './github-config.js';
|
|
24
|
-
export type { GithubConfigCollection } from './github-config-collection.js';
|
|
25
|
-
export type { GithubConfigPayload } from './github-config-payload.js';
|
|
26
17
|
export type { Header } from './header.js';
|
|
27
18
|
export type { Icon } from './icon.js';
|
|
28
19
|
export type { Images } from './images.js';
|
|
@@ -53,11 +44,6 @@ export type { SesConfigPayloadFrom } from './ses-config-payload-from.js';
|
|
|
53
44
|
export type { SlackConfig } from './slack-config.js';
|
|
54
45
|
export type { SlackConfigCollection } from './slack-config-collection.js';
|
|
55
46
|
export type { SlackConfigPayload } from './slack-config-payload.js';
|
|
56
|
-
export type { StripeConfig } from './stripe-config.js';
|
|
57
|
-
export type { StripeConfigCollection } from './stripe-config-collection.js';
|
|
58
|
-
export type { StripeConfigPayload } from './stripe-config-payload.js';
|
|
59
|
-
export type { TemplatesConfig } from './templates-config.js';
|
|
60
|
-
export type { TemplatesConfigCollection } from './templates-config-collection.js';
|
|
61
47
|
export type { Theme } from './theme.js';
|
|
62
48
|
export type { TwilioConfig } from './twilio-config.js';
|
|
63
49
|
export type { TwilioConfigCollection } from './twilio-config-collection.js';
|
|
@@ -8,14 +8,6 @@ export interface DeleteApnsIntegrationParams {
|
|
|
8
8
|
id?: string;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export interface DeleteAwssnsIntegrationParams {
|
|
12
|
-
id?: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface DeleteEventsourceIntegrationParams {
|
|
16
|
-
id?: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
11
|
export interface DeleteExpoIntegrationParams {
|
|
20
12
|
id?: string;
|
|
21
13
|
}
|
|
@@ -24,10 +16,6 @@ export interface DeleteFcmIntegrationParams {
|
|
|
24
16
|
id?: string;
|
|
25
17
|
}
|
|
26
18
|
|
|
27
|
-
export interface DeleteGithubIntegrationParams {
|
|
28
|
-
id?: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
19
|
export interface DeleteInboxIntegrationParams {
|
|
32
20
|
id?: string;
|
|
33
21
|
}
|
|
@@ -52,14 +40,6 @@ export interface DeleteSlackIntegrationParams {
|
|
|
52
40
|
id?: string;
|
|
53
41
|
}
|
|
54
42
|
|
|
55
|
-
export interface DeleteStripeIntegrationParams {
|
|
56
|
-
id?: string;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export interface DeleteTemplatesIntegrationParams {
|
|
60
|
-
id?: string;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
43
|
export interface DeleteTwilioIntegrationParams {
|
|
64
44
|
id?: string;
|
|
65
45
|
}
|
|
@@ -26,11 +26,6 @@ import {
|
|
|
26
26
|
SlackStartInstallResponseContent,
|
|
27
27
|
slackStartInstallResponseContentResponse,
|
|
28
28
|
} from './models/slack-start-install-response-content.js';
|
|
29
|
-
import {
|
|
30
|
-
TemplatesInstallation,
|
|
31
|
-
templatesInstallationRequest,
|
|
32
|
-
templatesInstallationResponse,
|
|
33
|
-
} from './models/templates-installation.js';
|
|
34
29
|
import {
|
|
35
30
|
WebPushStartInstallationResponse,
|
|
36
31
|
webPushStartInstallationResponseResponse,
|
|
@@ -187,37 +182,6 @@ export class IntegrationsService extends BaseService {
|
|
|
187
182
|
return this.client.call<SlackStartInstallResponseContent>(request);
|
|
188
183
|
}
|
|
189
184
|
|
|
190
|
-
/**
|
|
191
|
-
* Creates a new installation of a Templates integration for a user. This endpoint is used when an integration needs to be set up with user-specific credentials or configuration.
|
|
192
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
193
|
-
* @returns {Promise<HttpResponse<TemplatesInstallation>>} OK
|
|
194
|
-
*/
|
|
195
|
-
async saveTemplatesInstallation(
|
|
196
|
-
body: TemplatesInstallation,
|
|
197
|
-
requestConfig?: RequestConfig,
|
|
198
|
-
): Promise<HttpResponse<TemplatesInstallation>> {
|
|
199
|
-
const request = new RequestBuilder()
|
|
200
|
-
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
201
|
-
.setConfig(this.config)
|
|
202
|
-
.setMethod('PUT')
|
|
203
|
-
.setPath('/integrations/templates/installations')
|
|
204
|
-
.setRequestSchema(templatesInstallationRequest)
|
|
205
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
206
|
-
.setRequestContentType(ContentType.Json)
|
|
207
|
-
.addResponse({
|
|
208
|
-
schema: templatesInstallationResponse,
|
|
209
|
-
contentType: ContentType.Json,
|
|
210
|
-
status: 200,
|
|
211
|
-
})
|
|
212
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
213
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
214
|
-
.setResponseValidation(this.config, requestConfig)
|
|
215
|
-
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
216
|
-
.addBody(body)
|
|
217
|
-
.build();
|
|
218
|
-
return this.client.call<TemplatesInstallation>(request);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
185
|
/**
|
|
222
186
|
* Creates a new installation of a Web Push integration for a user. This endpoint is used when an integration needs to be set up with user-specific credentials or configuration.
|
|
223
187
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|