@space-df/sdk 0.0.1-dev.12 → 0.0.1-dev.14

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 (44) hide show
  1. package/api.doc.md +250 -217
  2. package/dist/package.json +1 -1
  3. package/dist/resources/auth/auth.d.ts +0 -1
  4. package/dist/resources/auth/auth.d.ts.map +1 -1
  5. package/dist/resources/auth/space-policies.d.ts +6 -3
  6. package/dist/resources/auth/space-policies.d.ts.map +1 -1
  7. package/dist/resources/auth/space-policies.js +16 -5
  8. package/dist/resources/auth/space-policies.js.map +1 -1
  9. package/dist/resources/auth/space-policies.mjs +16 -5
  10. package/dist/resources/auth/space-policies.mjs.map +1 -1
  11. package/dist/resources/auth/space-role-users.d.ts +11 -6
  12. package/dist/resources/auth/space-role-users.d.ts.map +1 -1
  13. package/dist/resources/auth/space-role-users.js +19 -10
  14. package/dist/resources/auth/space-role-users.js.map +1 -1
  15. package/dist/resources/auth/space-role-users.mjs +19 -10
  16. package/dist/resources/auth/space-role-users.mjs.map +1 -1
  17. package/dist/resources/auth/space-roles.d.ts +14 -3
  18. package/dist/resources/auth/space-roles.d.ts.map +1 -1
  19. package/dist/resources/auth/space-roles.js +14 -12
  20. package/dist/resources/auth/space-roles.js.map +1 -1
  21. package/dist/resources/auth/space-roles.mjs +14 -12
  22. package/dist/resources/auth/space-roles.mjs.map +1 -1
  23. package/dist/resources/auth/spaces.d.ts +11 -3
  24. package/dist/resources/auth/spaces.d.ts.map +1 -1
  25. package/dist/resources/auth/spaces.js +14 -8
  26. package/dist/resources/auth/spaces.js.map +1 -1
  27. package/dist/resources/auth/spaces.mjs +14 -8
  28. package/dist/resources/auth/spaces.mjs.map +1 -1
  29. package/dist/src/resources/auth/auth.ts +0 -2
  30. package/dist/src/resources/auth/space-policies.ts +22 -7
  31. package/dist/src/resources/auth/space-role-users.ts +29 -14
  32. package/dist/src/resources/auth/space-roles.ts +27 -12
  33. package/dist/src/resources/auth/spaces.ts +26 -11
  34. package/dist/src/version.ts +1 -1
  35. package/dist/version.d.ts +1 -1
  36. package/dist/version.js +1 -1
  37. package/dist/version.mjs +1 -1
  38. package/package.json +1 -1
  39. package/src/resources/auth/auth.ts +0 -2
  40. package/src/resources/auth/space-policies.ts +22 -7
  41. package/src/resources/auth/space-role-users.ts +29 -14
  42. package/src/resources/auth/space-roles.ts +27 -12
  43. package/src/resources/auth/spaces.ts +26 -11
  44. package/src/version.ts +1 -1
@@ -9,20 +9,20 @@ export class Spaces extends APIResource {
9
9
  }
10
10
 
11
11
  update(params: SpaceUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Space> {
12
- const { ...body } = params;
12
+ const { 'X-Space': xspace, ...body } = params;
13
13
  return this._client.put(`/spaces`, {
14
14
  body,
15
15
  ...options,
16
- headers: { ...options?.headers },
16
+ headers: { ...options?.headers, 'X-Space': xspace },
17
17
  });
18
18
  }
19
19
 
20
20
  partialUpdate(params: SpaceUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Space> {
21
- const { ...body } = params;
21
+ const { 'X-Space': xspace, ...body } = params;
22
22
  return this._client.patch(`/spaces`, {
23
23
  body,
24
24
  ...options,
25
- headers: { ...options?.headers },
25
+ headers: { ...options?.headers, 'X-Space': xspace },
26
26
  });
27
27
  }
28
28
 
@@ -39,16 +39,21 @@ export class Spaces extends APIResource {
39
39
  headers: { ...options?.headers },
40
40
  });
41
41
  }
42
-
43
- delete(options?: Core.RequestOptions): Core.APIPromise<void> {
42
+ delete(params: SpaceParams, options?: Core.RequestOptions): Core.APIPromise<void> {
43
+ const { 'X-Space': xspace } = params;
44
44
  return this._client.delete(`/spaces`, {
45
45
  ...options,
46
- headers: { Accept: '*/*', ...options?.headers },
46
+ headers: { Accept: '*/*', ...options?.headers, 'X-Space': xspace },
47
47
  });
48
48
  }
49
49
 
50
- invitation(body: OAuthInvitation, options?: Core.RequestOptions): Core.APIPromise<OAuthInvitation> {
51
- return this._client.post(`/spaces/invitation`, { body, ...options });
50
+ invitation(params: OAuthInvitationParams, options?: Core.RequestOptions): Core.APIPromise<OAuthInvitationParams> {
51
+ const { 'X-Space': xspace, ...body } = params;
52
+ return this._client.post(`/spaces/invitation`, {
53
+ body,
54
+ ...options,
55
+ headers: { ...options?.headers, 'X-Space': xspace },
56
+ });
52
57
  }
53
58
 
54
59
  joinSpace(token: string, options?: Core.RequestOptions): Core.APIPromise<JoinSpaceResponse> {
@@ -101,6 +106,15 @@ export interface SpaceUpdateParams {
101
106
  * Body param:
102
107
  */
103
108
  slug_name: string;
109
+
110
+ /**
111
+ * Header param:
112
+ */
113
+ 'X-Space': string;
114
+ }
115
+
116
+ export interface SpaceParams {
117
+ 'X-Space': string;
104
118
  }
105
119
 
106
120
  export interface SpaceUpdateParams {
@@ -125,8 +139,9 @@ export interface SpaceUpdateParams {
125
139
  is_active?: boolean;
126
140
  }
127
141
 
128
- export interface OAuthInvitation {
142
+ export interface OAuthInvitationParams {
129
143
  receiver_list: Receiver[];
144
+ 'X-Space': string;
130
145
  }
131
146
 
132
147
  export interface Receiver {
@@ -137,4 +152,4 @@ export interface Receiver {
137
152
  export interface JoinSpaceResponse {
138
153
  error?: string;
139
154
  result?: string;
140
- }
155
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.0.1-dev.12';
1
+ export const VERSION = '0.0.1-dev.14';