sandbox0 0.1.12 → 0.2.0

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 (109) hide show
  1. package/dist/apispec/src/apis/AuthApi.d.ts +0 -1
  2. package/dist/apispec/src/apis/AuthApi.d.ts.map +1 -1
  3. package/dist/apispec/src/apis/AuthApi.js +0 -3
  4. package/dist/apispec/src/apis/FilesApi.d.ts +96 -0
  5. package/dist/apispec/src/apis/FilesApi.d.ts.map +1 -1
  6. package/dist/apispec/src/apis/FilesApi.js +283 -0
  7. package/dist/apispec/src/apis/UsersApi.d.ts +11 -11
  8. package/dist/apispec/src/apis/UsersApi.d.ts.map +1 -1
  9. package/dist/apispec/src/apis/UsersApi.js +34 -34
  10. package/dist/apispec/src/apis/VolumeSyncApi.d.ts +145 -0
  11. package/dist/apispec/src/apis/VolumeSyncApi.d.ts.map +1 -0
  12. package/dist/apispec/src/apis/VolumeSyncApi.js +416 -0
  13. package/dist/apispec/src/apis/index.d.ts +1 -0
  14. package/dist/apispec/src/apis/index.d.ts.map +1 -1
  15. package/dist/apispec/src/apis/index.js +1 -0
  16. package/dist/apispec/src/models/AppendReplicaChangesRequest.d.ts +46 -0
  17. package/dist/apispec/src/models/AppendReplicaChangesRequest.d.ts.map +1 -0
  18. package/dist/apispec/src/models/AppendReplicaChangesRequest.js +52 -0
  19. package/dist/apispec/src/models/AppendReplicaChangesResponse.d.ts +47 -0
  20. package/dist/apispec/src/models/AppendReplicaChangesResponse.d.ts.map +1 -0
  21. package/dist/apispec/src/models/AppendReplicaChangesResponse.js +53 -0
  22. package/dist/apispec/src/models/ChangeRequest.d.ts +92 -0
  23. package/dist/apispec/src/models/ChangeRequest.d.ts.map +1 -0
  24. package/dist/apispec/src/models/ChangeRequest.js +67 -0
  25. package/dist/apispec/src/models/CreateVolumeSyncBootstrapRequest.d.ts +52 -0
  26. package/dist/apispec/src/models/CreateVolumeSyncBootstrapRequest.d.ts.map +1 -0
  27. package/dist/apispec/src/models/CreateVolumeSyncBootstrapRequest.js +48 -0
  28. package/dist/apispec/src/models/ListVolumeSyncChangesResponse.d.ts +46 -0
  29. package/dist/apispec/src/models/ListVolumeSyncChangesResponse.d.ts.map +1 -0
  30. package/dist/apispec/src/models/ListVolumeSyncChangesResponse.js +52 -0
  31. package/dist/apispec/src/models/ListVolumeSyncConflictsResponse.d.ts +34 -0
  32. package/dist/apispec/src/models/ListVolumeSyncConflictsResponse.d.ts.map +1 -0
  33. package/dist/apispec/src/models/ListVolumeSyncConflictsResponse.js +44 -0
  34. package/dist/apispec/src/models/ResolveVolumeSyncConflictRequest.d.ts +53 -0
  35. package/dist/apispec/src/models/ResolveVolumeSyncConflictRequest.d.ts.map +1 -0
  36. package/dist/apispec/src/models/ResolveVolumeSyncConflictRequest.js +54 -0
  37. package/dist/apispec/src/models/SuccessVolumeSyncAppendResponse.d.ts +40 -0
  38. package/dist/apispec/src/models/SuccessVolumeSyncAppendResponse.d.ts.map +1 -0
  39. package/dist/apispec/src/models/SuccessVolumeSyncAppendResponse.js +46 -0
  40. package/dist/apispec/src/models/SuccessVolumeSyncBootstrapResponse.d.ts +40 -0
  41. package/dist/apispec/src/models/SuccessVolumeSyncBootstrapResponse.d.ts.map +1 -0
  42. package/dist/apispec/src/models/SuccessVolumeSyncBootstrapResponse.js +46 -0
  43. package/dist/apispec/src/models/SuccessVolumeSyncChangeListResponse.d.ts +40 -0
  44. package/dist/apispec/src/models/SuccessVolumeSyncChangeListResponse.d.ts.map +1 -0
  45. package/dist/apispec/src/models/SuccessVolumeSyncChangeListResponse.js +46 -0
  46. package/dist/apispec/src/models/SuccessVolumeSyncConflictListResponse.d.ts +40 -0
  47. package/dist/apispec/src/models/SuccessVolumeSyncConflictListResponse.d.ts.map +1 -0
  48. package/dist/apispec/src/models/SuccessVolumeSyncConflictListResponse.js +46 -0
  49. package/dist/apispec/src/models/SuccessVolumeSyncConflictResponse.d.ts +40 -0
  50. package/dist/apispec/src/models/SuccessVolumeSyncConflictResponse.d.ts.map +1 -0
  51. package/dist/apispec/src/models/SuccessVolumeSyncConflictResponse.js +46 -0
  52. package/dist/apispec/src/models/SuccessVolumeSyncReplicaResponse.d.ts +40 -0
  53. package/dist/apispec/src/models/SuccessVolumeSyncReplicaResponse.d.ts.map +1 -0
  54. package/dist/apispec/src/models/SuccessVolumeSyncReplicaResponse.js +46 -0
  55. package/dist/apispec/src/models/SyncConflict.d.ts +119 -0
  56. package/dist/apispec/src/models/SyncConflict.d.ts.map +1 -0
  57. package/dist/apispec/src/models/SyncConflict.js +69 -0
  58. package/dist/apispec/src/models/SyncEventType.d.ts +30 -0
  59. package/dist/apispec/src/models/SyncEventType.d.ts.map +1 -0
  60. package/dist/apispec/src/models/SyncEventType.js +47 -0
  61. package/dist/apispec/src/models/SyncJournalEntry.d.ts +154 -0
  62. package/dist/apispec/src/models/SyncJournalEntry.d.ts.map +1 -0
  63. package/dist/apispec/src/models/SyncJournalEntry.js +90 -0
  64. package/dist/apispec/src/models/SyncReplica.d.ts +100 -0
  65. package/dist/apispec/src/models/SyncReplica.d.ts.map +1 -0
  66. package/dist/apispec/src/models/SyncReplica.js +64 -0
  67. package/dist/apispec/src/models/UpdateSyncReplicaCursorRequest.d.ts +33 -0
  68. package/dist/apispec/src/models/UpdateSyncReplicaCursorRequest.d.ts.map +1 -0
  69. package/dist/apispec/src/models/UpdateSyncReplicaCursorRequest.js +43 -0
  70. package/dist/apispec/src/models/UpsertSyncReplicaRequest.d.ts +58 -0
  71. package/dist/apispec/src/models/UpsertSyncReplicaRequest.d.ts.map +1 -0
  72. package/dist/apispec/src/models/UpsertSyncReplicaRequest.js +50 -0
  73. package/dist/apispec/src/models/VolumeSyncBootstrap.d.ts +46 -0
  74. package/dist/apispec/src/models/VolumeSyncBootstrap.d.ts.map +1 -0
  75. package/dist/apispec/src/models/VolumeSyncBootstrap.js +52 -0
  76. package/dist/apispec/src/models/VolumeSyncBootstrapCompatibilityConflictDetails.d.ts +60 -0
  77. package/dist/apispec/src/models/VolumeSyncBootstrapCompatibilityConflictDetails.d.ts.map +1 -0
  78. package/dist/apispec/src/models/VolumeSyncBootstrapCompatibilityConflictDetails.js +63 -0
  79. package/dist/apispec/src/models/VolumeSyncBootstrapConflictErrorEnvelope.d.ts +40 -0
  80. package/dist/apispec/src/models/VolumeSyncBootstrapConflictErrorEnvelope.d.ts.map +1 -0
  81. package/dist/apispec/src/models/VolumeSyncBootstrapConflictErrorEnvelope.js +48 -0
  82. package/dist/apispec/src/models/VolumeSyncBootstrapConflictErrorEnvelopeAllOfError.d.ts +46 -0
  83. package/dist/apispec/src/models/VolumeSyncBootstrapConflictErrorEnvelopeAllOfError.d.ts.map +1 -0
  84. package/dist/apispec/src/models/VolumeSyncBootstrapConflictErrorEnvelopeAllOfError.js +50 -0
  85. package/dist/apispec/src/models/VolumeSyncCompatibilityIssue.d.ts +63 -0
  86. package/dist/apispec/src/models/VolumeSyncCompatibilityIssue.d.ts.map +1 -0
  87. package/dist/apispec/src/models/VolumeSyncCompatibilityIssue.js +53 -0
  88. package/dist/apispec/src/models/VolumeSyncFilesystemCapabilities.d.ts +45 -0
  89. package/dist/apispec/src/models/VolumeSyncFilesystemCapabilities.d.ts.map +1 -0
  90. package/dist/apispec/src/models/VolumeSyncFilesystemCapabilities.js +51 -0
  91. package/dist/apispec/src/models/VolumeSyncReplicaEnvelope.d.ts +40 -0
  92. package/dist/apispec/src/models/VolumeSyncReplicaEnvelope.d.ts.map +1 -0
  93. package/dist/apispec/src/models/VolumeSyncReplicaEnvelope.js +48 -0
  94. package/dist/apispec/src/models/VolumeSyncReseedRequiredDetails.d.ts +52 -0
  95. package/dist/apispec/src/models/VolumeSyncReseedRequiredDetails.d.ts.map +1 -0
  96. package/dist/apispec/src/models/VolumeSyncReseedRequiredDetails.js +57 -0
  97. package/dist/apispec/src/models/VolumeSyncReseedRequiredErrorEnvelope.d.ts +40 -0
  98. package/dist/apispec/src/models/VolumeSyncReseedRequiredErrorEnvelope.d.ts.map +1 -0
  99. package/dist/apispec/src/models/VolumeSyncReseedRequiredErrorEnvelope.js +48 -0
  100. package/dist/apispec/src/models/VolumeSyncReseedRequiredErrorEnvelopeAllOfError.d.ts +46 -0
  101. package/dist/apispec/src/models/VolumeSyncReseedRequiredErrorEnvelopeAllOfError.d.ts.map +1 -0
  102. package/dist/apispec/src/models/VolumeSyncReseedRequiredErrorEnvelopeAllOfError.js +50 -0
  103. package/dist/apispec/src/models/index.d.ts +29 -0
  104. package/dist/apispec/src/models/index.d.ts.map +1 -1
  105. package/dist/apispec/src/models/index.js +29 -0
  106. package/dist/resources/volumes.d.ts +10 -1
  107. package/dist/resources/volumes.d.ts.map +1 -1
  108. package/dist/resources/volumes.js +136 -0
  109. package/package.json +1 -1
