gs2 1.4.87 → 1.4.88

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.
Files changed (129) hide show
  1. package/chat/model/CategoryModel.d.ts +27 -0
  2. package/chat/model/CategoryModel.js +143 -0
  3. package/chat/model/CategoryModel.js.map +1 -0
  4. package/chat/model/CategoryModel.ts +158 -0
  5. package/chat/model/CategoryModelMaster.d.ts +43 -0
  6. package/chat/model/CategoryModelMaster.js +199 -0
  7. package/chat/model/CategoryModelMaster.js.map +1 -0
  8. package/chat/model/CategoryModelMaster.ts +214 -0
  9. package/chat/model/CurrentModelMaster.d.ts +22 -0
  10. package/chat/model/CurrentModelMaster.js +111 -0
  11. package/chat/model/CurrentModelMaster.js.map +1 -0
  12. package/chat/model/CurrentModelMaster.ts +123 -0
  13. package/chat/model/GitHubCheckoutSetting.d.ts +37 -0
  14. package/chat/model/GitHubCheckoutSetting.js +132 -0
  15. package/chat/model/GitHubCheckoutSetting.js.map +1 -0
  16. package/chat/model/GitHubCheckoutSetting.ts +132 -0
  17. package/chat/model/index.d.ts +5 -1
  18. package/chat/model/index.js +9 -1
  19. package/chat/model/index.js.map +1 -1
  20. package/chat/model/index.ts +8 -0
  21. package/chat/request/CreateCategoryModelMasterRequest.d.ts +33 -0
  22. package/chat/request/CreateCategoryModelMasterRequest.js +111 -0
  23. package/chat/request/CreateCategoryModelMasterRequest.js.map +1 -0
  24. package/chat/request/CreateCategoryModelMasterRequest.ts +118 -0
  25. package/chat/request/DeleteCategoryModelMasterRequest.d.ts +25 -0
  26. package/chat/request/DeleteCategoryModelMasterRequest.js +83 -0
  27. package/chat/request/DeleteCategoryModelMasterRequest.js.map +1 -0
  28. package/chat/request/DeleteCategoryModelMasterRequest.ts +90 -0
  29. package/chat/request/DescribeCategoryModelMastersRequest.d.ts +29 -0
  30. package/chat/request/DescribeCategoryModelMastersRequest.js +97 -0
  31. package/chat/request/DescribeCategoryModelMastersRequest.js.map +1 -0
  32. package/chat/request/DescribeCategoryModelMastersRequest.ts +104 -0
  33. package/chat/request/DescribeCategoryModelsRequest.d.ts +21 -0
  34. package/chat/request/DescribeCategoryModelsRequest.js +69 -0
  35. package/chat/request/DescribeCategoryModelsRequest.js.map +1 -0
  36. package/chat/request/DescribeCategoryModelsRequest.ts +76 -0
  37. package/chat/request/ExportMasterRequest.d.ts +21 -0
  38. package/chat/request/ExportMasterRequest.js +69 -0
  39. package/chat/request/ExportMasterRequest.js.map +1 -0
  40. package/chat/request/ExportMasterRequest.ts +76 -0
  41. package/chat/request/GetCategoryModelMasterRequest.d.ts +25 -0
  42. package/chat/request/GetCategoryModelMasterRequest.js +83 -0
  43. package/chat/request/GetCategoryModelMasterRequest.js.map +1 -0
  44. package/chat/request/GetCategoryModelMasterRequest.ts +90 -0
  45. package/chat/request/GetCategoryModelRequest.d.ts +25 -0
  46. package/chat/request/GetCategoryModelRequest.js +83 -0
  47. package/chat/request/GetCategoryModelRequest.js.map +1 -0
  48. package/chat/request/GetCategoryModelRequest.ts +90 -0
  49. package/chat/request/GetCurrentModelMasterRequest.d.ts +21 -0
  50. package/chat/request/GetCurrentModelMasterRequest.js +69 -0
  51. package/chat/request/GetCurrentModelMasterRequest.js.map +1 -0
  52. package/chat/request/GetCurrentModelMasterRequest.ts +76 -0
  53. package/chat/request/PreUpdateCurrentModelMasterRequest.d.ts +21 -0
  54. package/chat/request/PreUpdateCurrentModelMasterRequest.js +69 -0
  55. package/chat/request/PreUpdateCurrentModelMasterRequest.js.map +1 -0
  56. package/chat/request/PreUpdateCurrentModelMasterRequest.ts +76 -0
  57. package/chat/request/UpdateCategoryModelMasterRequest.d.ts +33 -0
  58. package/chat/request/UpdateCategoryModelMasterRequest.js +111 -0
  59. package/chat/request/UpdateCategoryModelMasterRequest.js.map +1 -0
  60. package/chat/request/UpdateCategoryModelMasterRequest.ts +118 -0
  61. package/chat/request/UpdateCurrentModelMasterFromGitHubRequest.d.ts +26 -0
  62. package/chat/request/UpdateCurrentModelMasterFromGitHubRequest.js +86 -0
  63. package/chat/request/UpdateCurrentModelMasterFromGitHubRequest.js.map +1 -0
  64. package/chat/request/UpdateCurrentModelMasterFromGitHubRequest.ts +90 -0
  65. package/chat/request/UpdateCurrentModelMasterRequest.d.ts +33 -0
  66. package/chat/request/UpdateCurrentModelMasterRequest.js +111 -0
  67. package/chat/request/UpdateCurrentModelMasterRequest.js.map +1 -0
  68. package/chat/request/UpdateCurrentModelMasterRequest.ts +118 -0
  69. package/chat/request/index.d.ts +13 -1
  70. package/chat/request/index.js +26 -1
  71. package/chat/request/index.js.map +1 -1
  72. package/chat/request/index.ts +24 -0
  73. package/chat/rest.d.ts +12 -0
  74. package/chat/rest.js +299 -0
  75. package/chat/rest.js.map +1 -1
  76. package/chat/rest.ts +347 -0
  77. package/chat/result/CreateCategoryModelMasterResult.d.ts +14 -0
  78. package/chat/result/CreateCategoryModelMasterResult.js +48 -0
  79. package/chat/result/CreateCategoryModelMasterResult.js.map +1 -0
  80. package/chat/result/CreateCategoryModelMasterResult.ts +47 -0
  81. package/chat/result/DeleteCategoryModelMasterResult.d.ts +14 -0
  82. package/chat/result/DeleteCategoryModelMasterResult.js +48 -0
  83. package/chat/result/DeleteCategoryModelMasterResult.js.map +1 -0
  84. package/chat/result/DeleteCategoryModelMasterResult.ts +47 -0
  85. package/chat/result/DescribeCategoryModelMastersResult.d.ts +18 -0
  86. package/chat/result/DescribeCategoryModelMastersResult.js +67 -0
  87. package/chat/result/DescribeCategoryModelMastersResult.js.map +1 -0
  88. package/chat/result/DescribeCategoryModelMastersResult.ts +72 -0
  89. package/chat/result/DescribeCategoryModelsResult.d.ts +14 -0
  90. package/chat/result/DescribeCategoryModelsResult.js +53 -0
  91. package/chat/result/DescribeCategoryModelsResult.js.map +1 -0
  92. package/chat/result/DescribeCategoryModelsResult.ts +55 -0
  93. package/chat/result/ExportMasterResult.d.ts +14 -0
  94. package/chat/result/ExportMasterResult.js +48 -0
  95. package/chat/result/ExportMasterResult.js.map +1 -0
  96. package/chat/result/ExportMasterResult.ts +47 -0
  97. package/chat/result/GetCategoryModelMasterResult.d.ts +14 -0
  98. package/chat/result/GetCategoryModelMasterResult.js +48 -0
  99. package/chat/result/GetCategoryModelMasterResult.js.map +1 -0
  100. package/chat/result/GetCategoryModelMasterResult.ts +47 -0
  101. package/chat/result/GetCategoryModelResult.d.ts +14 -0
  102. package/chat/result/GetCategoryModelResult.js +48 -0
  103. package/chat/result/GetCategoryModelResult.js.map +1 -0
  104. package/chat/result/GetCategoryModelResult.ts +47 -0
  105. package/chat/result/GetCurrentModelMasterResult.d.ts +14 -0
  106. package/chat/result/GetCurrentModelMasterResult.js +48 -0
  107. package/chat/result/GetCurrentModelMasterResult.js.map +1 -0
  108. package/chat/result/GetCurrentModelMasterResult.ts +47 -0
  109. package/chat/result/PreUpdateCurrentModelMasterResult.d.ts +17 -0
  110. package/chat/result/PreUpdateCurrentModelMasterResult.js +59 -0
  111. package/chat/result/PreUpdateCurrentModelMasterResult.js.map +1 -0
  112. package/chat/result/PreUpdateCurrentModelMasterResult.ts +63 -0
  113. package/chat/result/UpdateCategoryModelMasterResult.d.ts +14 -0
  114. package/chat/result/UpdateCategoryModelMasterResult.js +48 -0
  115. package/chat/result/UpdateCategoryModelMasterResult.js.map +1 -0
  116. package/chat/result/UpdateCategoryModelMasterResult.ts +47 -0
  117. package/chat/result/UpdateCurrentModelMasterFromGitHubResult.d.ts +14 -0
  118. package/chat/result/UpdateCurrentModelMasterFromGitHubResult.js +48 -0
  119. package/chat/result/UpdateCurrentModelMasterFromGitHubResult.js.map +1 -0
  120. package/chat/result/UpdateCurrentModelMasterFromGitHubResult.ts +47 -0
  121. package/chat/result/UpdateCurrentModelMasterResult.d.ts +14 -0
  122. package/chat/result/UpdateCurrentModelMasterResult.js +48 -0
  123. package/chat/result/UpdateCurrentModelMasterResult.js.map +1 -0
  124. package/chat/result/UpdateCurrentModelMasterResult.ts +47 -0
  125. package/chat/result/index.d.ts +13 -1
  126. package/chat/result/index.js +26 -1
  127. package/chat/result/index.js.map +1 -1
  128. package/chat/result/index.ts +24 -0
  129. package/package.json +1 -1
