Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌿 Fern Regeneration -- April 27, 2024 #186

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@trycourier/courier",
"version": "v6.1.1",
"version": "v6.1.2",
"private": false,
"repository": "https://github.com/trycourier/courier-node",
"main": "./index.js",
Expand Down
8 changes: 3 additions & 5 deletions src/Client.ts
Expand Up @@ -36,7 +36,7 @@ export declare namespace CourierClient {

interface IdempotentRequestOptions extends RequestOptions {
idempotencyKey?: string | undefined;
idempotencyExpiry?: number | undefined;
idempotencyExpiry?: string | undefined;
}
}

Expand All @@ -60,12 +60,10 @@ export class CourierClient {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
"Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined,
"X-Idempotency-Expiration":
requestOptions?.idempotencyExpiry != null
? requestOptions?.idempotencyExpiry.toString()
: undefined,
requestOptions?.idempotencyExpiry != null ? requestOptions?.idempotencyExpiry : undefined,
},
contentType: "application/json",
body: request,
Expand Down
10 changes: 5 additions & 5 deletions src/api/resources/audiences/client/Client.ts
Expand Up @@ -38,7 +38,7 @@ export class Audiences {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -88,7 +88,7 @@ export class Audiences {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
},
contentType: "application/json",
body: request,
Expand Down Expand Up @@ -135,7 +135,7 @@ export class Audiences {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -192,7 +192,7 @@ export class Audiences {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -254,7 +254,7 @@ export class Audiences {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/auditEvents/client/Client.ts
Expand Up @@ -47,7 +47,7 @@ export class AuditEvents {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -94,7 +94,7 @@ export class AuditEvents {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
8 changes: 3 additions & 5 deletions src/api/resources/authTokens/client/Client.ts
Expand Up @@ -22,7 +22,7 @@ export declare namespace AuthTokens {

interface IdempotentRequestOptions extends RequestOptions {
idempotencyKey?: string | undefined;
idempotencyExpiry?: number | undefined;
idempotencyExpiry?: string | undefined;
}
}

Expand All @@ -46,12 +46,10 @@ export class AuthTokens {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
"Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined,
"X-Idempotency-Expiration":
requestOptions?.idempotencyExpiry != null
? requestOptions?.idempotencyExpiry.toString()
: undefined,
requestOptions?.idempotencyExpiry != null ? requestOptions?.idempotencyExpiry : undefined,
},
contentType: "application/json",
body: request,
Expand Down
14 changes: 5 additions & 9 deletions src/api/resources/automations/client/Client.ts
Expand Up @@ -22,7 +22,7 @@ export declare namespace Automations {

interface IdempotentRequestOptions extends RequestOptions {
idempotencyKey?: string | undefined;
idempotencyExpiry?: number | undefined;
idempotencyExpiry?: string | undefined;
}
}

Expand All @@ -47,12 +47,10 @@ export class Automations {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
"Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined,
"X-Idempotency-Expiration":
requestOptions?.idempotencyExpiry != null
? requestOptions?.idempotencyExpiry.toString()
: undefined,
requestOptions?.idempotencyExpiry != null ? requestOptions?.idempotencyExpiry : undefined,
},
contentType: "application/json",
body: request,
Expand Down Expand Up @@ -117,12 +115,10 @@ export class Automations {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
"Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined,
"X-Idempotency-Expiration":
requestOptions?.idempotencyExpiry != null
? requestOptions?.idempotencyExpiry.toString()
: undefined,
requestOptions?.idempotencyExpiry != null ? requestOptions?.idempotencyExpiry : undefined,
},
contentType: "application/json",
body: request,
Expand Down
16 changes: 7 additions & 9 deletions src/api/resources/brands/client/Client.ts
Expand Up @@ -22,7 +22,7 @@ export declare namespace Brands {

interface IdempotentRequestOptions extends RequestOptions {
idempotencyKey?: string | undefined;
idempotencyExpiry?: number | undefined;
idempotencyExpiry?: string | undefined;
}
}

Expand All @@ -48,12 +48,10 @@ export class Brands {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
"Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined,
"X-Idempotency-Expiration":
requestOptions?.idempotencyExpiry != null
? requestOptions?.idempotencyExpiry.toString()
: undefined,
requestOptions?.idempotencyExpiry != null ? requestOptions?.idempotencyExpiry : undefined,
},
contentType: "application/json",
body: request,
Expand Down Expand Up @@ -109,7 +107,7 @@ export class Brands {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -164,7 +162,7 @@ export class Brands {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -212,7 +210,7 @@ export class Brands {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -267,7 +265,7 @@ export class Brands {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
},
contentType: "application/json",
body: request,
Expand Down
24 changes: 9 additions & 15 deletions src/api/resources/bulk/client/Client.ts
Expand Up @@ -22,7 +22,7 @@ export declare namespace Bulk {

interface IdempotentRequestOptions extends RequestOptions {
idempotencyKey?: string | undefined;
idempotencyExpiry?: number | undefined;
idempotencyExpiry?: string | undefined;
}
}

Expand All @@ -46,12 +46,10 @@ export class Bulk {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
"Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined,
"X-Idempotency-Expiration":
requestOptions?.idempotencyExpiry != null
? requestOptions?.idempotencyExpiry.toString()
: undefined,
requestOptions?.idempotencyExpiry != null ? requestOptions?.idempotencyExpiry : undefined,
},
contentType: "application/json",
body: request,
Expand Down Expand Up @@ -107,12 +105,10 @@ export class Bulk {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
"Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined,
"X-Idempotency-Expiration":
requestOptions?.idempotencyExpiry != null
? requestOptions?.idempotencyExpiry.toString()
: undefined,
requestOptions?.idempotencyExpiry != null ? requestOptions?.idempotencyExpiry : undefined,
},
contentType: "application/json",
body: request,
Expand Down Expand Up @@ -160,12 +156,10 @@ export class Bulk {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
"Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined,
"X-Idempotency-Expiration":
requestOptions?.idempotencyExpiry != null
? requestOptions?.idempotencyExpiry.toString()
: undefined,
requestOptions?.idempotencyExpiry != null ? requestOptions?.idempotencyExpiry : undefined,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -217,7 +211,7 @@ export class Bulk {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -272,7 +266,7 @@ export class Bulk {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@trycourier/courier",
"X-Fern-SDK-Version": "v6.1.1",
"X-Fern-SDK-Version": "v6.1.2",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
7 changes: 4 additions & 3 deletions src/api/resources/commons/types/UserTenantAssociation.ts
Expand Up @@ -4,9 +4,10 @@

export interface UserTenantAssociation {
/** User ID for the assocation between tenant and user */
user_id: string;
type: "user";
user_id?: string;
type?: "user";
/** Tenant ID for the assocation between tenant and user */
tenant_id: string;
profile: Record<string, any>;
/** Additional metadata to be applied to a user profile when used in a tenant context */
profile?: Record<string, any>;
}