@@ -0,0 +1,119 @@
1
+ /**
2
+ * Sandbox0 API
3
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SyncConflict
16
+ */
17
+ export interface SyncConflict {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SyncConflict
22
+ */
23
+ id?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SyncConflict
28
+ */
29
+ volumeId?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SyncConflict
34
+ */
35
+ teamId?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof SyncConflict
40
+ */
41
+ replicaId?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof SyncConflict
46
+ */
47
+ path?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof SyncConflict
52
+ */
53
+ normalizedPath?: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof SyncConflict
58
+ */
59
+ artifactPath?: string;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof SyncConflict
64
+ */
65
+ incomingPath?: string | null;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof SyncConflict
70
+ */
71
+ incomingOldPath?: string | null;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof SyncConflict
76
+ */
77
+ existingSeq?: number | null;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof SyncConflict
82
+ */
83
+ reason?: string;
84
+ /**
85
+ *
86
+ * @type {string}
87
+ * @memberof SyncConflict
88
+ */
89
+ status?: string;
90
+ /**
91
+ *
92
+ * @type {{ [key: string]: any; }}
93
+ * @memberof SyncConflict
94
+ */
95
+ metadata?: {
96
+ [key: string]: any;
97
+ } | null;
98
+ /**
99
+ *
100
+ * @type {Date}
101
+ * @memberof SyncConflict
102
+ */
103
+ createdAt?: Date;
104
+ /**
105
+ *
106
+ * @type {Date}
107
+ * @memberof SyncConflict
108
+ */
109
+ updatedAt?: Date;
110
+ }
111
+ /**
112
+ * Check if a given object implements the SyncConflict interface.
113
+ */
114
+ export declare function instanceOfSyncConflict(value: object): value is SyncConflict;
115
+ export declare function SyncConflictFromJSON(json: any): SyncConflict;
116
+ export declare function SyncConflictFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncConflict;
117
+ export declare function SyncConflictToJSON(json: any): SyncConflict;
118
+ export declare function SyncConflictToJSONTyped(value?: SyncConflict | null, ignoreDiscriminator?: boolean): any;
119
+ //# sourceMappingURL=SyncConflict.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SyncConflict.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SyncConflict.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,QAAQ,CAAC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,69 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sandbox0 API
5
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the SyncConflict interface.
16
+ */
17
+ export function instanceOfSyncConflict(value) {
18
+ return true;
19
+ }
20
+ export function SyncConflictFromJSON(json) {
21
+ return SyncConflictFromJSONTyped(json, false);
22
+ }
23
+ export function SyncConflictFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'id': json['id'] == null ? undefined : json['id'],
29
+ 'volumeId': json['volume_id'] == null ? undefined : json['volume_id'],
30
+ 'teamId': json['team_id'] == null ? undefined : json['team_id'],
31
+ 'replicaId': json['replica_id'] == null ? undefined : json['replica_id'],
32
+ 'path': json['path'] == null ? undefined : json['path'],
33
+ 'normalizedPath': json['normalized_path'] == null ? undefined : json['normalized_path'],
34
+ 'artifactPath': json['artifact_path'] == null ? undefined : json['artifact_path'],
35
+ 'incomingPath': json['incoming_path'] == null ? undefined : json['incoming_path'],
36
+ 'incomingOldPath': json['incoming_old_path'] == null ? undefined : json['incoming_old_path'],
37
+ 'existingSeq': json['existing_seq'] == null ? undefined : json['existing_seq'],
38
+ 'reason': json['reason'] == null ? undefined : json['reason'],
39
+ 'status': json['status'] == null ? undefined : json['status'],
40
+ 'metadata': json['metadata'] == null ? undefined : json['metadata'],
41
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
42
+ 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
43
+ };
44
+ }
45
+ export function SyncConflictToJSON(json) {
46
+ return SyncConflictToJSONTyped(json, false);
47
+ }
48
+ export function SyncConflictToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'id': value['id'],
54
+ 'volume_id': value['volumeId'],
55
+ 'team_id': value['teamId'],
56
+ 'replica_id': value['replicaId'],
57
+ 'path': value['path'],
58
+ 'normalized_path': value['normalizedPath'],
59
+ 'artifact_path': value['artifactPath'],
60
+ 'incoming_path': value['incomingPath'],
61
+ 'incoming_old_path': value['incomingOldPath'],
62
+ 'existing_seq': value['existingSeq'],
63
+ 'reason': value['reason'],
64
+ 'status': value['status'],
65
+ 'metadata': value['metadata'],
66
+ 'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
67
+ 'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
68
+ };
69
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Sandbox0 API
3
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const SyncEventType: {
17
+ readonly Create: "create";
18
+ readonly Write: "write";
19
+ readonly Remove: "remove";
20
+ readonly Rename: "rename";
21
+ readonly Chmod: "chmod";
22
+ readonly Invalidate: "invalidate";
23
+ };
24
+ export type SyncEventType = typeof SyncEventType[keyof typeof SyncEventType];
25
+ export declare function instanceOfSyncEventType(value: any): boolean;
26
+ export declare function SyncEventTypeFromJSON(json: any): SyncEventType;
27
+ export declare function SyncEventTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncEventType;
28
+ export declare function SyncEventTypeToJSON(value?: SyncEventType | null): any;
29
+ export declare function SyncEventTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SyncEventType;
30
+ //# sourceMappingURL=SyncEventType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SyncEventType.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SyncEventType.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;;;CAOhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAG7E,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAS3D;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAEjG;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,GAAG,GAAG,CAErE;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAEhG"}
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sandbox0 API
5
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ *
16
+ * @export
17
+ */
18
+ export const SyncEventType = {
19
+ Create: 'create',
20
+ Write: 'write',
21
+ Remove: 'remove',
22
+ Rename: 'rename',
23
+ Chmod: 'chmod',
24
+ Invalidate: 'invalidate'
25
+ };
26
+ export function instanceOfSyncEventType(value) {
27
+ for (const key in SyncEventType) {
28
+ if (Object.prototype.hasOwnProperty.call(SyncEventType, key)) {
29
+ if (SyncEventType[key] === value) {
30
+ return true;
31
+ }
32
+ }
33
+ }
34
+ return false;
35
+ }
36
+ export function SyncEventTypeFromJSON(json) {
37
+ return SyncEventTypeFromJSONTyped(json, false);
38
+ }
39
+ export function SyncEventTypeFromJSONTyped(json, ignoreDiscriminator) {
40
+ return json;
41
+ }
42
+ export function SyncEventTypeToJSON(value) {
43
+ return value;
44
+ }
45
+ export function SyncEventTypeToJSONTyped(value, ignoreDiscriminator) {
46
+ return value;
47
+ }
@@ -0,0 +1,154 @@
1
+ /**
2
+ * Sandbox0 API
3
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SyncEventType } from './SyncEventType.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SyncJournalEntry
17
+ */
18
+ export interface SyncJournalEntry {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof SyncJournalEntry
23
+ */
24
+ seq?: number;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof SyncJournalEntry
29
+ */
30
+ volumeId?: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof SyncJournalEntry
35
+ */
36
+ teamId?: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof SyncJournalEntry
41
+ */
42
+ source?: SyncJournalEntrySourceEnum;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof SyncJournalEntry
47
+ */
48
+ replicaId?: string | null;
49
+ /**
50
+ *
51
+ * @type {SyncEventType}
52
+ * @memberof SyncJournalEntry
53
+ */
54
+ eventType?: SyncEventType;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof SyncJournalEntry
59
+ */
60
+ path?: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof SyncJournalEntry
65
+ */
66
+ normalizedPath?: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof SyncJournalEntry
71
+ */
72
+ oldPath?: string | null;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof SyncJournalEntry
77
+ */
78
+ normalizedOldPath?: string | null;
79
+ /**
80
+ *
81
+ * @type {boolean}
82
+ * @memberof SyncJournalEntry
83
+ */
84
+ tombstone?: boolean;
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof SyncJournalEntry
89
+ */
90
+ entryKind?: SyncJournalEntryEntryKindEnum | null;
91
+ /**
92
+ *
93
+ * @type {number}
94
+ * @memberof SyncJournalEntry
95
+ */
96
+ mode?: number | null;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof SyncJournalEntry
101
+ */
102
+ contentRef?: string | null;
103
+ /**
104
+ *
105
+ * @type {string}
106
+ * @memberof SyncJournalEntry
107
+ */
108
+ contentSha256?: string | null;
109
+ /**
110
+ *
111
+ * @type {number}
112
+ * @memberof SyncJournalEntry
113
+ */
114
+ sizeBytes?: number | null;
115
+ /**
116
+ *
117
+ * @type {{ [key: string]: any; }}
118
+ * @memberof SyncJournalEntry
119
+ */
120
+ metadata?: {
121
+ [key: string]: any;
122
+ } | null;
123
+ /**
124
+ *
125
+ * @type {Date}
126
+ * @memberof SyncJournalEntry
127
+ */
128
+ createdAt?: Date;
129
+ }
130
+ /**
131
+ * @export
132
+ */
133
+ export declare const SyncJournalEntrySourceEnum: {
134
+ readonly Replica: "replica";
135
+ readonly Sandbox: "sandbox";
136
+ };
137
+ export type SyncJournalEntrySourceEnum = typeof SyncJournalEntrySourceEnum[keyof typeof SyncJournalEntrySourceEnum];
138
+ /**
139
+ * @export
140
+ */
141
+ export declare const SyncJournalEntryEntryKindEnum: {
142
+ readonly File: "file";
143
+ readonly Directory: "directory";
144
+ };
145
+ export type SyncJournalEntryEntryKindEnum = typeof SyncJournalEntryEntryKindEnum[keyof typeof SyncJournalEntryEntryKindEnum];
146
+ /**
147
+ * Check if a given object implements the SyncJournalEntry interface.
148
+ */
149
+ export declare function instanceOfSyncJournalEntry(value: object): value is SyncJournalEntry;
150
+ export declare function SyncJournalEntryFromJSON(json: any): SyncJournalEntry;
151
+ export declare function SyncJournalEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncJournalEntry;
152
+ export declare function SyncJournalEntryToJSON(json: any): SyncJournalEntry;
153
+ export declare function SyncJournalEntryToJSONTyped(value?: SyncJournalEntry | null, ignoreDiscriminator?: boolean): any;
154
+ //# sourceMappingURL=SyncJournalEntry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SyncJournalEntry.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SyncJournalEntry.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,6BAA6B,GAAG,IAAI,CAAC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APIs exposed by Sandbox0 regional gateways and the global gateway.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { SyncEventTypeFromJSON, SyncEventTypeToJSON, } from './SyncEventType.js';
15
+ /**
16
+ * @export
17
+ */
18
+ export const SyncJournalEntrySourceEnum = {
19
+ Replica: 'replica',
20
+ Sandbox: 'sandbox'
21
+ };
22
+ /**
23
+ * @export
24
+ */
25
+ export const SyncJournalEntryEntryKindEnum = {
26
+ File: 'file',
27
+ Directory: 'directory'
28
+ };
29
+ /**
30
+ * Check if a given object implements the SyncJournalEntry interface.
31
+ */
32
+ export function instanceOfSyncJournalEntry(value) {
33
+ return true;
34
+ }
35
+ export function SyncJournalEntryFromJSON(json) {
36
+ return SyncJournalEntryFromJSONTyped(json, false);
37
+ }
38
+ export function SyncJournalEntryFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'seq': json['seq'] == null ? undefined : json['seq'],
44
+ 'volumeId': json['volume_id'] == null ? undefined : json['volume_id'],
45
+ 'teamId': json['team_id'] == null ? undefined : json['team_id'],
46
+ 'source': json['source'] == null ? undefined : json['source'],
47
+ 'replicaId': json['replica_id'] == null ? undefined : json['replica_id'],
48
+ 'eventType': json['event_type'] == null ? undefined : SyncEventTypeFromJSON(json['event_type']),
49
+ 'path': json['path'] == null ? undefined : json['path'],
50
+ 'normalizedPath': json['normalized_path'] == null ? undefined : json['normalized_path'],
51
+ 'oldPath': json['old_path'] == null ? undefined : json['old_path'],
52
+ 'normalizedOldPath': json['normalized_old_path'] == null ? undefined : json['normalized_old_path'],
53
+ 'tombstone': json['tombstone'] == null ? undefined : json['tombstone'],
54
+ 'entryKind': json['entry_kind'] == null ? undefined : json['entry_kind'],
55
+ 'mode': json['mode'] == null ? undefined : json['mode'],
56
+ 'contentRef': json['content_ref'] == null ? undefined : json['content_ref'],
57
+ 'contentSha256': json['content_sha256'] == null ? undefined : json['content_sha256'],
58
+ 'sizeBytes': json['size_bytes'] == null ? undefined : json['size_bytes'],
59
+ 'metadata': json['metadata'] == null ? undefined : json['metadata'],
60
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
61
+ };
62
+ }
63
+ export function SyncJournalEntryToJSON(json) {
64
+ return SyncJournalEntryToJSONTyped(json, false);
65
+ }
66
+ export function SyncJournalEntryToJSONTyped(value, ignoreDiscriminator = false) {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'seq': value['seq'],
72
+ 'volume_id': value['volumeId'],
73
+ 'team_id': value['teamId'],
74
+ 'source': value['source'],
75
+ 'replica_id': value['replicaId'],
76
+ 'event_type': SyncEventTypeToJSON(value['eventType']),
77
+ 'path': value['path'],
78
+ 'normalized_path': value['normalizedPath'],
79
+ 'old_path': value['oldPath'],
80
+ 'normalized_old_path': value['normalizedOldPath'],
81
+ 'tombstone': value['tombstone'],
82
+ 'entry_kind': value['entryKind'],
83
+ 'mode': value['mode'],
84
+ 'content_ref': value['contentRef'],
85
+ 'content_sha256': value['contentSha256'],
86
+ 'size_bytes': value['sizeBytes'],
87
+ 'metadata': value['metadata'],
88
+ 'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
89
+ };
90
+ }
@@ -0,0 +1,100 @@
1
+ /**
2
+ * Sandbox0 API
3
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { VolumeSyncFilesystemCapabilities } from './VolumeSyncFilesystemCapabilities.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SyncReplica
17
+ */
18
+ export interface SyncReplica {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof SyncReplica
23
+ */
24
+ id?: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof SyncReplica
29
+ */
30
+ volumeId?: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof SyncReplica
35
+ */
36
+ teamId?: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof SyncReplica
41
+ */
42
+ displayName?: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof SyncReplica
47
+ */
48
+ platform?: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof SyncReplica
53
+ */
54
+ rootPath?: string;
55
+ /**
56
+ *
57
+ * @type {boolean}
58
+ * @memberof SyncReplica
59
+ */
60
+ caseSensitive?: boolean;
61
+ /**
62
+ *
63
+ * @type {VolumeSyncFilesystemCapabilities}
64
+ * @memberof SyncReplica
65
+ */
66
+ capabilities?: VolumeSyncFilesystemCapabilities;
67
+ /**
68
+ *
69
+ * @type {Date}
70
+ * @memberof SyncReplica
71
+ */
72
+ lastSeenAt?: Date;
73
+ /**
74
+ *
75
+ * @type {number}
76
+ * @memberof SyncReplica
77
+ */
78
+ lastAppliedSeq?: number;
79
+ /**
80
+ *
81
+ * @type {Date}
82
+ * @memberof SyncReplica
83
+ */
84
+ createdAt?: Date;
85
+ /**
86
+ *
87
+ * @type {Date}
88
+ * @memberof SyncReplica
89
+ */
90
+ updatedAt?: Date;
91
+ }
92
+ /**
93
+ * Check if a given object implements the SyncReplica interface.
94
+ */
95
+ export declare function instanceOfSyncReplica(value: object): value is SyncReplica;
96
+ export declare function SyncReplicaFromJSON(json: any): SyncReplica;
97
+ export declare function SyncReplicaFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncReplica;
98
+ export declare function SyncReplicaToJSON(json: any): SyncReplica;
99
+ export declare function SyncReplicaToJSONTyped(value?: SyncReplica | null, ignoreDiscriminator?: boolean): any;
100
+ //# sourceMappingURL=SyncReplica.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SyncReplica.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SyncReplica.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAQ3F;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,gCAAgC,CAAC;IAChD;;;;OAIG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAEzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAmB7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GA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