package/chat/rest.ts CHANGED
@@ -1434,4 +1434,351 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
1434
1434
  throw JSON.parse(error.response.data.message);
1435
1435
  });
1436
1436
  }
1437
+
1438
+ public describeCategoryModels(request: Request.DescribeCategoryModelsRequest): Promise<Result.DescribeCategoryModelsResult> {
1439
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model')
1440
+ .replace('{service}', 'chat')
1441
+ .replace('{region}', this.session.region)
1442
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
1443
+
1444
+ const headers = this.createAuthorizedHeaders();
1445
+ if (request.getRequestId()) {
1446
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1447
+ }
1448
+ const params: {[key: string]: any} = {
1449
+ 'contextStack': request.getContextStack() ?? null,
1450
+ };
1451
+ return axios.get(
1452
+ url,
1453
+ {
1454
+ params,
1455
+ headers,
1456
+ },
1457
+ ).then((response: any) => {
1458
+ return Result.DescribeCategoryModelsResult.fromDict(response.data);
1459
+ }).catch((error: any) => {
1460
+ throw JSON.parse(error.response.data.message);
1461
+ });
1462
+ }
1463
+
1464
+ public getCategoryModel(request: Request.GetCategoryModelRequest): Promise<Result.GetCategoryModelResult> {
1465
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/{category}')
1466
+ .replace('{service}', 'chat')
1467
+ .replace('{region}', this.session.region)
1468
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1469
+ .replace('{category}', String(request.getCategory() ?? 'null') === "" ? "null" : String(request.getCategory() ?? 'null'));
1470
+
1471
+ const headers = this.createAuthorizedHeaders();
1472
+ if (request.getRequestId()) {
1473
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1474
+ }
1475
+ const params: {[key: string]: any} = {
1476
+ 'contextStack': request.getContextStack() ?? null,
1477
+ };
1478
+ return axios.get(
1479
+ url,
1480
+ {
1481
+ params,
1482
+ headers,
1483
+ },
1484
+ ).then((response: any) => {
1485
+ return Result.GetCategoryModelResult.fromDict(response.data);
1486
+ }).catch((error: any) => {
1487
+ throw JSON.parse(error.response.data.message);
1488
+ });
1489
+ }
1490
+
1491
+ public describeCategoryModelMasters(request: Request.DescribeCategoryModelMastersRequest): Promise<Result.DescribeCategoryModelMastersResult> {
1492
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
1493
+ .replace('{service}', 'chat')
1494
+ .replace('{region}', this.session.region)
1495
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
1496
+
1497
+ const headers = this.createAuthorizedHeaders();
1498
+ if (request.getRequestId()) {
1499
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1500
+ }
1501
+ const params: {[key: string]: any} = {
1502
+ 'contextStack': request.getContextStack() ?? null,
1503
+ 'pageToken': String(request.getPageToken() ?? null),
1504
+ 'limit': String(request.getLimit() ?? null),
1505
+ };
1506
+ return axios.get(
1507
+ url,
1508
+ {
1509
+ params,
1510
+ headers,
1511
+ },
1512
+ ).then((response: any) => {
1513
+ return Result.DescribeCategoryModelMastersResult.fromDict(response.data);
1514
+ }).catch((error: any) => {
1515
+ throw JSON.parse(error.response.data.message);
1516
+ });
1517
+ }
1518
+
1519
+ public createCategoryModelMaster(request: Request.CreateCategoryModelMasterRequest): Promise<Result.CreateCategoryModelMasterResult> {
1520
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
1521
+ .replace('{service}', 'chat')
1522
+ .replace('{region}', this.session.region)
1523
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
1524
+
1525
+ const headers = this.createAuthorizedHeaders();
1526
+ if (request.getRequestId()) {
1527
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1528
+ }
1529
+ const body: {[key: string]: any} = {
1530
+ 'contextStack': request.getContextStack() ?? null,
1531
+ 'category': request.getCategory() ?? null,
1532
+ 'description': request.getDescription() ?? null,
1533
+ 'rejectAccessTokenPost': request.getRejectAccessTokenPost() ?? null,
1534
+ };
1535
+ return axios.post(
1536
+ url,
1537
+ body,
1538
+ {
1539
+ headers,
1540
+ },
1541
+ ).then((response: any) => {
1542
+ return Result.CreateCategoryModelMasterResult.fromDict(response.data);
1543
+ }).catch((error: any) => {
1544
+ if (error.response) {
1545
+ throw JSON.parse(error.response.data.message);
1546
+ } else {
1547
+ throw [];
1548
+ }
1549
+ });
1550
+ }
1551
+
1552
+ public getCategoryModelMaster(request: Request.GetCategoryModelMasterRequest): Promise<Result.GetCategoryModelMasterResult> {
1553
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{category}')
1554
+ .replace('{service}', 'chat')
1555
+ .replace('{region}', this.session.region)
1556
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1557
+ .replace('{category}', String(request.getCategory() ?? 'null') === "" ? "null" : String(request.getCategory() ?? 'null'));
1558
+
1559
+ const headers = this.createAuthorizedHeaders();
1560
+ if (request.getRequestId()) {
1561
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1562
+ }
1563
+ const params: {[key: string]: any} = {
1564
+ 'contextStack': request.getContextStack() ?? null,
1565
+ };
1566
+ return axios.get(
1567
+ url,
1568
+ {
1569
+ params,
1570
+ headers,
1571
+ },
1572
+ ).then((response: any) => {
1573
+ return Result.GetCategoryModelMasterResult.fromDict(response.data);
1574
+ }).catch((error: any) => {
1575
+ throw JSON.parse(error.response.data.message);
1576
+ });
1577
+ }
1578
+
1579
+ public updateCategoryModelMaster(request: Request.UpdateCategoryModelMasterRequest): Promise<Result.UpdateCategoryModelMasterResult> {
1580
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{category}')
1581
+ .replace('{service}', 'chat')
1582
+ .replace('{region}', this.session.region)
1583
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1584
+ .replace('{category}', String(request.getCategory() ?? 'null') === "" ? "null" : String(request.getCategory() ?? 'null'));
1585
+
1586
+ const headers = this.createAuthorizedHeaders();
1587
+ if (request.getRequestId()) {
1588
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1589
+ }
1590
+ const body: {[key: string]: any} = {
1591
+ 'contextStack': request.getContextStack() ?? null,
1592
+ 'description': request.getDescription() ?? null,
1593
+ 'rejectAccessTokenPost': request.getRejectAccessTokenPost() ?? null,
1594
+ };
1595
+ return axios.put(
1596
+ url,
1597
+ body,
1598
+ {
1599
+ headers,
1600
+ },
1601
+ ).then((response: any) => {
1602
+ return Result.UpdateCategoryModelMasterResult.fromDict(response.data);
1603
+ }).catch((error: any) => {
1604
+ if (error.response) {
1605
+ throw JSON.parse(error.response.data.message);
1606
+ } else {
1607
+ throw [];
1608
+ }
1609
+ });
1610
+ }
1611
+
1612
+ public deleteCategoryModelMaster(request: Request.DeleteCategoryModelMasterRequest): Promise<Result.DeleteCategoryModelMasterResult> {
1613
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{category}')
1614
+ .replace('{service}', 'chat')
1615
+ .replace('{region}', this.session.region)
1616
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1617
+ .replace('{category}', String(request.getCategory() ?? 'null') === "" ? "null" : String(request.getCategory() ?? 'null'));
1618
+
1619
+ const headers = this.createAuthorizedHeaders();
1620
+ if (request.getRequestId()) {
1621
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1622
+ }
1623
+ const params: {[key: string]: any} = {
1624
+ 'contextStack': request.getContextStack() ?? null,
1625
+ };
1626
+ return axios.delete(
1627
+ url,
1628
+ {
1629
+ params,
1630
+ headers,
1631
+ },
1632
+ ).then((response: any) => {
1633
+ return Result.DeleteCategoryModelMasterResult.fromDict(response.data);
1634
+ }).catch((error: any) => {
1635
+ throw JSON.parse(error.response.data.message);
1636
+ });
1637
+ }
1638
+
1639
+ public exportMaster(request: Request.ExportMasterRequest): Promise<Result.ExportMasterResult> {
1640
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
1641
+ .replace('{service}', 'chat')
1642
+ .replace('{region}', this.session.region)
1643
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
1644
+
1645
+ const headers = this.createAuthorizedHeaders();
1646
+ if (request.getRequestId()) {
1647
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1648
+ }
1649
+ const params: {[key: string]: any} = {
1650
+ 'contextStack': request.getContextStack() ?? null,
1651
+ };
1652
+ return axios.get(
1653
+ url,
1654
+ {
1655
+ params,
1656
+ headers,
1657
+ },
1658
+ ).then((response: any) => {
1659
+ return Result.ExportMasterResult.fromDict(response.data);
1660
+ }).catch((error: any) => {
1661
+ throw JSON.parse(error.response.data.message);
1662
+ });
1663
+ }
1664
+
1665
+ public getCurrentModelMaster(request: Request.GetCurrentModelMasterRequest): Promise<Result.GetCurrentModelMasterResult> {
1666
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
1667
+ .replace('{service}', 'chat')
1668
+ .replace('{region}', this.session.region)
1669
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
1670
+
1671
+ const headers = this.createAuthorizedHeaders();
1672
+ if (request.getRequestId()) {
1673
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1674
+ }
1675
+ const params: {[key: string]: any} = {
1676
+ 'contextStack': request.getContextStack() ?? null,
1677
+ };
1678
+ return axios.get(
1679
+ url,
1680
+ {
1681
+ params,
1682
+ headers,
1683
+ },
1684
+ ).then((response: any) => {
1685
+ return Result.GetCurrentModelMasterResult.fromDict(response.data);
1686
+ }).catch((error: any) => {
1687
+ throw JSON.parse(error.response.data.message);
1688
+ });
1689
+ }
1690
+
1691
+ public preUpdateCurrentModelMaster(request: Request.PreUpdateCurrentModelMasterRequest): Promise<Result.PreUpdateCurrentModelMasterResult> {
1692
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
1693
+ .replace('{service}', 'chat')
1694
+ .replace('{region}', this.session.region)
1695
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
1696
+
1697
+ const headers = this.createAuthorizedHeaders();
1698
+ if (request.getRequestId()) {
1699
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1700
+ }
1701
+ const body: {[key: string]: any} = {
1702
+ 'contextStack': request.getContextStack() ?? null,
1703
+ };
1704
+ return axios.post(
1705
+ url,
1706
+ body,
1707
+ {
1708
+ headers,
1709
+ },
1710
+ ).then((response: any) => {
1711
+ return Result.PreUpdateCurrentModelMasterResult.fromDict(response.data);
1712
+ }).catch((error: any) => {
1713
+ if (error.response) {
1714
+ throw JSON.parse(error.response.data.message);
1715
+ } else {
1716
+ throw [];
1717
+ }
1718
+ });
1719
+ }
1720
+
1721
+ public updateCurrentModelMaster(request: Request.UpdateCurrentModelMasterRequest): Promise<Result.UpdateCurrentModelMasterResult> {
1722
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
1723
+ .replace('{service}', 'chat')
1724
+ .replace('{region}', this.session.region)
1725
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
1726
+
1727
+ const headers = this.createAuthorizedHeaders();
1728
+ if (request.getRequestId()) {
1729
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1730
+ }
1731
+ const body: {[key: string]: any} = {
1732
+ 'contextStack': request.getContextStack() ?? null,
1733
+ 'mode': request.getMode() ?? null,
1734
+ 'settings': request.getSettings() ?? null,
1735
+ 'uploadToken': request.getUploadToken() ?? null,
1736
+ };
1737
+ return axios.put(
1738
+ url,
1739
+ body,
1740
+ {
1741
+ headers,
1742
+ },
1743
+ ).then((response: any) => {
1744
+ return Result.UpdateCurrentModelMasterResult.fromDict(response.data);
1745
+ }).catch((error: any) => {
1746
+ if (error.response) {
1747
+ throw JSON.parse(error.response.data.message);
1748
+ } else {
1749
+ throw [];
1750
+ }
1751
+ });
1752
+ }
1753
+
1754
+ public updateCurrentModelMasterFromGitHub(request: Request.UpdateCurrentModelMasterFromGitHubRequest): Promise<Result.UpdateCurrentModelMasterFromGitHubResult> {
1755
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
1756
+ .replace('{service}', 'chat')
1757
+ .replace('{region}', this.session.region)
1758
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
1759
+
1760
+ const headers = this.createAuthorizedHeaders();
1761
+ if (request.getRequestId()) {
1762
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1763
+ }
1764
+ const body: {[key: string]: any} = {
1765
+ 'contextStack': request.getContextStack() ?? null,
1766
+ 'checkoutSetting': request.getCheckoutSetting()?.toDict() ?? null,
1767
+ };
1768
+ return axios.put(
1769
+ url,
1770
+ body,
1771
+ {
1772
+ headers,
1773
+ },
1774
+ ).then((response: any) => {
1775
+ return Result.UpdateCurrentModelMasterFromGitHubResult.fromDict(response.data);
1776
+ }).catch((error: any) => {
1777
+ if (error.response) {
1778
+ throw JSON.parse(error.response.data.message);
1779
+ } else {
1780
+ throw [];
1781
+ }
1782
+ });
1783
+ }
1437
1784
  }
