Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@streetcred.id/service-clients

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@streetcred.id/service-clients - npm Package Compare versions

Comparing version 1.1.1017 to 1.1.1109

65

dist/agencyServiceClient.d.ts

@@ -516,3 +516,3 @@ import * as msRest from "@azure/ms-rest-js";

*/
listWebhooks(xStreetcredTenantId: string, callback: msRest.ServiceCallback<string[]>): void;
listWebhooks(xStreetcredTenantId: string, callback: msRest.ServiceCallback<Models.WebhookContract[]>): void;
/**

@@ -523,3 +523,3 @@ * @param xStreetcredTenantId Identifier of the tenant used with this request.

*/
listWebhooks(xStreetcredTenantId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<string[]>): void;
listWebhooks(xStreetcredTenantId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.WebhookContract[]>): void;
/**

@@ -530,5 +530,5 @@ * Create new webhook

* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
* @returns Promise<Models.CreateWebhookResponse>
*/
createWebhook(xStreetcredTenantId: string, options?: Models.AgencyServiceClientCreateWebhookOptionalParams): Promise<msRest.RestResponse>;
createWebhook(xStreetcredTenantId: string, options?: Models.AgencyServiceClientCreateWebhookOptionalParams): Promise<Models.CreateWebhookResponse>;
/**

@@ -538,3 +538,3 @@ * @param xStreetcredTenantId Identifier of the tenant used with this request.

*/
createWebhook(xStreetcredTenantId: string, callback: msRest.ServiceCallback<void>): void;
createWebhook(xStreetcredTenantId: string, callback: msRest.ServiceCallback<Models.IdContract>): void;
/**

@@ -545,6 +545,7 @@ * @param xStreetcredTenantId Identifier of the tenant used with this request.

*/
createWebhook(xStreetcredTenantId: string, options: Models.AgencyServiceClientCreateWebhookOptionalParams, callback: msRest.ServiceCallback<void>): void;
createWebhook(xStreetcredTenantId: string, options: Models.AgencyServiceClientCreateWebhookOptionalParams, callback: msRest.ServiceCallback<Models.IdContract>): void;
/**
* Remove registered webhook
* @summary Remove registered webhook
* @param webhookId
* @param xStreetcredTenantId Identifier of the tenant used with this request.

@@ -554,9 +555,11 @@ * @param [options] The optional parameters

*/
removeWebhook(xStreetcredTenantId: string, options?: Models.AgencyServiceClientRemoveWebhookOptionalParams): Promise<msRest.RestResponse>;
removeWebhook(webhookId: string, xStreetcredTenantId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
/**
* @param webhookId
* @param xStreetcredTenantId Identifier of the tenant used with this request.
* @param callback The callback
*/
removeWebhook(xStreetcredTenantId: string, callback: msRest.ServiceCallback<void>): void;
removeWebhook(webhookId: string, xStreetcredTenantId: string, callback: msRest.ServiceCallback<void>): void;
/**
* @param webhookId
* @param xStreetcredTenantId Identifier of the tenant used with this request.

@@ -566,3 +569,3 @@ * @param options The optional parameters

*/
removeWebhook(xStreetcredTenantId: string, options: Models.AgencyServiceClientRemoveWebhookOptionalParams, callback: msRest.ServiceCallback<void>): void;
removeWebhook(webhookId: string, xStreetcredTenantId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
/**

@@ -628,3 +631,47 @@ * @summary SendMessage

getMessage(messageId: string, xStreetcredTenantId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BasicMessageContract>): void;
/**
* Enables a webhook
* @summary Enables a webhook
* @param webhookId
* @param xStreetcredTenantId Identifier of the tenant used with this request.
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
*/
enableWebhook(webhookId: string, xStreetcredTenantId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
/**
* @param webhookId
* @param xStreetcredTenantId Identifier of the tenant used with this request.
* @param callback The callback
*/
enableWebhook(webhookId: string, xStreetcredTenantId: string, callback: msRest.ServiceCallback<void>): void;
/**
* @param webhookId
* @param xStreetcredTenantId Identifier of the tenant used with this request.
* @param options The optional parameters
* @param callback The callback
*/
enableWebhook(webhookId: string, xStreetcredTenantId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
/**
* Disables a webhook
* @summary Disables a webhook
* @param webhookId
* @param xStreetcredTenantId Identifier of the tenant used with this request.
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
*/
disableWebhook(webhookId: string, xStreetcredTenantId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
/**
* @param webhookId
* @param xStreetcredTenantId Identifier of the tenant used with this request.
* @param callback The callback
*/
disableWebhook(webhookId: string, xStreetcredTenantId: string, callback: msRest.ServiceCallback<void>): void;
/**
* @param webhookId
* @param xStreetcredTenantId Identifier of the tenant used with this request.
* @param options The optional parameters
* @param callback The callback
*/
disableWebhook(webhookId: string, xStreetcredTenantId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
}
export { AgencyServiceClient, AgencyServiceClientContext, Models as AgencyServiceModels, Mappers as AgencyServiceMappers };

@@ -204,4 +204,5 @@ "use strict";

};
AgencyServiceClient.prototype.removeWebhook = function (xStreetcredTenantId, options, callback) {
AgencyServiceClient.prototype.removeWebhook = function (webhookId, xStreetcredTenantId, options, callback) {
return this.sendOperationRequest({
webhookId: webhookId,
xStreetcredTenantId: xStreetcredTenantId,

@@ -231,2 +232,16 @@ options: options

};
AgencyServiceClient.prototype.enableWebhook = function (webhookId, xStreetcredTenantId, options, callback) {
return this.sendOperationRequest({
webhookId: webhookId,
xStreetcredTenantId: xStreetcredTenantId,
options: options
}, enableWebhookOperationSpec, callback);
};
AgencyServiceClient.prototype.disableWebhook = function (webhookId, xStreetcredTenantId, options, callback) {
return this.sendOperationRequest({
webhookId: webhookId,
xStreetcredTenantId: xStreetcredTenantId,
options: options
}, disableWebhookOperationSpec, callback);
};
return AgencyServiceClient;

@@ -784,3 +799,4 @@ }(agencyServiceClientContext_1.AgencyServiceClientContext));

type: {
name: "String"
name: "Composite",
className: "WebhookContract"
}

@@ -809,3 +825,5 @@ }

responses: {
200: {},
200: {
bodyMapper: Mappers.IdContract
},
default: {}

@@ -817,13 +835,9 @@ },

httpMethod: "DELETE",
path: "agency/v1/webhooks",
path: "agency/v1/webhooks/{webhookId}",
urlParameters: [
Parameters.webhookId
],
headerParameters: [
Parameters.xStreetcredTenantId
],
requestBody: {
parameterPath: [
"options",
"webhookParameters"
],
mapper: Mappers.WebhookParameters
},
responses: {

@@ -899,1 +913,31 @@ 200: {},

};
var enableWebhookOperationSpec = {
httpMethod: "PUT",
path: "agency/v1/webhooks/{webhookId}/enable",
urlParameters: [
Parameters.webhookId
],
headerParameters: [
Parameters.xStreetcredTenantId
],
responses: {
200: {},
default: {}
},
serializer: serializer
};
var disableWebhookOperationSpec = {
httpMethod: "PUT",
path: "agency/v1/webhooks/{webhookId}/disable",
urlParameters: [
Parameters.webhookId
],
headerParameters: [
Parameters.xStreetcredTenantId
],
responses: {
200: {},
default: {}
},
serializer: serializer
};

4

dist/agencyServiceClientContext.js

@@ -34,3 +34,3 @@ "use strict";

var packageName = "";
var packageVersion = "1.1.1017";
var packageVersion = "1.1.1109";
var AgencyServiceClientContext = /** @class */ (function (_super) {

@@ -57,3 +57,3 @@ __extends(AgencyServiceClientContext, _super);

_this = _super.call(this, credentials, options) || this;
_this.baseUri = options.baseUri || _this.baseUri || "https://streetcred.azure-api.net/agency/v1";
_this.baseUri = options.baseUri || _this.baseUri || "https://api.streetcred.id/agency/v1";
_this.requestContentType = "application/json; charset=utf-8";

@@ -60,0 +60,0 @@ _this.credentials = credentials;

@@ -342,6 +342,34 @@ import { ServiceClientOptions } from "@azure/ms-rest-js";

/**
* Webhook Contract.
*/
export interface WebhookContract {
/**
* Gets or sets the webhook endpoing url
*/
url?: string;
/**
* Gets or sets the type of webhook. Possible values include: 'Notification', 'DelegatedSigning'
*/
type?: Type;
/**
* Gets or set if this webhook is enabled
*/
enabled?: boolean;
/**
* The webhook identifier
*/
id?: string;
}
/**
* An interface representing WebhookParameters.
*/
export interface WebhookParameters {
/**
* Gets or sets the webhook endpoing url
*/
url?: string;
/**
* Gets or sets the type of webhook. Possible values include: 'Notification', 'DelegatedSigning'
*/
type?: Type1;
}

@@ -482,8 +510,2 @@ /**

*/
export interface AgencyServiceClientRemoveWebhookOptionalParams extends msRest.RequestOptionsBase {
webhookParameters?: WebhookParameters;
}
/**
* Optional Parameters.
*/
export interface AgencyServiceClientSendMessageOptionalParams extends msRest.RequestOptionsBase {

@@ -528,2 +550,16 @@ basicMessageParameters?: BasicMessageParameters;

/**
* Defines values for Type.
* Possible values include: 'Notification', 'DelegatedSigning'
* @readonly
* @enum {string}
*/
export declare type Type = 'Notification' | 'DelegatedSigning';
/**
* Defines values for Type1.
* Possible values include: 'Notification', 'DelegatedSigning'
* @readonly
* @enum {string}
*/
export declare type Type1 = 'Notification' | 'DelegatedSigning';
/**
* Defines values for State3.

@@ -949,3 +985,3 @@ * Possible values include: 'Invited', 'Negotiating', 'Connected'

*/
export declare type ListWebhooksResponse = Array<string> & {
export declare type ListWebhooksResponse = Array<WebhookContract> & {
/**

@@ -962,6 +998,24 @@ * The underlying HTTP response.

*/
parsedBody: string[];
parsedBody: WebhookContract[];
};
};
/**
* Contains response data for the createWebhook operation.
*/
export declare type CreateWebhookResponse = IdContract & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: IdContract;
};
};
/**
* Contains response data for the listMessages operation.

@@ -968,0 +1022,0 @@ */

@@ -26,2 +26,3 @@ import * as msRest from "@azure/ms-rest-js";

export declare const VerificationDefinitionContract: msRest.CompositeMapper;
export declare const WebhookContract: msRest.CompositeMapper;
export declare const WebhookParameters: msRest.CompositeMapper;

@@ -897,2 +897,35 @@ "use strict";

};
exports.WebhookContract = {
serializedName: "WebhookContract",
type: {
name: "Composite",
className: "WebhookContract",
modelProperties: {
url: {
serializedName: "url",
type: {
name: "String"
}
},
type: {
serializedName: "type",
type: {
name: "String"
}
},
enabled: {
serializedName: "enabled",
type: {
name: "Boolean"
}
},
id: {
serializedName: "id",
type: {
name: "String"
}
}
}
}
};
exports.WebhookParameters = {

@@ -909,2 +942,8 @@ serializedName: "WebhookParameters",

}
},
type: {
serializedName: "type",
type: {
name: "String"
}
}

@@ -911,0 +950,0 @@ }

@@ -13,2 +13,3 @@ import * as msRest from "@azure/ms-rest-js";

export declare const verificationId: msRest.OperationURLParameter;
export declare const webhookId: msRest.OperationURLParameter;
export declare const xStreetcredTenantId: msRest.OperationParameter;

@@ -128,2 +128,12 @@ "use strict";

};
exports.webhookId = {
parameterPath: "webhookId",
mapper: {
required: true,
serializedName: "webhookId",
type: {
name: "String"
}
}
};
exports.xStreetcredTenantId = {

@@ -130,0 +140,0 @@ parameterPath: "xStreetcredTenantId",

{
"name": "@streetcred.id/service-clients",
"version": "1.1.1017",
"version": "1.1.1109",
"main": "./dist/index.js",

@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc