@dbos-inc/dbos-sdk 0.10.3-preview → 0.10.5-preview.g32e0b301f4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. package/dist/packages/dbos-cloud/applications/delete-app.d.ts.map +1 -1
  2. package/dist/packages/dbos-cloud/applications/delete-app.js +6 -5
  3. package/dist/packages/dbos-cloud/applications/delete-app.js.map +1 -1
  4. package/dist/packages/dbos-cloud/applications/deploy-app-code.d.ts.map +1 -1
  5. package/dist/packages/dbos-cloud/applications/deploy-app-code.js +7 -8
  6. package/dist/packages/dbos-cloud/applications/deploy-app-code.js.map +1 -1
  7. package/dist/packages/dbos-cloud/applications/get-app-info.d.ts.map +1 -1
  8. package/dist/packages/dbos-cloud/applications/get-app-info.js +5 -5
  9. package/dist/packages/dbos-cloud/applications/get-app-info.js.map +1 -1
  10. package/dist/packages/dbos-cloud/applications/get-app-logs.d.ts.map +1 -1
  11. package/dist/packages/dbos-cloud/applications/get-app-logs.js +5 -5
  12. package/dist/packages/dbos-cloud/applications/get-app-logs.js.map +1 -1
  13. package/dist/packages/dbos-cloud/applications/list-apps.js +2 -2
  14. package/dist/packages/dbos-cloud/applications/list-apps.js.map +1 -1
  15. package/dist/packages/dbos-cloud/applications/register-app.d.ts.map +1 -1
  16. package/dist/packages/dbos-cloud/applications/register-app.js +6 -5
  17. package/dist/packages/dbos-cloud/applications/register-app.js.map +1 -1
  18. package/dist/packages/dbos-cloud/applications/update-app.d.ts.map +1 -1
  19. package/dist/packages/dbos-cloud/applications/update-app.js +6 -5
  20. package/dist/packages/dbos-cloud/applications/update-app.js.map +1 -1
  21. package/dist/packages/dbos-cloud/cli.js +28 -45
  22. package/dist/packages/dbos-cloud/cli.js.map +1 -1
  23. package/dist/packages/dbos-cloud/cloudutils.d.ts +0 -2
  24. package/dist/packages/dbos-cloud/cloudutils.d.ts.map +1 -1
  25. package/dist/packages/dbos-cloud/cloudutils.js +1 -18
  26. package/dist/packages/dbos-cloud/cloudutils.js.map +1 -1
  27. package/dist/packages/dbos-cloud/register.d.ts.map +1 -1
  28. package/dist/packages/dbos-cloud/register.js +2 -8
  29. package/dist/packages/dbos-cloud/register.js.map +1 -1
  30. package/dist/packages/dbos-cloud/userdb.js +4 -4
  31. package/dist/packages/dbos-cloud/userdb.js.map +1 -1
  32. package/dist/tsconfig.build.tsbuildinfo +1 -1
  33. package/package.json +1 -1
@@ -31,20 +31,14 @@ async function registerUser(username, host) {
31
31
  }
32
32
  else {
33
33
  const userCredentials = (0, cloudutils_1.getCloudCredentials)();
34
- if (userCredentials.userName !== username) {
35
- logger.error(`You are trying to register ${username}, but are currently logged in as ${userCredentials.userName}. Please run "npx dbos-cloud logout".`);
36
- return 1;
37
- }
38
- else {
39
- logger.info(`You are currently logged in as ${userCredentials.userName}. Registering ${userCredentials.userName} with DBOS Cloud...`);
40
- }
34
+ logger.info(`You are currently logged in as ${userCredentials.userName}. Registering ${userCredentials.userName} with DBOS Cloud...`);
41
35
  }
42
36
  const userCredentials = (0, cloudutils_1.getCloudCredentials)();
43
37
  const bearerToken = "Bearer " + userCredentials.token;
44
38
  const loginName = userCredentials.userName;
