Skip to content

Commit

Permalink
SDK regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Apr 27, 2024
1 parent cda1f60 commit 57328ce
Show file tree
Hide file tree
Showing 23 changed files with 124 additions and 164 deletions.
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>;
}

0 comments on commit 57328ce

Please sign in to comment.