Skip to content

Commit

Permalink
Release v6.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Oct 8, 2024
1 parent 5cffd4f commit 099b5e8
Show file tree
Hide file tree
Showing 31 changed files with 707 additions and 452 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trycourier/courier",
"version": "v6.2.2",
"version": "v6.2.3",
"private": false,
"repository": "https://github.com/trycourier/courier-node",
"main": "./index.js",
Expand Down
84 changes: 72 additions & 12 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,27 +53,87 @@ export class CourierClient {
* @example
* await courier.send({
* message: {
* content: {},
* content: {
* version: "string",
* brand: {
* "key": "value"
* },
* elements: [{
* type: "text"
* }]
* },
* data: {
* "string": {
* "key": "value"
* }
* },
* brand_id: "string",
* channels: {
* "string": {}
* "string": {
* brand_id: undefined,
* providers: undefined,
* routing_method: undefined,
* if: undefined,
* timeouts: undefined,
* override: undefined,
* metadata: undefined
* }
* },
* context: {
* tenant_id: "string"
* },
* metadata: {
* event: "string",
* tags: [],
* utm: {
* source: undefined,
* medium: undefined,
* campaign: undefined,
* term: undefined,
* content: undefined
* },
* trace_id: "string"
* },
* preferences: {
* subscription_topic_id: "string"
* },
* context: {},
* metadata: {},
* preferences: {},
* providers: {
* "string": {}
* "string": {
* override: undefined,
* if: undefined,
* timeouts: undefined,
* metadata: undefined
* }
* },
* routing: {
* method: Courier.RoutingMethod.All,
* channels: [{
* channel: "string",
* config: undefined,
* method: undefined,
* providers: undefined,
* if: undefined
* }]
* },
* timeout: {
* provider: {},
* channel: {},
* message: 1,
* escalation: 1,
* criteria: Courier.Criteria.NoEscalation
* },
* delay: {
* duration: 1
* },
* expiry: {
* expires_at: "string",
* expires_in: "string"
* },
* routing: {},
* timeout: {},
* delay: {},
* expiry: {},
* to: {}
* to: {
* audience_id: "string",
* data: {},
* filters: []
* }
* }
* })
*/
Expand All @@ -91,7 +151,7 @@ export class CourierClient {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.2.2",
"X-Fern-SDK-Version": "v6.2.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
"Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined,
Expand Down
82 changes: 71 additions & 11 deletions src/api/client/requests/SendMessageRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,87 @@ import * as Courier from "../../index";
* @example
* {
* message: {
* content: {},
* content: {
* version: "string",
* brand: {
* "key": "value"
* },
* elements: [{
* type: "text"
* }]
* },
* data: {
* "string": {
* "key": "value"
* }
* },
* brand_id: "string",
* channels: {
* "string": {}
* "string": {
* brand_id: undefined,
* providers: undefined,
* routing_method: undefined,
* if: undefined,
* timeouts: undefined,
* override: undefined,
* metadata: undefined
* }
* },
* context: {
* tenant_id: "string"
* },
* metadata: {
* event: "string",
* tags: [],
* utm: {
* source: undefined,
* medium: undefined,
* campaign: undefined,
* term: undefined,
* content: undefined
* },
* trace_id: "string"
* },
* preferences: {
* subscription_topic_id: "string"
* },
* context: {},
* metadata: {},
* preferences: {},
* providers: {
* "string": {}
* "string": {
* override: undefined,
* if: undefined,
* timeouts: undefined,
* metadata: undefined
* }
* },
* routing: {
* method: Courier.RoutingMethod.All,
* channels: [{
* channel: "string",
* config: undefined,
* method: undefined,
* providers: undefined,
* if: undefined
* }]
* },
* timeout: {
* provider: {},
* channel: {},
* message: 1,
* escalation: 1,
* criteria: Courier.Criteria.NoEscalation
* },
* delay: {
* duration: 1
* },
* expiry: {
* expires_at: "string",
* expires_in: "string"
* },
* routing: {},
* timeout: {},
* delay: {},
* expiry: {},
* to: {}
* to: {
* audience_id: "string",
* data: {},
* filters: []
* }
* }
* }
*/
Expand Down
10 changes: 5 additions & 5 deletions src/api/resources/audiences/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class Audiences {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.2.2",
"X-Fern-SDK-Version": "v6.2.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -111,7 +111,7 @@ export class Audiences {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.2.2",
"X-Fern-SDK-Version": "v6.2.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -166,7 +166,7 @@ export class Audiences {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.2.2",
"X-Fern-SDK-Version": "v6.2.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -235,7 +235,7 @@ export class Audiences {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.2.2",
"X-Fern-SDK-Version": "v6.2.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -308,7 +308,7 @@ export class Audiences {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.2.2",
"X-Fern-SDK-Version": "v6.2.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/auditEvents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class AuditEvents {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.2.2",
"X-Fern-SDK-Version": "v6.2.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -110,7 +110,7 @@ export class AuditEvents {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.2.2",
"X-Fern-SDK-Version": "v6.2.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/authTokens/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class AuthTokens {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.2.2",
"X-Fern-SDK-Version": "v6.2.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
"Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined,
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/automations/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class Automations {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.2.2",
"X-Fern-SDK-Version": "v6.2.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
"Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined,
Expand Down Expand Up @@ -145,7 +145,7 @@ export class Automations {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.2.2",
"X-Fern-SDK-Version": "v6.2.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
"Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined,
Expand Down
Loading

0 comments on commit 099b5e8

Please sign in to comment.