@scalekit-sdk/node 1.0.2 → 1.0.4
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/.github/dependabot.yml +10 -0
- package/README.md +82 -12
- package/lib/connect.js +5 -4
- package/lib/connect.js.map +1 -1
- package/lib/connection.d.ts +17 -3
- package/lib/connection.js +36 -2
- package/lib/connection.js.map +1 -1
- package/lib/constants/user.d.ts +1 -1
- package/lib/core.d.ts +9 -5
- package/lib/core.js +27 -23
- package/lib/core.js.map +1 -1
- package/lib/domain.d.ts +1 -12
- package/lib/domain.js +0 -19
- package/lib/domain.js.map +1 -1
- package/lib/index.d.ts +4 -4
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/lib/organization.d.ts +26 -8
- package/lib/organization.js +50 -14
- package/lib/organization.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +1 -1
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +3 -3
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +2 -2
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +19 -55
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +26 -63
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js +1 -1
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js +1 -1
- package/lib/pkg/grpc/scalekit/v1/options/options_pb.js +1 -1
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.d.ts +15 -19
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +14 -18
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.d.ts +58 -24
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +94 -32
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -1
- package/lib/scalekit.d.ts +11 -14
- package/lib/scalekit.js +17 -14
- package/lib/scalekit.js.map +1 -1
- package/lib/types/{user.d.ts → auth.d.ts} +5 -0
- package/lib/types/{user.js → auth.js} +1 -1
- package/lib/types/auth.js.map +1 -0
- package/lib/types/scalekit.d.ts +9 -9
- package/lib/types/scalekit.js.map +1 -1
- package/package.json +1 -1
- package/src/connect.ts +5 -5
- package/src/connection.ts +41 -3
- package/src/constants/user.ts +1 -1
- package/src/core.ts +32 -25
- package/src/domain.ts +0 -21
- package/src/index.ts +4 -4
- package/src/organization.ts +59 -12
- package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +1 -1
- package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +3 -3
- package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +33 -89
- package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +1 -1
- package/src/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.ts +1 -1
- package/src/pkg/grpc/scalekit/v1/options/options_pb.ts +1 -1
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +15 -19
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +117 -43
- package/src/scalekit.ts +26 -17
- package/src/types/{user.ts → auth.ts} +6 -0
- package/src/types/scalekit.ts +11 -11
- package/lib/types/user.js.map +0 -1
package/lib/organization.js
CHANGED
|
@@ -18,19 +18,17 @@ class OrganizationClient {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Create an organization with the given name. Optionally, you can provide an external id.
|
|
21
|
+
* @param {string} name The organization name
|
|
21
22
|
* @param {object} options The options to create an organization
|
|
22
|
-
* @param {string} options.name The organization name
|
|
23
23
|
* @param {string} options.externalId The external id
|
|
24
24
|
* @returns {Promise<CreateOrganizationResponse>} The created organization
|
|
25
25
|
*/
|
|
26
|
-
createOrganization(options) {
|
|
26
|
+
createOrganization(name, options) {
|
|
27
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
const { name, externalId } = options;
|
|
29
28
|
return this.coreClient.connectExec(this.client.createOrganization, {
|
|
30
|
-
organization: {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
29
|
+
organization: Object.assign({ displayName: name }, ((options === null || options === void 0 ? void 0 : options.externalId) && {
|
|
30
|
+
externalId: options.externalId
|
|
31
|
+
}))
|
|
34
32
|
});
|
|
35
33
|
});
|
|
36
34
|
}
|
|
@@ -95,20 +93,58 @@ class OrganizationClient {
|
|
|
95
93
|
});
|
|
96
94
|
}
|
|
97
95
|
/**
|
|
98
|
-
*
|
|
96
|
+
* Delete an organization by id
|
|
97
|
+
* @param {string} organizationId The organization id
|
|
98
|
+
* @returns {Promise<Empty>} Returns nothing
|
|
99
|
+
*/
|
|
100
|
+
deleteOrganization(organizationId) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
return this.coreClient.connectExec(this.client.deleteOrganization, {
|
|
103
|
+
identities: { case: "id", value: organizationId, },
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Generate admin portal link for an organization
|
|
99
109
|
* @param organizationId The organization id
|
|
100
|
-
* @returns {Promise<
|
|
110
|
+
* @returns {Promise<Link>} The admin portal link object with expiration time and location
|
|
101
111
|
*/
|
|
102
|
-
|
|
112
|
+
generatePortalLink(organizationId) {
|
|
103
113
|
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
-
|
|
105
|
-
const response = yield this.coreClient.connectExec(this.client.generateCustomerPortalLink, {
|
|
114
|
+
const response = yield this.coreClient.connectExec(this.client.generatePortalLink, {
|
|
106
115
|
id: organizationId
|
|
107
116
|
});
|
|
108
117
|
if (!response.link) {
|
|
109
|
-
throw new Error('Error generating
|
|
118
|
+
throw new Error('Error generating portal link');
|
|
110
119
|
}
|
|
111
|
-
return
|
|
120
|
+
return response.link;
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Get admin portal links for an organization
|
|
125
|
+
* @param organizationId The organization id
|
|
126
|
+
* @returns {Promise<Link[]>} The admin portal link object with expiration time and location
|
|
127
|
+
*/
|
|
128
|
+
getPortalLinks(organizationId) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
const response = yield this.coreClient.connectExec(this.client.getPortalLinks, {
|
|
131
|
+
id: organizationId
|
|
132
|
+
});
|
|
133
|
+
return response.links;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Delete admin portal link for an organization
|
|
138
|
+
* @param organizationId The organization id
|
|
139
|
+
* @param linkId The link id
|
|
140
|
+
* @returns {Promise<Empty>} Returns nothing
|
|
141
|
+
*/
|
|
142
|
+
deletePortalLink(organizationId, linkId) {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
return this.coreClient.connectExec(this.client.deletePortalLink, {
|
|
145
|
+
id: organizationId,
|
|
146
|
+
linkId
|
|
147
|
+
});
|
|
112
148
|
});
|
|
113
149
|
}
|
|
114
150
|
}
|
package/lib/organization.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../src/organization.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,sGAAiG;AAGjG,MAAqB,kBAAkB;IAErC,YACmB,WAAwB,EACxB,UAAsB;QADtB,gBAAW,GAAX,WAAW,CAAa;QACxB,eAAU,GAAV,UAAU,CAAY;QAEvC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,2CAAmB,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;MAME;IACI,kBAAkB,CAAC,
|
|
1
|
+
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../src/organization.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,sGAAiG;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,CAAC,MAAM,CAAC,cAAc,EAC1B;gBACE,EAAE,EAAE,cAAc;aACnB,CACF,CAAA;YAED,OAAO,QAAQ,CAAC,KAAK,CAAA;QACvB,CAAC;KAAA;IAED;;;;;OAKG;IACG,gBAAgB,CAAC,cAAsB,EAAE,MAAc;;YAC3D,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAChC,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAC5B;gBACE,EAAE,EAAE,cAAc;gBAClB,MAAM;aACP,CACF,CAAA;QACH,CAAC;KAAA;CACF;AAvKD,qCAuKC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v1.
|
|
2
|
+
// @generated by protoc-gen-es v1.9.0 with parameter "target=ts"
|
|
3
3
|
// @generated from file scalekit/v1/commons/commons.proto (package scalekit.v1.commons, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
// @ts-nocheck
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateConnectionRequest, CreateConnectionResponse, DeleteConnectionRequest,
|
|
1
|
+
import { CreateConnectionRequest, CreateConnectionResponse, DeleteConnectionRequest, GetConnectionRequest, GetConnectionResponse, ListConnectionsRequest, ListConnectionsResponse, ToggleConnectionRequest, ToggleConnectionResponse, UpdateConnectionRequest, UpdateConnectionResponse } from "./connections_pb.js";
|
|
2
2
|
import { Empty, MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service scalekit.v1.connections.ConnectionService
|
|
@@ -56,7 +56,7 @@ export declare const ConnectionService: {
|
|
|
56
56
|
*/
|
|
57
57
|
readonly enableConnection: {
|
|
58
58
|
readonly name: "EnableConnection";
|
|
59
|
-
readonly I: typeof
|
|
59
|
+
readonly I: typeof ToggleConnectionRequest;
|
|
60
60
|
readonly O: typeof ToggleConnectionResponse;
|
|
61
61
|
readonly kind: MethodKind.Unary;
|
|
62
62
|
};
|
|
@@ -65,7 +65,7 @@ export declare const ConnectionService: {
|
|
|
65
65
|
*/
|
|
66
66
|
readonly disableConnection: {
|
|
67
67
|
readonly name: "DisableConnection";
|
|
68
|
-
readonly I: typeof
|
|
68
|
+
readonly I: typeof ToggleConnectionRequest;
|
|
69
69
|
readonly O: typeof ToggleConnectionResponse;
|
|
70
70
|
readonly kind: MethodKind.Unary;
|
|
71
71
|
};
|
|
@@ -63,7 +63,7 @@ exports.ConnectionService = {
|
|
|
63
63
|
*/
|
|
64
64
|
enableConnection: {
|
|
65
65
|
name: "EnableConnection",
|
|
66
|
-
I: connections_pb_js_1.
|
|
66
|
+
I: connections_pb_js_1.ToggleConnectionRequest,
|
|
67
67
|
O: connections_pb_js_1.ToggleConnectionResponse,
|
|
68
68
|
kind: protobuf_1.MethodKind.Unary,
|
|
69
69
|
},
|
|
@@ -72,7 +72,7 @@ exports.ConnectionService = {
|
|
|
72
72
|
*/
|
|
73
73
|
disableConnection: {
|
|
74
74
|
name: "DisableConnection",
|
|
75
|
-
I: connections_pb_js_1.
|
|
75
|
+
I: connections_pb_js_1.ToggleConnectionRequest,
|
|
76
76
|
O: connections_pb_js_1.ToggleConnectionResponse,
|
|
77
77
|
kind: protobuf_1.MethodKind.Unary,
|
|
78
78
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections_connect.js","sourceRoot":"","sources":["../../../../../../src/pkg/grpc/scalekit/v1/connections/connections_connect.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,kHAAkH;AAClH,oBAAoB;AACpB,cAAc;;;AAEd,
|
|
1
|
+
{"version":3,"file":"connections_connect.js","sourceRoot":"","sources":["../../../../../../src/pkg/grpc/scalekit/v1/connections/connections_connect.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,kHAAkH;AAClH,oBAAoB;AACpB,cAAc;;;AAEd,2DAAqT;AACrT,iDAAuD;AAEvD;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,QAAQ,EAAE,2CAA2C;IACrD,OAAO,EAAE;QACP;;WAEG;QACH,gBAAgB,EAAE;YAChB,IAAI,EAAE,kBAAkB;YACxB,CAAC,EAAE,2CAAuB;YAC1B,CAAC,EAAE,4CAAwB;YAC3B,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,aAAa,EAAE;YACb,IAAI,EAAE,eAAe;YACrB,CAAC,EAAE,wCAAoB;YACvB,CAAC,EAAE,yCAAqB;YACxB,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,eAAe,EAAE;YACf,IAAI,EAAE,iBAAiB;YACvB,CAAC,EAAE,0CAAsB;YACzB,CAAC,EAAE,2CAAuB;YAC1B,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,gBAAgB,EAAE;YAChB,IAAI,EAAE,kBAAkB;YACxB,CAAC,EAAE,2CAAuB;YAC1B,CAAC,EAAE,4CAAwB;YAC3B,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,gBAAgB,EAAE;YAChB,IAAI,EAAE,kBAAkB;YACxB,CAAC,EAAE,2CAAuB;YAC1B,CAAC,EAAE,gBAAK;YACR,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,gBAAgB,EAAE;YAChB,IAAI,EAAE,kBAAkB;YACxB,CAAC,EAAE,2CAAuB;YAC1B,CAAC,EAAE,4CAAwB;YAC3B,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,iBAAiB,EAAE;YACjB,IAAI,EAAE,mBAAmB;YACzB,CAAC,EAAE,2CAAuB;YAC1B,CAAC,EAAE,4CAAwB;YAC3B,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
|
|
@@ -420,27 +420,27 @@ export declare class UpdateConnectionRequest extends Message<UpdateConnectionReq
|
|
|
420
420
|
*/
|
|
421
421
|
export declare class UpdateConnection extends Message<UpdateConnection> {
|
|
422
422
|
/**
|
|
423
|
-
* @generated from field: scalekit.v1.connections.ConnectionProvider provider =
|
|
423
|
+
* @generated from field: scalekit.v1.connections.ConnectionProvider provider = 2;
|
|
424
424
|
*/
|
|
425
425
|
provider: ConnectionProvider;
|
|
426
426
|
/**
|
|
427
|
-
* @generated from field: scalekit.v1.connections.ConnectionType type =
|
|
427
|
+
* @generated from field: scalekit.v1.connections.ConnectionType type = 3;
|
|
428
428
|
*/
|
|
429
429
|
type: ConnectionType;
|
|
430
430
|
/**
|
|
431
|
-
* @generated from field: google.protobuf.BoolValue debug_enabled =
|
|
431
|
+
* @generated from field: google.protobuf.BoolValue debug_enabled = 6;
|
|
432
432
|
*/
|
|
433
433
|
debugEnabled?: boolean;
|
|
434
434
|
/**
|
|
435
|
-
* @generated from field: google.protobuf.StringValue ui_button_title =
|
|
435
|
+
* @generated from field: google.protobuf.StringValue ui_button_title = 8;
|
|
436
436
|
*/
|
|
437
437
|
uiButtonTitle?: string;
|
|
438
438
|
/**
|
|
439
|
-
* @generated from field: google.protobuf.StringValue logout_uri =
|
|
439
|
+
* @generated from field: google.protobuf.StringValue logout_uri = 10;
|
|
440
440
|
*/
|
|
441
441
|
logoutUri?: string;
|
|
442
442
|
/**
|
|
443
|
-
* @generated from field: scalekit.v1.connections.ConfigurationType configuration_type =
|
|
443
|
+
* @generated from field: scalekit.v1.connections.ConfigurationType configuration_type = 11;
|
|
444
444
|
*/
|
|
445
445
|
configurationType: ConfigurationType;
|
|
446
446
|
/**
|
|
@@ -448,22 +448,22 @@ export declare class UpdateConnection extends Message<UpdateConnection> {
|
|
|
448
448
|
*/
|
|
449
449
|
settings: {
|
|
450
450
|
/**
|
|
451
|
-
* @generated from field: scalekit.v1.connections.OIDCConnectionConfig oidc_config =
|
|
451
|
+
* @generated from field: scalekit.v1.connections.OIDCConnectionConfig oidc_config = 13;
|
|
452
452
|
*/
|
|
453
453
|
value: OIDCConnectionConfig;
|
|
454
454
|
case: "oidcConfig";
|
|
455
455
|
} | {
|
|
456
456
|
/**
|
|
457
|
-
* @generated from field: scalekit.v1.connections.
|
|
457
|
+
* @generated from field: scalekit.v1.connections.SAMLConnectionConfigResponse saml_config = 14;
|
|
458
458
|
*/
|
|
459
|
-
value:
|
|
459
|
+
value: SAMLConnectionConfigResponse;
|
|
460
460
|
case: "samlConfig";
|
|
461
461
|
} | {
|
|
462
462
|
case: undefined;
|
|
463
463
|
value?: undefined;
|
|
464
464
|
};
|
|
465
465
|
/**
|
|
466
|
-
* @generated from field: map<string, string> attribute_mapping =
|
|
466
|
+
* @generated from field: map<string, string> attribute_mapping = 15;
|
|
467
467
|
*/
|
|
468
468
|
attributeMapping: {
|
|
469
469
|
[key: string]: string;
|
|
@@ -684,47 +684,11 @@ export declare class ListConnection extends Message<ListConnection> {
|
|
|
684
684
|
static equals(a: ListConnection | PlainMessage<ListConnection> | undefined, b: ListConnection | PlainMessage<ListConnection> | undefined): boolean;
|
|
685
685
|
}
|
|
686
686
|
/**
|
|
687
|
-
* @generated from message scalekit.v1.connections.
|
|
688
|
-
*/
|
|
689
|
-
export declare class EnableConnectionRequest extends Message<EnableConnectionRequest> {
|
|
690
|
-
/**
|
|
691
|
-
* @generated from oneof scalekit.v1.connections.EnableConnectionRequest.identities
|
|
692
|
-
*/
|
|
693
|
-
identities: {
|
|
694
|
-
/**
|
|
695
|
-
* @generated from field: string organization_id = 1;
|
|
696
|
-
*/
|
|
697
|
-
value: string;
|
|
698
|
-
case: "organizationId";
|
|
699
|
-
} | {
|
|
700
|
-
/**
|
|
701
|
-
* @generated from field: string external_id = 2;
|
|
702
|
-
*/
|
|
703
|
-
value: string;
|
|
704
|
-
case: "externalId";
|
|
705
|
-
} | {
|
|
706
|
-
case: undefined;
|
|
707
|
-
value?: undefined;
|
|
708
|
-
};
|
|
709
|
-
/**
|
|
710
|
-
* @generated from field: string id = 3;
|
|
711
|
-
*/
|
|
712
|
-
id: string;
|
|
713
|
-
constructor(data?: PartialMessage<EnableConnectionRequest>);
|
|
714
|
-
static readonly runtime: typeof proto3;
|
|
715
|
-
static readonly typeName = "scalekit.v1.connections.EnableConnectionRequest";
|
|
716
|
-
static readonly fields: FieldList;
|
|
717
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnableConnectionRequest;
|
|
718
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnableConnectionRequest;
|
|
719
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnableConnectionRequest;
|
|
720
|
-
static equals(a: EnableConnectionRequest | PlainMessage<EnableConnectionRequest> | undefined, b: EnableConnectionRequest | PlainMessage<EnableConnectionRequest> | undefined): boolean;
|
|
721
|
-
}
|
|
722
|
-
/**
|
|
723
|
-
* @generated from message scalekit.v1.connections.DisableConnectionRequest
|
|
687
|
+
* @generated from message scalekit.v1.connections.ToggleConnectionRequest
|
|
724
688
|
*/
|
|
725
|
-
export declare class
|
|
689
|
+
export declare class ToggleConnectionRequest extends Message<ToggleConnectionRequest> {
|
|
726
690
|
/**
|
|
727
|
-
* @generated from oneof scalekit.v1.connections.
|
|
691
|
+
* @generated from oneof scalekit.v1.connections.ToggleConnectionRequest.identities
|
|
728
692
|
*/
|
|
729
693
|
identities: {
|
|
730
694
|
/**
|
|
@@ -746,14 +710,14 @@ export declare class DisableConnectionRequest extends Message<DisableConnectionR
|
|
|
746
710
|
* @generated from field: string id = 3;
|
|
747
711
|
*/
|
|
748
712
|
id: string;
|
|
749
|
-
constructor(data?: PartialMessage<
|
|
713
|
+
constructor(data?: PartialMessage<ToggleConnectionRequest>);
|
|
750
714
|
static readonly runtime: typeof proto3;
|
|
751
|
-
static readonly typeName = "scalekit.v1.connections.
|
|
715
|
+
static readonly typeName = "scalekit.v1.connections.ToggleConnectionRequest";
|
|
752
716
|
static readonly fields: FieldList;
|
|
753
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
754
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
755
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
756
|
-
static equals(a:
|
|
717
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ToggleConnectionRequest;
|
|
718
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ToggleConnectionRequest;
|
|
719
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ToggleConnectionRequest;
|
|
720
|
+
static equals(a: ToggleConnectionRequest | PlainMessage<ToggleConnectionRequest> | undefined, b: ToggleConnectionRequest | PlainMessage<ToggleConnectionRequest> | undefined): boolean;
|
|
757
721
|
}
|
|
758
722
|
/**
|
|
759
723
|
* @generated from message scalekit.v1.connections.ToggleConnectionResponse
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v1.
|
|
2
|
+
// @generated by protoc-gen-es v1.9.0 with parameter "target=ts"
|
|
3
3
|
// @generated from file scalekit/v1/connections/connections.proto (package scalekit.v1.connections, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
// @ts-nocheck
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.PasswordConnectionConfig = exports.GetSAMLCertificateDetailsResponse = exports.SAMLCertificateRequest = exports.GetSAMLCertificateDetailsRequest = exports.GetSAMLMetadataResponse = exports.SAMLMetadataRequest = exports.GetSAMLMetadataRequest = exports.GetOIDCMetadataResponse = exports.OIDCMetadataRequest = exports.GetOIDCMetadataRequest = exports.IDPCertificate = exports.SAMLConnectionConfigResponse = exports.SAMLConnectionConfigRequest = exports.OIDCConnectionConfig = exports.ToggleConnectionResponse = exports.
|
|
7
|
+
exports.PasswordConnectionConfig = exports.GetSAMLCertificateDetailsResponse = exports.SAMLCertificateRequest = exports.GetSAMLCertificateDetailsRequest = exports.GetSAMLMetadataResponse = exports.SAMLMetadataRequest = exports.GetSAMLMetadataRequest = exports.GetOIDCMetadataResponse = exports.OIDCMetadataRequest = exports.GetOIDCMetadataRequest = exports.IDPCertificate = exports.SAMLConnectionConfigResponse = exports.SAMLConnectionConfigRequest = exports.OIDCConnectionConfig = exports.ToggleConnectionResponse = exports.ToggleConnectionRequest = exports.ListConnection = exports.ListConnectionsResponse = exports.ListConnectionsRequest = exports.GetConnectionResponse = exports.GetConnectionRequest = exports.DeleteConnectionRequest = exports.UpdateConnectionResponse = exports.UpdateConnection = exports.UpdateConnectionRequest = exports.CreateConnectionResponse = exports.Connection = exports.CreateConnection = exports.CreateConnectionRequest = exports.ConnectionProvider = exports.ConnectionStatus = exports.ConnectionType = exports.OIDCScope = exports.TokenAuthType = exports.RequestBinding = exports.SAMLSigningOptions = exports.NameIdFormat = exports.ConfigurationType = void 0;
|
|
8
8
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
9
9
|
/**
|
|
10
10
|
* @generated from enum scalekit.v1.connections.ConfigurationType
|
|
@@ -537,15 +537,15 @@ class UpdateConnection extends protobuf_1.Message {
|
|
|
537
537
|
constructor(data) {
|
|
538
538
|
super();
|
|
539
539
|
/**
|
|
540
|
-
* @generated from field: scalekit.v1.connections.ConnectionProvider provider =
|
|
540
|
+
* @generated from field: scalekit.v1.connections.ConnectionProvider provider = 2;
|
|
541
541
|
*/
|
|
542
542
|
this.provider = ConnectionProvider.CONNECTION_PROVIDER_UNSPECIFIED;
|
|
543
543
|
/**
|
|
544
|
-
* @generated from field: scalekit.v1.connections.ConnectionType type =
|
|
544
|
+
* @generated from field: scalekit.v1.connections.ConnectionType type = 3;
|
|
545
545
|
*/
|
|
546
546
|
this.type = ConnectionType.INVALID;
|
|
547
547
|
/**
|
|
548
|
-
* @generated from field: scalekit.v1.connections.ConfigurationType configuration_type =
|
|
548
|
+
* @generated from field: scalekit.v1.connections.ConfigurationType configuration_type = 11;
|
|
549
549
|
*/
|
|
550
550
|
this.configurationType = ConfigurationType.CONFIGURATION_TYPE_UNSPECIFIED;
|
|
551
551
|
/**
|
|
@@ -553,7 +553,7 @@ class UpdateConnection extends protobuf_1.Message {
|
|
|
553
553
|
*/
|
|
554
554
|
this.settings = { case: undefined };
|
|
555
555
|
/**
|
|
556
|
-
* @generated from field: map<string, string> attribute_mapping =
|
|
556
|
+
* @generated from field: map<string, string> attribute_mapping = 15;
|
|
557
557
|
*/
|
|
558
558
|
this.attributeMapping = {};
|
|
559
559
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -575,15 +575,15 @@ exports.UpdateConnection = UpdateConnection;
|
|
|
575
575
|
UpdateConnection.runtime = protobuf_1.proto3;
|
|
576
576
|
UpdateConnection.typeName = "scalekit.v1.connections.UpdateConnection";
|
|
577
577
|
UpdateConnection.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
578
|
-
{ no:
|
|
579
|
-
{ no:
|
|
580
|
-
{ no:
|
|
581
|
-
{ no:
|
|
582
|
-
{ no:
|
|
583
|
-
{ no:
|
|
584
|
-
{ no:
|
|
585
|
-
{ no:
|
|
586
|
-
{ no:
|
|
578
|
+
{ no: 2, name: "provider", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionProvider) },
|
|
579
|
+
{ no: 3, name: "type", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionType) },
|
|
580
|
+
{ no: 6, name: "debug_enabled", kind: "message", T: protobuf_1.BoolValue },
|
|
581
|
+
{ no: 8, name: "ui_button_title", kind: "message", T: protobuf_1.StringValue },
|
|
582
|
+
{ no: 10, name: "logout_uri", kind: "message", T: protobuf_1.StringValue },
|
|
583
|
+
{ no: 11, name: "configuration_type", kind: "enum", T: protobuf_1.proto3.getEnumType(ConfigurationType) },
|
|
584
|
+
{ no: 13, name: "oidc_config", kind: "message", T: OIDCConnectionConfig, oneof: "settings" },
|
|
585
|
+
{ no: 14, name: "saml_config", kind: "message", T: SAMLConnectionConfigResponse, oneof: "settings" },
|
|
586
|
+
{ no: 15, name: "attribute_mapping", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
587
587
|
]);
|
|
588
588
|
/**
|
|
589
589
|
* @generated from message scalekit.v1.connections.UpdateConnectionResponse
|
|
@@ -840,50 +840,13 @@ ListConnection.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
|
840
840
|
{ no: 7, name: "ui_button_title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
841
841
|
]);
|
|
842
842
|
/**
|
|
843
|
-
* @generated from message scalekit.v1.connections.
|
|
844
|
-
*/
|
|
845
|
-
class EnableConnectionRequest extends protobuf_1.Message {
|
|
846
|
-
constructor(data) {
|
|
847
|
-
super();
|
|
848
|
-
/**
|
|
849
|
-
* @generated from oneof scalekit.v1.connections.EnableConnectionRequest.identities
|
|
850
|
-
*/
|
|
851
|
-
this.identities = { case: undefined };
|
|
852
|
-
/**
|
|
853
|
-
* @generated from field: string id = 3;
|
|
854
|
-
*/
|
|
855
|
-
this.id = "";
|
|
856
|
-
protobuf_1.proto3.util.initPartial(data, this);
|
|
857
|
-
}
|
|
858
|
-
static fromBinary(bytes, options) {
|
|
859
|
-
return new EnableConnectionRequest().fromBinary(bytes, options);
|
|
860
|
-
}
|
|
861
|
-
static fromJson(jsonValue, options) {
|
|
862
|
-
return new EnableConnectionRequest().fromJson(jsonValue, options);
|
|
863
|
-
}
|
|
864
|
-
static fromJsonString(jsonString, options) {
|
|
865
|
-
return new EnableConnectionRequest().fromJsonString(jsonString, options);
|
|
866
|
-
}
|
|
867
|
-
static equals(a, b) {
|
|
868
|
-
return protobuf_1.proto3.util.equals(EnableConnectionRequest, a, b);
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
exports.EnableConnectionRequest = EnableConnectionRequest;
|
|
872
|
-
EnableConnectionRequest.runtime = protobuf_1.proto3;
|
|
873
|
-
EnableConnectionRequest.typeName = "scalekit.v1.connections.EnableConnectionRequest";
|
|
874
|
-
EnableConnectionRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
875
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
876
|
-
{ no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
877
|
-
{ no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
878
|
-
]);
|
|
879
|
-
/**
|
|
880
|
-
* @generated from message scalekit.v1.connections.DisableConnectionRequest
|
|
843
|
+
* @generated from message scalekit.v1.connections.ToggleConnectionRequest
|
|
881
844
|
*/
|
|
882
|
-
class
|
|
845
|
+
class ToggleConnectionRequest extends protobuf_1.Message {
|
|
883
846
|
constructor(data) {
|
|
884
847
|
super();
|
|
885
848
|
/**
|
|
886
|
-
* @generated from oneof scalekit.v1.connections.
|
|
849
|
+
* @generated from oneof scalekit.v1.connections.ToggleConnectionRequest.identities
|
|
887
850
|
*/
|
|
888
851
|
this.identities = { case: undefined };
|
|
889
852
|
/**
|
|
@@ -893,22 +856,22 @@ class DisableConnectionRequest extends protobuf_1.Message {
|
|
|
893
856
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
894
857
|
}
|
|
895
858
|
static fromBinary(bytes, options) {
|
|
896
|
-
return new
|
|
859
|
+
return new ToggleConnectionRequest().fromBinary(bytes, options);
|
|
897
860
|
}
|
|
898
861
|
static fromJson(jsonValue, options) {
|
|
899
|
-
return new
|
|
862
|
+
return new ToggleConnectionRequest().fromJson(jsonValue, options);
|
|
900
863
|
}
|
|
901
864
|
static fromJsonString(jsonString, options) {
|
|
902
|
-
return new
|
|
865
|
+
return new ToggleConnectionRequest().fromJsonString(jsonString, options);
|
|
903
866
|
}
|
|
904
867
|
static equals(a, b) {
|
|
905
|
-
return protobuf_1.proto3.util.equals(
|
|
868
|
+
return protobuf_1.proto3.util.equals(ToggleConnectionRequest, a, b);
|
|
906
869
|
}
|
|
907
870
|
}
|
|
908
|
-
exports.
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
871
|
+
exports.ToggleConnectionRequest = ToggleConnectionRequest;
|
|
872
|
+
ToggleConnectionRequest.runtime = protobuf_1.proto3;
|
|
873
|
+
ToggleConnectionRequest.typeName = "scalekit.v1.connections.ToggleConnectionRequest";
|
|
874
|
+
ToggleConnectionRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
912
875
|
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
913
876
|
{ no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
914
877
|
{ no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|