@scalekit-sdk/node 1.0.11 → 1.0.13

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.
@@ -79,9 +79,9 @@ export class SendPasswordlessRequest extends Message<SendPasswordlessRequest> {
79
79
  template?: TemplateType;
80
80
 
81
81
  /**
82
- * @generated from field: optional string magiclink_redirect_uri = 3;
82
+ * @generated from field: optional string magiclink_auth_uri = 3;
83
83
  */
84
- magiclinkRedirectUri?: string;
84
+ magiclinkAuthUri?: string;
85
85
 
86
86
  /**
87
87
  * @generated from field: optional string state = 4;
@@ -93,6 +93,11 @@ export class SendPasswordlessRequest extends Message<SendPasswordlessRequest> {
93
93
  */
94
94
  expiresIn?: number;
95
95
 
96
+ /**
97
+ * @generated from field: map<string, string> template_variables = 6;
98
+ */
99
+ templateVariables: { [key: string]: string } = {};
100
+
96
101
  constructor(data?: PartialMessage<SendPasswordlessRequest>) {
97
102
  super();
98
103
  proto3.util.initPartial(data, this);
@@ -103,9 +108,10 @@ export class SendPasswordlessRequest extends Message<SendPasswordlessRequest> {
103
108
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
104
109
  { no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
105
110
  { no: 2, name: "template", kind: "enum", T: proto3.getEnumType(TemplateType), opt: true },
106
- { no: 3, name: "magiclink_redirect_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
111
+ { no: 3, name: "magiclink_auth_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
107
112
  { no: 4, name: "state", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
108
113
  { no: 5, name: "expires_in", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
114
+ { no: 6, name: "template_variables", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
109
115
  ]);
110
116
 
111
117
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendPasswordlessRequest {
@@ -202,9 +208,9 @@ export class VerifyPasswordLessRequest extends Message<VerifyPasswordLessRequest
202
208
  } | { case: undefined; value?: undefined } = { case: undefined };
203
209
 
204
210
  /**
205
- * @generated from field: string auth_request_id = 3;
211
+ * @generated from field: optional string auth_request_id = 3;
206
212
  */
207
- authRequestId = "";
213
+ authRequestId?: string;
208
214
 
209
215
  constructor(data?: PartialMessage<VerifyPasswordLessRequest>) {
210
216
  super();
@@ -216,7 +222,7 @@ export class VerifyPasswordLessRequest extends Message<VerifyPasswordLessRequest
216
222
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
217
223
  { no: 1, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "auth_credential" },
218
224
  { no: 2, name: "link_token", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "auth_credential" },
219
- { no: 3, name: "auth_request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
225
+ { no: 3, name: "auth_request_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
220
226
  ]);
221
227
 
222
228
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyPasswordLessRequest {
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
6
- import { CreateConnectionRequest, CreateConnectionResponse, CreateEnvironmentConnectionRequest, DeleteConnectionRequest, DeleteEnvironmentConnectionRequest, GetConnectionRequest, GetConnectionResponse, GetConnectionTestResultRequest, GetConnectionTestResultResponse, GetEnvironmentConnectionRequest, GetProvidersRequest, GetProvidersResponse, ListConnectionsRequest, ListConnectionsResponse, ToggleConnectionRequest, ToggleConnectionResponse, ToggleEnvironmentConnectionRequest, UpdateConnectionRequest, UpdateConnectionResponse, UpdateEnvironmentConnectionRequest } from "./connections_pb.js";
6
+ import { CreateConnectionRequest, CreateConnectionResponse, CreateEnvironmentConnectionRequest, DeleteConnectionRequest, DeleteEnvironmentConnectionRequest, GetConnectionRequest, GetConnectionResponse, GetConnectionTestResultRequest, GetConnectionTestResultResponse, GetEnvironmentConnectionRequest, GetProvidersRequest, GetProvidersResponse, ListConnectionsRequest, ListConnectionsResponse, ListOrganizationConnectionsRequest, ListOrganizationConnectionsResponse, SearchOrganizationConnectionsRequest, SearchOrganizationConnectionsResponse, ToggleConnectionRequest, ToggleConnectionResponse, ToggleEnvironmentConnectionRequest, UpdateConnectionRequest, UpdateConnectionResponse, UpdateEnvironmentConnectionRequest } from "./connections_pb.js";
7
7
  import { Empty, MethodKind } from "@bufbuild/protobuf";
8
8
 
9
9
  /**
@@ -66,6 +66,24 @@ export const ConnectionService = {
66
66
  O: ListConnectionsResponse,
67
67
  kind: MethodKind.Unary,
68
68
  },
69
+ /**
70
+ * @generated from rpc scalekit.v1.connections.ConnectionService.ListOrganizationConnections
71
+ */
72
+ listOrganizationConnections: {
73
+ name: "ListOrganizationConnections",
74
+ I: ListOrganizationConnectionsRequest,
75
+ O: ListOrganizationConnectionsResponse,
76
+ kind: MethodKind.Unary,
77
+ },
78
+ /**
79
+ * @generated from rpc scalekit.v1.connections.ConnectionService.SearchOrganizationConnections
80
+ */
81
+ searchOrganizationConnections: {
82
+ name: "SearchOrganizationConnections",
83
+ I: SearchOrganizationConnectionsRequest,
84
+ O: SearchOrganizationConnectionsResponse,
85
+ kind: MethodKind.Unary,
86
+ },
69
87
  /**
70
88
  * @generated from rpc scalekit.v1.connections.ConnectionService.UpdateEnvironmentConnection
71
89
  */
@@ -1464,6 +1464,16 @@ export class ListConnection extends Message<ListConnection> {
1464
1464
  */
1465
1465
  uiButtonTitle = "";
1466
1466
 
1467
+ /**
1468
+ * @generated from field: repeated string domains = 8;
1469
+ */
1470
+ domains: string[] = [];
1471
+
1472
+ /**
1473
+ * @generated from field: string organization_name = 9;
1474
+ */
1475
+ organizationName = "";
1476
+
1467
1477
  constructor(data?: PartialMessage<ListConnection>) {
1468
1478
  super();
1469
1479
  proto3.util.initPartial(data, this);
@@ -1479,6 +1489,8 @@ export class ListConnection extends Message<ListConnection> {
1479
1489
  { no: 5, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1480
1490
  { no: 6, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1481
1491
  { no: 7, name: "ui_button_title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1492
+ { no: 8, name: "domains", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1493
+ { no: 9, name: "organization_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1482
1494
  ]);
1483
1495
 
1484
1496
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListConnection {
@@ -1498,6 +1510,226 @@ export class ListConnection extends Message<ListConnection> {
1498
1510
  }
1499
1511
  }
1500
1512
 
1513
+ /**
1514
+ * @generated from message scalekit.v1.connections.ListOrganizationConnectionsRequest
1515
+ */
1516
+ export class ListOrganizationConnectionsRequest extends Message<ListOrganizationConnectionsRequest> {
1517
+ /**
1518
+ * @generated from field: uint32 page_size = 1;
1519
+ */
1520
+ pageSize = 0;
1521
+
1522
+ /**
1523
+ * @generated from field: string page_token = 2;
1524
+ */
1525
+ pageToken = "";
1526
+
1527
+ constructor(data?: PartialMessage<ListOrganizationConnectionsRequest>) {
1528
+ super();
1529
+ proto3.util.initPartial(data, this);
1530
+ }
1531
+
1532
+ static readonly runtime: typeof proto3 = proto3;
1533
+ static readonly typeName = "scalekit.v1.connections.ListOrganizationConnectionsRequest";
1534
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1535
+ { no: 1, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1536
+ { no: 2, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1537
+ ]);
1538
+
1539
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationConnectionsRequest {
1540
+ return new ListOrganizationConnectionsRequest().fromBinary(bytes, options);
1541
+ }
1542
+
1543
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationConnectionsRequest {
1544
+ return new ListOrganizationConnectionsRequest().fromJson(jsonValue, options);
1545
+ }
1546
+
1547
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationConnectionsRequest {
1548
+ return new ListOrganizationConnectionsRequest().fromJsonString(jsonString, options);
1549
+ }
1550
+
1551
+ static equals(a: ListOrganizationConnectionsRequest | PlainMessage<ListOrganizationConnectionsRequest> | undefined, b: ListOrganizationConnectionsRequest | PlainMessage<ListOrganizationConnectionsRequest> | undefined): boolean {
1552
+ return proto3.util.equals(ListOrganizationConnectionsRequest, a, b);
1553
+ }
1554
+ }
1555
+
1556
+ /**
1557
+ * @generated from message scalekit.v1.connections.ListOrganizationConnectionsResponse
1558
+ */
1559
+ export class ListOrganizationConnectionsResponse extends Message<ListOrganizationConnectionsResponse> {
1560
+ /**
1561
+ * @generated from field: string next_page_token = 1;
1562
+ */
1563
+ nextPageToken = "";
1564
+
1565
+ /**
1566
+ * @generated from field: uint32 total_size = 2;
1567
+ */
1568
+ totalSize = 0;
1569
+
1570
+ /**
1571
+ * @generated from field: string prev_page_token = 3;
1572
+ */
1573
+ prevPageToken = "";
1574
+
1575
+ /**
1576
+ * @generated from field: repeated scalekit.v1.connections.ListConnection connections = 4;
1577
+ */
1578
+ connections: ListConnection[] = [];
1579
+
1580
+ constructor(data?: PartialMessage<ListOrganizationConnectionsResponse>) {
1581
+ super();
1582
+ proto3.util.initPartial(data, this);
1583
+ }
1584
+
1585
+ static readonly runtime: typeof proto3 = proto3;
1586
+ static readonly typeName = "scalekit.v1.connections.ListOrganizationConnectionsResponse";
1587
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1588
+ { no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1589
+ { no: 2, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1590
+ { no: 3, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1591
+ { no: 4, name: "connections", kind: "message", T: ListConnection, repeated: true },
1592
+ ]);
1593
+
1594
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationConnectionsResponse {
1595
+ return new ListOrganizationConnectionsResponse().fromBinary(bytes, options);
1596
+ }
1597
+
1598
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationConnectionsResponse {
1599
+ return new ListOrganizationConnectionsResponse().fromJson(jsonValue, options);
1600
+ }
1601
+
1602
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationConnectionsResponse {
1603
+ return new ListOrganizationConnectionsResponse().fromJsonString(jsonString, options);
1604
+ }
1605
+
1606
+ static equals(a: ListOrganizationConnectionsResponse | PlainMessage<ListOrganizationConnectionsResponse> | undefined, b: ListOrganizationConnectionsResponse | PlainMessage<ListOrganizationConnectionsResponse> | undefined): boolean {
1607
+ return proto3.util.equals(ListOrganizationConnectionsResponse, a, b);
1608
+ }
1609
+ }
1610
+
1611
+ /**
1612
+ * @generated from message scalekit.v1.connections.SearchOrganizationConnectionsRequest
1613
+ */
1614
+ export class SearchOrganizationConnectionsRequest extends Message<SearchOrganizationConnectionsRequest> {
1615
+ /**
1616
+ * @generated from field: optional string query = 1;
1617
+ */
1618
+ query?: string;
1619
+
1620
+ /**
1621
+ * @generated from field: optional scalekit.v1.connections.ConnectionProvider provider = 2;
1622
+ */
1623
+ provider?: ConnectionProvider;
1624
+
1625
+ /**
1626
+ * @generated from field: optional scalekit.v1.connections.ConnectionStatus status = 3;
1627
+ */
1628
+ status?: ConnectionStatus;
1629
+
1630
+ /**
1631
+ * @generated from field: optional scalekit.v1.connections.ConnectionType connection_type = 4;
1632
+ */
1633
+ connectionType?: ConnectionType;
1634
+
1635
+ /**
1636
+ * @generated from field: uint32 page_size = 5;
1637
+ */
1638
+ pageSize = 0;
1639
+
1640
+ /**
1641
+ * @generated from field: string page_token = 6;
1642
+ */
1643
+ pageToken = "";
1644
+
1645
+ constructor(data?: PartialMessage<SearchOrganizationConnectionsRequest>) {
1646
+ super();
1647
+ proto3.util.initPartial(data, this);
1648
+ }
1649
+
1650
+ static readonly runtime: typeof proto3 = proto3;
1651
+ static readonly typeName = "scalekit.v1.connections.SearchOrganizationConnectionsRequest";
1652
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1653
+ { no: 1, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1654
+ { no: 2, name: "provider", kind: "enum", T: proto3.getEnumType(ConnectionProvider), opt: true },
1655
+ { no: 3, name: "status", kind: "enum", T: proto3.getEnumType(ConnectionStatus), opt: true },
1656
+ { no: 4, name: "connection_type", kind: "enum", T: proto3.getEnumType(ConnectionType), opt: true },
1657
+ { no: 5, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1658
+ { no: 6, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1659
+ ]);
1660
+
1661
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchOrganizationConnectionsRequest {
1662
+ return new SearchOrganizationConnectionsRequest().fromBinary(bytes, options);
1663
+ }
1664
+
1665
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchOrganizationConnectionsRequest {
1666
+ return new SearchOrganizationConnectionsRequest().fromJson(jsonValue, options);
1667
+ }
1668
+
1669
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchOrganizationConnectionsRequest {
1670
+ return new SearchOrganizationConnectionsRequest().fromJsonString(jsonString, options);
1671
+ }
1672
+
1673
+ static equals(a: SearchOrganizationConnectionsRequest | PlainMessage<SearchOrganizationConnectionsRequest> | undefined, b: SearchOrganizationConnectionsRequest | PlainMessage<SearchOrganizationConnectionsRequest> | undefined): boolean {
1674
+ return proto3.util.equals(SearchOrganizationConnectionsRequest, a, b);
1675
+ }
1676
+ }
1677
+
1678
+ /**
1679
+ * @generated from message scalekit.v1.connections.SearchOrganizationConnectionsResponse
1680
+ */
1681
+ export class SearchOrganizationConnectionsResponse extends Message<SearchOrganizationConnectionsResponse> {
1682
+ /**
1683
+ * @generated from field: string next_page_token = 1;
1684
+ */
1685
+ nextPageToken = "";
1686
+
1687
+ /**
1688
+ * @generated from field: uint32 total_size = 2;
1689
+ */
1690
+ totalSize = 0;
1691
+
1692
+ /**
1693
+ * @generated from field: string prev_page_token = 3;
1694
+ */
1695
+ prevPageToken = "";
1696
+
1697
+ /**
1698
+ * @generated from field: repeated scalekit.v1.connections.ListConnection connections = 4;
1699
+ */
1700
+ connections: ListConnection[] = [];
1701
+
1702
+ constructor(data?: PartialMessage<SearchOrganizationConnectionsResponse>) {
1703
+ super();
1704
+ proto3.util.initPartial(data, this);
1705
+ }
1706
+
1707
+ static readonly runtime: typeof proto3 = proto3;
1708
+ static readonly typeName = "scalekit.v1.connections.SearchOrganizationConnectionsResponse";
1709
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1710
+ { no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1711
+ { no: 2, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1712
+ { no: 3, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1713
+ { no: 4, name: "connections", kind: "message", T: ListConnection, repeated: true },
1714
+ ]);
1715
+
1716
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchOrganizationConnectionsResponse {
1717
+ return new SearchOrganizationConnectionsResponse().fromBinary(bytes, options);
1718
+ }
1719
+
1720
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchOrganizationConnectionsResponse {
1721
+ return new SearchOrganizationConnectionsResponse().fromJson(jsonValue, options);
1722
+ }
1723
+
1724
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchOrganizationConnectionsResponse {
1725
+ return new SearchOrganizationConnectionsResponse().fromJsonString(jsonString, options);
1726
+ }
1727
+
1728
+ static equals(a: SearchOrganizationConnectionsResponse | PlainMessage<SearchOrganizationConnectionsResponse> | undefined, b: SearchOrganizationConnectionsResponse | PlainMessage<SearchOrganizationConnectionsResponse> | undefined): boolean {
1729
+ return proto3.util.equals(SearchOrganizationConnectionsResponse, a, b);
1730
+ }
1731
+ }
1732
+
1501
1733
  /**
1502
1734
  * @generated from message scalekit.v1.connections.ToggleEnvironmentConnectionRequest
1503
1735
  */