45
39
  try {
46
40
  // First, register the user.
47
- const register = await axios_1.default.put(`https://${host}/user`, {
41
+ const register = await axios_1.default.put(`https://${host}/v1alpha1/user`, {
48
42
  name: loginName,
49
43
  given_name: givenName,
50
44
  family_name: familyName,
@@ -1 +1 @@
1
- {"version":3,"file":"register.js","sourceRoot":"","sources":["../../../packages/dbos-cloud/register.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0C;AAC1C,6CAA0H;AAC1H,wDAAgC;AAChC,mCAAgC;AAEhC,MAAM,EAAE,GAAG,kBAAQ,CAAC,eAAe,CAAC;IAClC,KAAK,EAAE,OAAO,CAAC,KAAK;IACpB,MAAM,EAAE,OAAO,CAAC,MAAM;CACvB,CAAC,CAAC;AAEI,KAAK,UAAU,YAAY,CAAC,QAAgB,EAAE,IAAY;IAC/D,MAAM,MAAM,GAAG,IAAA,sBAAS,GAAE,CAAC;IAC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,IAAI,CAAC;QACH,4BAA4B;QAC5B,MAAM,QAAQ,GAAG,MAAM,eAAK,CAAC,GAAG,CAC9B,WAAW,IAAI,gBAAgB,EAC/B;YACE,IAAI,EAAE,SAAS;YACf,UAAU,EAAE,SAAS;YACrB,WAAW,EAAE,UAAU;YACvB,OAAO,EAAE,OAAO;SACjB,EACD;YACE,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,aAAa,EAAE,WAAW;aAC3B;SACF,CACF,CAAC;QACF,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAc,CAAC;QACzC,MAAM,CAAC,IAAI,CAAC,mBAAmB,SAAS,WAAW,QAAQ,EAAE,CAAC,CAAC;IACjE,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,UAAU,GAAG,2BAA2B,SAAS,EAAE,CAAC;QAC1D,MAAM,UAAU,GAAG,CAAe,CAAC;QACnC,IAAI,IAAA,oCAAuB,EAAC,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC;YACvD,IAAA,4BAAe,EAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QAC1C,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,KAAK,CAAC,GAAG,UAAU,KAAM,CAAW,CAAC,OAAO,EAAE,CAAC,CAAC;QACzD,CAAC;QACD,OAAO,CAAC,CAAC;IACX,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC;AAtDD,oCAsDC"}
@@ -12,7 +12,7 @@ async function createUserDb(host, dbName, adminName, adminPassword, sync) {
12
12
  const userCredentials = (0, cloudutils_1.getCloudCredentials)();
13
13
  const bearerToken = "Bearer " + userCredentials.token;
14
14
  try {
15
- await axios_1.default.post(`https://${host}/${userCredentials.userName}/databases/userdb`, { Name: dbName, AdminName: adminName, AdminPassword: adminPassword }, {
15
+ await axios_1.default.post(`https://${host}/v1alpha1/${userCredentials.userName}/databases/userdb`, { Name: dbName, AdminName: adminName, AdminPassword: adminPassword }, {
16
16
  headers: {
17
17
  "Content-Type": "application/json",
18
18
  Authorization: bearerToken,
@@ -48,7 +48,7 @@ async function deleteUserDb(host, dbName) {
48
48
  const userCredentials = (0, cloudutils_1.getCloudCredentials)();
49
49
  const bearerToken = "Bearer " + userCredentials.token;
50
50
  try {
51
- await axios_1.default.delete(`https://${host}/${userCredentials.userName}/databases/userdb/${dbName}`, {
51
+ await axios_1.default.delete(`https://${host}/v1alpha1/${userCredentials.userName}/databases/userdb/${dbName}`, {
52
52
  headers: {
53
53
  "Content-Type": "application/json",
54
54
  Authorization: bearerToken,
@@ -104,7 +104,7 @@ async function listUserDB(host, json) {
104
104
  try {
105
105
  const userCredentials = (0, cloudutils_1.getCloudCredentials)();
106
106
  const bearerToken = "Bearer " + userCredentials.token;
107
- const res = await axios_1.default.get(`https://${host}/${userCredentials.userName}/databases`, {
107
+ const res = await axios_1.default.get(`https://${host}/v1alpha1/${userCredentials.userName}/databases`, {
108
108
  headers: {
109
109
  "Content-Type": "application/json",
110
110
  Authorization: bearerToken,
@@ -141,7 +141,7 @@ exports.listUserDB = listUserDB;
141
141
  async function getUserDBInfo(host, dbName) {
142
142
  const userCredentials = (0, cloudutils_1.getCloudCredentials)();
143
143
  const bearerToken = "Bearer " + userCredentials.token;
144
- const res = await axios_1.default.get(`https://${host}/${userCredentials.userName}/databases/userdb/info/${dbName}`, {
144
+ const res = await axios_1.default.get(`https://${host}/v1alpha1/${userCredentials.userName}/databases/userdb/info/${dbName}`, {
145
145
  headers: {
146
146
  "Content-Type": "application/json",
147
147
  Authorization: bearerToken,
@@ -1 +1 @@
1
- {"version":3,"file":"userdb.js","sourceRoot":"","sources":["../../../packages/dbos-cloud/userdb.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0C;AAC1C,6CAAwG;AACxG,2CAAwC;AAUjC,KAAK,UAAU,YAAY,CAAC,IAAY,EAAE,MAAc,EAAE,SAAiB,EAAE,aAAqB,EAAE,IAAa;IACtH,MAAM,MAAM,GAAG,IAAA,sBAAS,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