1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct CreateTokenDTO {
    #[serde(rename = "expiresAt")]
    pub expires_at: chrono::DateTime<chrono::Utc>,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct WorkerCreationRequest {
    pub name: String,
    pub args: Vec<String>,
    pub env: Vec<(String, String)>,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct VersionedTemplateId {
    #[serde(rename = "rawTemplateId")]
    pub raw_template_id: uuid::Uuid,
    pub version: i32,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct UserTemplateId {
    #[serde(rename = "versionedComponentId")]
    pub versioned_component_id: crate::model::VersionedTemplateId,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct ProtectedTemplateId {
    #[serde(rename = "versionedComponentId")]
    pub versioned_component_id: crate::model::VersionedTemplateId,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct TemplateName {
    pub value: String,
}

#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum Type {
    Variant(Vec<(String, Option<Box<crate::model::Type>>)>),
    Result((Option<Box<crate::model::Type>>, Option<Box<crate::model::Type>>)),
    Option(Box<crate::model::Type>),
    Enum(Vec<String>),
    Flags(Vec<String>),
    Record(Vec<(String, Box<crate::model::Type>)>),
    Tuple(Vec<Box<crate::model::Type>>),
    List(Box<crate::model::Type>),
    Str {
    },
    Chr {
    },
    F64 {
    },
    F32 {
    },
    U64 {
    },
    S64 {
    },
    U32 {
    },
    S32 {
    },
    U16 {
    },
    S16 {
    },
    U8 {
    },
    S8 {
    },
    Bool {
    },
}

#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct FunctionParameter {
    pub name: String,
    pub tpe: crate::model::Type,
}

#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct FunctionResult {
    pub name: Option<String>,
    pub tpe: crate::model::Type,
}

#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct Function {
    pub name: String,
    pub parameters: Vec<crate::model::FunctionParameter>,
    pub results: Vec<crate::model::FunctionResult>,
}

#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum Export {
    Instance {
        name: String,
        functions: Vec<crate::model::Function>,
    },
    Function {
        name: String,
        parameters: Vec<crate::model::FunctionParameter>,
        results: Vec<crate::model::FunctionResult>,
    },
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct VersionedName {
    pub name: String,
    pub version: String,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct ProducerField {
    pub name: String,
    pub values: Vec<crate::model::VersionedName>,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct Producers {
    pub fields: Vec<crate::model::ProducerField>,
}

#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct TemplateMetadata {
    pub exports: Vec<crate::model::Export>,
    pub producers: Vec<crate::model::Producers>,
}

#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct Template {
    #[serde(rename = "versionedTemplateId")]
    pub versioned_template_id: crate::model::VersionedTemplateId,
    #[serde(rename = "userTemplateId")]
    pub user_template_id: crate::model::UserTemplateId,
    #[serde(rename = "protectedTemplateId")]
    pub protected_template_id: crate::model::ProtectedTemplateId,
    #[serde(rename = "templateName")]
    pub template_name: crate::model::TemplateName,
    #[serde(rename = "templateSize")]
    pub template_size: i32,
    pub metadata: crate::model::TemplateMetadata,
    #[serde(rename = "projectId")]
    pub project_id: uuid::Uuid,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct CompleteParameters {
    #[serde(rename = "oplogIdx")]
    pub oplog_idx: i32,
    pub data: Vec<u8>,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub enum ProjectType {
    Default,
    NonDefault,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct ProjectData {
    pub name: String,
    #[serde(rename = "ownerAccountId")]
    pub owner_account_id: String,
    pub description: String,
    #[serde(rename = "defaultEnvironmentId")]
    pub default_environment_id: String,
    #[serde(rename = "projectType")]
    pub project_type: crate::model::ProjectType,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct Project {
    #[serde(rename = "projectId")]
    pub project_id: uuid::Uuid,
    #[serde(rename = "projectData")]
    pub project_data: crate::model::ProjectData,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct InvocationKey {
    pub value: String,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct Token {
    pub id: uuid::Uuid,
    #[serde(rename = "accountId")]
    pub account_id: String,
    #[serde(rename = "createdAt")]
    pub created_at: chrono::DateTime<chrono::Utc>,
    #[serde(rename = "expiresAt")]
    pub expires_at: chrono::DateTime<chrono::Utc>,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct ProjectGrantDataRequest {
    #[serde(rename = "granteeAccountId")]
    pub grantee_account_id: String,
    #[serde(rename = "projectPolicyId")]
    pub project_policy_id: uuid::Uuid,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub enum Role {
    Admin,
    WhitelistAdmin,
    MarketingAdmin,
    ViewProject,
    DeleteProject,
    CreateProject,
    InstanceServer,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct ResourceLimits {
    #[serde(rename = "availableFuel")]
    pub available_fuel: i64,
    #[serde(rename = "maxMemoryPerInstance")]
    pub max_memory_per_instance: i64,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub enum LoginEndpointError {
    ArgValidation {
        errors: Vec<String>,
    },
    NotWhitelisted {
        error: String,
    },
    Internal {
        error: String,
    },
    External {
        error: String,
    },
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct Account {
    pub id: String,
    pub name: String,
    pub email: String,
    #[serde(rename = "planId")]
    pub plan_id: uuid::Uuid,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub enum ProjectEndpointError {
    ArgValidation {
        errors: Vec<String>,
    },
    Internal {
        error: String,
    },
    NotFound {
        message: String,
    },
    Unauthorized {
        message: String,
    },
    LimitExceeded {
        error: String,
    },
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub enum AccountSummaryEndpointError {
    Internal {
        error: String,
    },
    Unauthorized {
        message: String,
    },
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub enum AccountEndpointError {
    ArgValidation {
        errors: Vec<String>,
    },
    Internal {
        error: String,
    },
    NotFound {
        message: String,
    },
    Unauthorized {
        message: String,
    },
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct VersionInfo {
    pub version: String,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct ProjectGrantData {
    #[serde(rename = "granteeAccountId")]
    pub grantee_account_id: String,
    #[serde(rename = "grantorProjectId")]
    pub grantor_project_id: uuid::Uuid,
    #[serde(rename = "projectPolicyId")]
    pub project_policy_id: uuid::Uuid,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct ProjectGrant {
    pub id: uuid::Uuid,
    pub data: crate::model::ProjectGrantData,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct TokenSecret {
    pub value: uuid::Uuid,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct UnsafeToken {
    pub data: crate::model::Token,
    pub secret: crate::model::TokenSecret,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct WorkerId {
    #[serde(rename = "rawTemplateId")]
    pub raw_template_id: uuid::Uuid,
    #[serde(rename = "workerName")]
    pub worker_name: String,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub enum WorkerStatus {
    Running,
    Idle,
    Suspended,
    Interrupted,
    Retrying,
    Failed,
    Exited,
}

#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct WorkerMetadata {
    #[serde(rename = "workerId")]
    pub worker_id: crate::model::WorkerId,
    #[serde(rename = "accountId")]
    pub account_id: String,
    pub args: Vec<String>,
    pub env: std::collections::HashMap<String, String>,
    pub status: crate::model::WorkerStatus,
    #[serde(rename = "templateVersion")]
    pub template_version: i32,
    #[serde(rename = "retryCount")]
    pub retry_count: i32,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub enum LimitsEndpointError {
    ArgValidationError {
        errors: Vec<String>,
    },
    InternalError {
        error: String,
    },
    Unauthorized {
        error: String,
    },
    LimitExceeded {
        error: String,
    },
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct AccountSummary {
    pub id: String,
    pub name: String,
    pub email: String,
    #[serde(rename = "templatesCount")]
    pub templates_count: i64,
    #[serde(rename = "workersCount")]
    pub workers_count: i64,
    #[serde(rename = "createdAt")]
    pub created_at: chrono::DateTime<chrono::Utc>,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct TemplateQuery {
    #[serde(rename = "projectId")]
    pub project_id: Option<uuid::Uuid>,
    #[serde(rename = "componentName")]
    pub component_name: crate::model::TemplateName,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct ProjectDataRequest {
    pub name: String,
    #[serde(rename = "ownerAccountId")]
    pub owner_account_id: String,
    pub description: String,
}

#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct InvokeResult {
    pub result: serde_json::value::Value,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub enum TemplateEndpointError {
    ArgValidationError {
        errors: Vec<String>,
    },
    InternalError {
        error: String,
    },
    NotFound {
        message: String,
    },
    Unauthorized {
        error: String,
    },
    LimitExceeded {
        error: String,
    },
    AlreadyExists {
        #[serde(rename = "componentId")]
        component_id: uuid::Uuid,
    },
    GatewayTimeout {
    },
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct PlanData {
    #[serde(rename = "projectLimit")]
    pub project_limit: i32,
    #[serde(rename = "componentLimit")]
    pub component_limit: i32,
    #[serde(rename = "instanceLimit")]
    pub instance_limit: i32,
    #[serde(rename = "storageLimit")]
    pub storage_limit: i32,
    #[serde(rename = "monthlyGasLimit")]
    pub monthly_gas_limit: i64,
    #[serde(rename = "monthlyUploadLimit")]
    pub monthly_upload_limit: i32,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct Plan {
    #[serde(rename = "planId")]
    pub plan_id: uuid::Uuid,
    #[serde(rename = "planData")]
    pub plan_data: crate::model::PlanData,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub enum ProjectAction {
    ViewComponent,
    CreateComponent,
    UpdateComponent,
    DeleteComponent,
    ViewInstance,
    CreateInstance,
    UpdateInstance,
    DeleteInstance,
    ViewProjectGrants,
    CreateProjectGrants,
    DeleteProjectGrants,
}

#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct ProjectActions {
    pub actions: std::collections::HashSet<crate::model::ProjectAction>,
}

#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct ProjectPolicy {
    pub id: uuid::Uuid,
    pub name: String,
    #[serde(rename = "projectActions")]
    pub project_actions: crate::model::ProjectActions,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct AccountData {
    pub name: String,
    pub email: String,
}

#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct BatchUpdateResourceLimits {
    pub updates: std::collections::HashMap<String, i64>,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct WhitelistEmail {
    pub email: String,
    #[serde(rename = "createdAt")]
    pub created_at: chrono::DateTime<chrono::Utc>,
    #[serde(rename = "createdBy")]
    pub created_by: String,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub enum WhitelistEndpointError {
    Internal {
        error: String,
    },
    Unauthorized {
        message: String,
    },
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct VersionedWorkerId {
    #[serde(rename = "workerId")]
    pub worker_id: crate::model::WorkerId,
    #[serde(rename = "templateVersionUsed")]
    pub template_version_used: i32,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct PromiseId {
    #[serde(rename = "instanceId")]
    pub instance_id: crate::model::WorkerId,
    #[serde(rename = "oplogIdx")]
    pub oplog_idx: i32,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct ShardId {
    pub value: i64,
}

#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum GolemError {
    InvalidRequest {
        details: String,
    },
    WorkerAlreadyExists {
        #[serde(rename = "instanceId")]
        instance_id: crate::model::WorkerId,
    },
    WorkerNotFound {
        #[serde(rename = "instanceId")]
        instance_id: crate::model::WorkerId,
    },
    WorkerCreationFailed {
        #[serde(rename = "instanceId")]
        instance_id: crate::model::WorkerId,
        details: String,
    },
    FailedToResumeWorker {
        #[serde(rename = "instanceId")]
        instance_id: crate::model::WorkerId,
    },
    TemplateDownloadFailed {
        #[serde(rename = "componentId")]
        component_id: crate::model::VersionedTemplateId,
        reason: String,
    },
    TemplateParseFailed {
        #[serde(rename = "componentId")]
        component_id: crate::model::VersionedTemplateId,
        reason: String,
    },
    GetLatestVersionOfTemplateFailed {
        #[serde(rename = "componentId")]
        component_id: uuid::Uuid,
        reason: String,
    },
    PromiseNotFound {
        #[serde(rename = "promiseId")]
        promise_id: crate::model::PromiseId,
    },
    PromiseDropped {
        #[serde(rename = "promiseId")]
        promise_id: crate::model::PromiseId,
    },
    PromiseAlreadyCompleted {
        #[serde(rename = "promiseId")]
        promise_id: crate::model::PromiseId,
    },
    Interrupted {
        #[serde(rename = "recoverImmediately")]
        recover_immediately: bool,
    },
    ParamTypeMismatch {
    },
    NoValueInMessage {
    },
    ValueMismatch {
        details: String,
    },
    UnexpectedOplogEntry {
        expected: String,
        got: String,
    },
    RuntimeError {
        details: String,
    },
    InvalidShardId {
        #[serde(rename = "shardId")]
        shard_id: crate::model::ShardId,
        #[serde(rename = "shardIds")]
        shard_ids: std::collections::HashSet<crate::model::ShardId>,
    },
    PreviousInvocationFailed {
    },
    PreviousInvocationExited {
    },
    Unknown {
        details: String,
    },
    InstanceUnavailable {
    },
    InvalidAccount {
    },
}

#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum WorkerEndpointError {
    BadRequest {
        errors: Vec<String>,
    },
    Unauthorized {
        error: String,
    },
    LimitExceeded {
        error: String,
    },
    Golem {
        #[serde(rename = "golemError")]
        golem_error: crate::model::GolemError,
    },
    GatewayTimeout {
    },
    NotFound {
        error: String,
    },
    AlreadyExists {
        error: String,
    },
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct OAuth2Data {
    pub url: String,
    #[serde(rename = "userCode")]
    pub user_code: String,
    pub expires: chrono::DateTime<chrono::Utc>,
    #[serde(rename = "encodedSession")]
    pub encoded_session: String,
}

#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct ProjectPolicyData {
    pub name: String,
    #[serde(rename = "projectActions")]
    pub project_actions: crate::model::ProjectActions,
}

#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct InvokeParameters {
    pub params: serde_json::value::Value,
}

#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct ProjectGrantDataWithProjectActions {
    #[serde(rename = "granteeAccountId")]
    pub grantee_account_id: String,
    #[serde(rename = "projectActions")]
    pub project_actions: std::collections::HashSet<crate::model::ProjectAction>,
    #[serde(rename = "projectPolicyName")]
    pub project_policy_name: Option<String>,
}