@@ -0,0 +1,14 @@
1
+ import IResult from '../../core/interface/IResult';
2
+ import * as Gs2Chat from '../model';
3
+ export default class CreateCategoryModelMasterResult implements IResult {
4
+ private item;
5
+ getItem(): Gs2Chat.CategoryModelMaster | null;
6
+ setItem(item: Gs2Chat.CategoryModelMaster | null): this;
7
+ withItem(item: Gs2Chat.CategoryModelMaster | null): this;
8
+ static fromDict(data: {
9
+ [key: string]: any;
10
+ }): CreateCategoryModelMasterResult;
11
+ toDict(): {
12
+ [key: string]: any;
13
+ };
14
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /*
3
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
4
+ Reserved.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License").
7
+ You may not use this file except in compliance with the License.
8
+ A copy of the License is located at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ or in the "license" file accompanying this file. This file is distributed
13
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ express or implied. See the License for the specific language governing
15
+ permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ var tslib_1 = require("tslib");
19
+ var Gs2Chat = tslib_1.__importStar(require("../model"));
20
+ var CreateCategoryModelMasterResult = /** @class */ (function () {
21
+ function CreateCategoryModelMasterResult() {
22
+ this.item = null;
23
+ }
24
+ CreateCategoryModelMasterResult.prototype.getItem = function () {
25
+ return this.item;
26
+ };
27
+ CreateCategoryModelMasterResult.prototype.setItem = function (item) {
28
+ this.item = item;
29
+ return this;
30
+ };
31
+ CreateCategoryModelMasterResult.prototype.withItem = function (item) {
32
+ this.item = item;
33
+ return this;
34
+ };
35
+ CreateCategoryModelMasterResult.fromDict = function (data) {
36
+ return new CreateCategoryModelMasterResult()
37
+ .withItem(Gs2Chat.CategoryModelMaster.fromDict(data["item"]));
38
+ };
39
+ CreateCategoryModelMasterResult.prototype.toDict = function () {
40
+ var _a;
41
+ return {
42
+ "item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
43
+ };
44
+ };
45
+ return CreateCategoryModelMasterResult;
46
+ }());
47
+ exports.default = CreateCategoryModelMasterResult;
48
+ //# sourceMappingURL=CreateCategoryModelMasterResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateCategoryModelMasterResult.js","sourceRoot":"","sources":["CreateCategoryModelMasterResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,wDAAmC;AAEnC;IAAA;QACY,SAAI,GAAqC,IAAI,CAAC;IA0B1D,CAAC;IAxBU,iDAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,iDAAO,GAAd,UAAe,IAAsC;QACjD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,kDAAQ,GAAf,UAAgB,IAAsC;QAClD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,wCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,+BAA+B,EAAE;aACvC,QAAQ,CAAC,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACtE,CAAC;IAEM,gDAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;SACnC,CAAC;IACN,CAAC;IACL,sCAAC;AAAD,CAAC,AA3BD,IA2BC"}
@@ -0,0 +1,47 @@
1
+ /*
2
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
3
+ Reserved.
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License").
6
+ You may not use this file except in compliance with the License.
7
+ A copy of the License is located at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ or in the "license" file accompanying this file. This file is distributed
12
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ express or implied. See the License for the specific language governing
14
+ permissions and limitations under the License.
15
+ */
16
+
17
+ import IResult from '../../core/interface/IResult';
18
+ import * as Gs2Chat from '../model'
19
+
20
+ export default class CreateCategoryModelMasterResult implements IResult {
21
+ private item: Gs2Chat.CategoryModelMaster|null = null;
22
+
23
+ public getItem(): Gs2Chat.CategoryModelMaster|null {
24
+ return this.item;
25
+ }
26
+
27
+ public setItem(item: Gs2Chat.CategoryModelMaster|null) {
28
+ this.item = item;
29
+ return this;
30
+ }
31
+
32
+ public withItem(item: Gs2Chat.CategoryModelMaster|null): this {
33
+ this.item = item;
34
+ return this;
35
+ }
36
+
37
+ public static fromDict(data: {[key: string]: any}): CreateCategoryModelMasterResult {
38
+ return new CreateCategoryModelMasterResult()
39
+ .withItem(Gs2Chat.CategoryModelMaster.fromDict(data["item"]));
40
+ }
41
+
42
+ public toDict(): {[key: string]: any} {
43
+ return {
44
+ "item": this.getItem()?.toDict(),
45
+ };
46
+ }
47
+ }
@@ -0,0 +1,14 @@
1
+ import IResult from '../../core/interface/IResult';
2
+ import * as Gs2Chat from '../model';
3
+ export default class DeleteCategoryModelMasterResult implements IResult {
4
+ private item;
5
+ getItem(): Gs2Chat.CategoryModelMaster | null;
6
+ setItem(item: Gs2Chat.CategoryModelMaster | null): this;
7
+ withItem(item: Gs2Chat.CategoryModelMaster | null): this;
8
+ static fromDict(data: {
9
+ [key: string]: any;
10
+ }): DeleteCategoryModelMasterResult;
11
+ toDict(): {
12
+ [key: string]: any;
13
+ };
14
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /*
3
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
4
+ Reserved.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License").
7
+ You may not use this file except in compliance with the License.
8
+ A copy of the License is located at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ or in the "license" file accompanying this file. This file is distributed
13
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ express or implied. See the License for the specific language governing
15
+ permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ var tslib_1 = require("tslib");
19
+ var Gs2Chat = tslib_1.__importStar(require("../model"));
20
+ var DeleteCategoryModelMasterResult = /** @class */ (function () {
21
+ function DeleteCategoryModelMasterResult() {
22
+ this.item = null;
23
+ }
24
+ DeleteCategoryModelMasterResult.prototype.getItem = function () {
25
+ return this.item;
26
+ };
27
+ DeleteCategoryModelMasterResult.prototype.setItem = function (item) {
28
+ this.item = item;
29
+ return this;
30
+ };
31
+ DeleteCategoryModelMasterResult.prototype.withItem = function (item) {
32
+ this.item = item;
33
+ return this;
34
+ };
35
+ DeleteCategoryModelMasterResult.fromDict = function (data) {
36
+ return new DeleteCategoryModelMasterResult()
37
+ .withItem(Gs2Chat.CategoryModelMaster.fromDict(data["item"]));
38
+ };
39
+ DeleteCategoryModelMasterResult.prototype.toDict = function () {
40
+ var _a;
41
+ return {
42
+ "item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
43
+ };
44
+ };
45
+ return DeleteCategoryModelMasterResult;
46
+ }());
47
+ exports.default = DeleteCategoryModelMasterResult;
48
+ //# sourceMappingURL=DeleteCategoryModelMasterResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeleteCategoryModelMasterResult.js","sourceRoot":"","sources":["DeleteCategoryModelMasterResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,wDAAmC;AAEnC;IAAA;QACY,SAAI,GAAqC,IAAI,CAAC;IA0B1D,CAAC;IAxBU,iDAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,iDAAO,GAAd,UAAe,IAAsC;QACjD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,kDAAQ,GAAf,UAAgB,IAAsC;QAClD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,wCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,+BAA+B,EAAE;aACvC,QAAQ,CAAC,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACtE,CAAC;IAEM,gDAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;SACnC,CAAC;IACN,CAAC;IACL,sCAAC;AAAD,CAAC,AA3BD,IA2BC"}
@@ -0,0 +1,47 @@
1
+ /*
2
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
3
+ Reserved.
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License").
6
+ You may not use this file except in compliance with the License.
7
+ A copy of the License is located at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ or in the "license" file accompanying this file. This file is distributed
12
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ express or implied. See the License for the specific language governing
14
+ permissions and limitations under the License.
15
+ */
16
+
17
+ import IResult from '../../core/interface/IResult';
18
+ import * as Gs2Chat from '../model'
19
+
20
+ export default class DeleteCategoryModelMasterResult implements IResult {
21
+ private item: Gs2Chat.CategoryModelMaster|null = null;
22
+
23
+ public getItem(): Gs2Chat.CategoryModelMaster|null {
24
+ return this.item;
25
+ }
26
+
27
+ public setItem(item: Gs2Chat.CategoryModelMaster|null) {
28
+ this.item = item;
29
+ return this;
30
+ }
31
+
32
+ public withItem(item: Gs2Chat.CategoryModelMaster|null): this {
33
+ this.item = item;
34
+ return this;
35
+ }
36
+
37
+ public static fromDict(data: {[key: string]: any}): DeleteCategoryModelMasterResult {
38
+ return new DeleteCategoryModelMasterResult()
39
+ .withItem(Gs2Chat.CategoryModelMaster.fromDict(data["item"]));
40
+ }
41
+
42
+ public toDict(): {[key: string]: any} {
43
+ return {
44
+ "item": this.getItem()?.toDict(),
45
+ };
46
+ }
47
+ }
@@ -0,0 +1,18 @@
1
+ import IResult from '../../core/interface/IResult';
2
+ import * as Gs2Chat from '../model';
3
+ export default class DescribeCategoryModelMastersResult implements IResult {
4
+ private items;
5
+ private nextPageToken;
6
+ getItems(): Gs2Chat.CategoryModelMaster[] | null;
7
+ setItems(items: Gs2Chat.CategoryModelMaster[] | null): this;
8
+ withItems(items: Gs2Chat.CategoryModelMaster[] | null): this;
9
+ getNextPageToken(): string | null;
10
+ setNextPageToken(nextPageToken: string | null): this;
11
+ withNextPageToken(nextPageToken: string | null): this;
12
+ static fromDict(data: {
13
+ [key: string]: any;
14
+ }): DescribeCategoryModelMastersResult;
15
+ toDict(): {
16
+ [key: string]: any;
17
+ };
18
+ }
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ /*
3
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
4
+ Reserved.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License").
7
+ You may not use this file except in compliance with the License.
8
+ A copy of the License is located at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ or in the "license" file accompanying this file. This file is distributed
13
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ express or implied. See the License for the specific language governing
15
+ permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ var tslib_1 = require("tslib");
19
+ var Gs2Chat = tslib_1.__importStar(require("../model"));
20
+ var DescribeCategoryModelMastersResult = /** @class */ (function () {
21
+ function DescribeCategoryModelMastersResult() {
22
+ this.items = null;
23
+ this.nextPageToken = null;
24
+ }
25
+ DescribeCategoryModelMastersResult.prototype.getItems = function () {
26
+ return this.items;
27
+ };
28
+ DescribeCategoryModelMastersResult.prototype.setItems = function (items) {
29
+ this.items = items;
30
+ return this;
31
+ };
32
+ DescribeCategoryModelMastersResult.prototype.withItems = function (items) {
33
+ this.items = items;
34
+ return this;
35
+ };
36
+ DescribeCategoryModelMastersResult.prototype.getNextPageToken = function () {
37
+ return this.nextPageToken;
38
+ };
39
+ DescribeCategoryModelMastersResult.prototype.setNextPageToken = function (nextPageToken) {
40
+ this.nextPageToken = nextPageToken;
41
+ return this;
42
+ };
43
+ DescribeCategoryModelMastersResult.prototype.withNextPageToken = function (nextPageToken) {
44
+ this.nextPageToken = nextPageToken;
45
+ return this;
46
+ };
47
+ DescribeCategoryModelMastersResult.fromDict = function (data) {
48
+ return new DescribeCategoryModelMastersResult()
49
+ .withItems(data.items ?
50
+ data.items.map(function (item) {
51
+ return Gs2Chat.CategoryModelMaster.fromDict(item);
52
+ }) : null)
53
+ .withNextPageToken(data["nextPageToken"]);
54
+ };
55
+ DescribeCategoryModelMastersResult.prototype.toDict = function () {
56
+ return {
57
+ "items": this.getItems() ?
58
+ this.getItems().map(function (item) {
59
+ return item.toDict();
60
+ }) : null,
61
+ "nextPageToken": this.getNextPageToken(),
62
+ };
63
+ };
64
+ return DescribeCategoryModelMastersResult;
65
+ }());
66
+ exports.default = DescribeCategoryModelMastersResult;
67
+ //# sourceMappingURL=DescribeCategoryModelMastersResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DescribeCategoryModelMastersResult.js","sourceRoot":"","sources":["DescribeCategoryModelMastersResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,wDAAmC;AAEnC;IAAA;QACY,UAAK,GAAuC,IAAI,CAAC;QACjD,kBAAa,GAAgB,IAAI,CAAC;IAkD9C,CAAC;IAhDU,qDAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,qDAAQ,GAAf,UAAgB,KAAyC;QACrD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,sDAAS,GAAhB,UAAiB,KAAyC;QACtD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,6DAAgB,GAAvB;QACI,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAEM,6DAAgB,GAAvB,UAAwB,aAA0B;QAC9C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,8DAAiB,GAAxB,UAAyB,aAA0B;QAC/C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,2CAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,kCAAkC,EAAE;aAC1C,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACtC,OAAO,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACtD,CAAC,CACJ,CAAC,CAAC,CAAC,IAAI,CAAC;aACR,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC;IAClD,CAAC;IAEM,mDAAM,GAAb;QACI,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACtB,IAAI,CAAC,QAAQ,EAAG,CAAC,GAAG,CAAC,UAAC,IAAiC;oBACnD,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,IAAI;YACR,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;SAC3C,CAAC;IACN,CAAC;IACL,yCAAC;AAAD,CAAC,AApDD,IAoDC"}